Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008134/0.0008135, allocations: 96.95 kB / 17.35 MB, free: 6.027 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001019/0.001019, allocations: 199.3 kB / 18.28 MB, free: 5.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.18/1.18, allocations: 227.7 MB / 246.8 MB, free: 11.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0001854/0.0001854, allocations: 11.94 kB / 307.8 MB, free: 0.7305 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07449/0.07469, allocations: 51.52 MB / 359.4 MB, free: 13.21 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter): time 0.007393/0.08212, allocations: 8.327 MB / 367.7 MB, free: 4.84 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003378/0.08551, allocations: 2.832 MB / 370.5 MB, free: 1.996 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003743/0.0859, allocations: 39.81 kB / 370.6 MB, free: 1.957 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009741/0.08688, allocations: 0.5322 MB / 371.1 MB, free: 1.422 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001108/0.088, allocations: 0.6372 MB / 371.7 MB, free: 0.7812 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004466/0.08845, allocations: 287.7 kB / 372 MB, free: 0.5 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1361/0.2246, allocations: 2.557 MB / 374.6 MB, free: 9.883 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001757/0.2264, allocations: 1.424 MB / 376 MB, free: 9.57 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001321/0.2277, allocations: 0.7876 MB / 376.8 MB, free: 9.449 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001698/0.2294, allocations: 1.105 MB / 377.9 MB, free: 9.242 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003955/0.2299, allocations: 116.2 kB / 378 MB, free: 9.242 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000738/0.2306, allocations: 222.4 kB / 378.2 MB, free: 9.242 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006014/0.2312, allocations: 0.5837 MB / 378.8 MB, free: 9.16 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009766/0.2322, allocations: 1.034 MB / 379.8 MB, free: 8.816 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002669/0.2349, allocations: 3.314 MB / 383.2 MB, free: 8.422 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.846e-06/0.2349, allocations: 0 / 383.2 MB, free: 8.422 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.2349, allocations: 1.125 kB / 383.2 MB, free: 8.422 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.889e-05/0.2349, allocations: 0 / 383.2 MB, free: 8.422 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 468 * Number of variables: 468 Notification: Performance of Generate backend data structure: time 0.003292/0.2382, allocations: 2.122 MB / 385.3 MB, free: 7.375 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.677e-05/0.2383, allocations: 9.859 kB / 385.3 MB, free: 7.375 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002877/0.2386, allocations: 276.4 kB / 385.6 MB, free: 7.324 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005661/0.2391, allocations: 253 kB / 385.8 MB, free: 7.211 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001536/0.2407, allocations: 1.269 MB / 387.1 MB, free: 6.711 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.652e-05/0.2408, allocations: 134.4 kB / 387.2 MB, free: 6.707 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002564/0.2411, allocations: 186.3 kB / 387.4 MB, free: 6.699 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003308/0.2444, allocations: 2.381 MB / 389.8 MB, free: 5.41 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.609e-05/0.2444, allocations: 10.2 kB / 389.8 MB, free: 5.402 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001548/0.2446, allocations: 77.22 kB / 389.9 MB, free: 5.344 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.867e-05/0.2447, allocations: 91.72 kB / 389.9 MB, free: 5.328 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002793/0.2475, allocations: 1.985 MB / 391.9 MB, free: 4.332 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007771/0.2553, allocations: 7.175 MB / 399.1 MB, free: 15.29 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001568/0.2568, allocations: 1.281 MB / 400.4 MB, free: 14.47 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001383/0.2582, allocations: 0.8867 MB / 401.3 MB, free: 14.01 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001963/0.2585, allocations: 125 kB / 401.4 MB, free: 13.87 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.734e-05/0.2585, allocations: 40.03 kB / 401.4 MB, free: 13.82 MB / 318.1 MB Notification: Performance of pre-optimization done (n=87): time 2.004e-06/0.2585, allocations: 0 / 401.4 MB, free: 13.82 MB / 318.1 MB Notification: Performance of matching and sorting (n=104): time 0.01203/0.2705, allocations: 6.221 MB / 407.6 MB, free: 7.449 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.32e-05/0.2706, allocations: 68.34 kB / 407.7 MB, free: 7.371 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001499/0.2721, allocations: 1.211 MB / 408.9 MB, free: 6.148 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.535e-05/0.2722, allocations: 41.7 kB / 409 MB, free: 6.102 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005359/0.2727, allocations: 0.8771 MB / 409.8 MB, free: 5.215 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002558/0.273, allocations: 367 kB / 410.2 MB, free: 4.859 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000139/0.2731, allocations: 105.7 kB / 410.3 MB, free: 4.75 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001135/0.2732, allocations: 353.9 kB / 410.7 MB, free: 4.398 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009427/0.2742, allocations: 0.6233 MB / 411.3 MB, free: 3.773 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0011/0.2753, allocations: 0.9344 MB / 412.2 MB, free: 2.711 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00214/0.2775, allocations: 1.658 MB / 413.9 MB, free: 0.9336 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.599e-06/0.2775, allocations: 0 / 413.9 MB, free: 0.9336 MB / 318.1 MB Notification: Performance of matching and sorting (n=154) (initialization): time 0.003347/0.2808, allocations: 2.247 MB / 416.1 MB, free: 14.64 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.756e-05/0.2808, allocations: 8 kB / 416.1 MB, free: 14.63 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.255e-05/0.2809, allocations: 12 kB / 416.1 MB, free: 14.62 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000985/0.2819, allocations: 468.8 kB / 416.6 MB, free: 14.15 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008989/0.2828, allocations: 275.6 kB / 416.9 MB, free: 13.88 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005562/0.2883, allocations: 6.447 MB / 423.3 MB, free: 7.039 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000791/0.2891, allocations: 83.91 kB / 423.4 MB, free: 6.957 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.502e-05/0.2892, allocations: 52 kB / 423.4 MB, free: 6.906 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 41 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (132): * Single equations (assignments): 127 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,12,100.0%), (1,6,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0007739/0.29, allocations: 0.6066 MB / 424 MB, free: 6.289 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001994/0.2902, allocations: 134.3 kB / 424.2 MB, free: 6.156 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003242/0.2935, allocations: 2.053 MB / 426.2 MB, free: 4.059 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.887e-06/0.2935, allocations: 12 kB / 426.2 MB, free: 4.047 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.486e-06/0.2935, allocations: 4 kB / 426.2 MB, free: 4.043 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.327e-06/0.2935, allocations: 3.984 kB / 426.3 MB, free: 4.039 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005982/0.2995, allocations: 4.252 MB / 430.5 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.181e-06/0.2995, allocations: 4 kB / 430.5 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006963/0.3002, allocations: 179.8 kB / 430.7 MB, free: 15.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001203/0.3014, allocations: 0.5235 MB / 431.2 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.598e-05/0.3015, allocations: 27.98 kB / 431.2 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006564/0.3081, allocations: 7.927 MB / 439.2 MB, free: 6.484 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.881e-06/0.3081, allocations: 7.984 kB / 439.2 MB, free: 6.477 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004032/0.3122, allocations: 2.973 MB / 442.1 MB, free: 3.41 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004554/0.3126, allocations: 347.3 kB / 442.5 MB, free: 3.051 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000173/0.3128, allocations: 31.98 kB / 442.5 MB, free: 3.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007156/0.3135, allocations: 79.92 kB / 442.6 MB, free: 2.941 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001756/0.3137, allocations: 96.75 kB / 442.7 MB, free: 2.848 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.45e-05/0.3138, allocations: 32 kB / 442.7 MB, free: 2.816 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001038/0.3148, allocations: 0.8344 MB / 443.5 MB, free: 1.977 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.3148, allocations: 4 kB / 443.6 MB, free: 1.973 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001152/0.316, allocations: 408 kB / 444 MB, free: 1.574 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 7 (aimc.inertiaRotor.w,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],vfController.x,loadInertia.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (88): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(2,12,100.0%), (1,6,100.0%), (1,1,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.004515/0.3205, allocations: 3.608 MB / 447.6 MB, free: 13.87 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00293/0.3235, allocations: 2.17 MB / 449.7 MB, free: 11.61 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.328e-06/0.3235, allocations: 4 kB / 449.7 MB, free: 11.61 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001982/0.3255, allocations: 1.487 MB / 451.2 MB, free: 10.05 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002048/0.3275, allocations: 361.1 kB / 451.6 MB, free: 9.711 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02381/0.3513, allocations: 17.18 MB / 468.7 MB, free: 7.613 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001297/0.3527, allocations: 1.634 MB / 470.4 MB, free: 5.941 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0008028/0.3535, allocations: 299.7 kB / 470.7 MB, free: 5.645 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008432/0.3543, allocations: 0.6906 MB / 471.4 MB, free: 4.953 MB / 382.1 MB Notification: Performance of SimCode: time 2.71e-07/0.3543, allocations: 0 / 471.4 MB, free: 4.953 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05116/0.4055, allocations: 35.16 MB / 0.4947 GB, free: 2.219 MB / 414.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002188/0.4057, allocations: 247.8 kB / 0.4949 GB, free: 1.961 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.247/2.653, allocations: 0 / 0.4949 GB, free: 1.961 MB / 414.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Inverter.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/InductionMachines/IMC_Inverter/IMC_Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches