Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|aimc.is.1.|aimc.is.2.|aimc.idq_rr.1.|aimc.idq_rr.2.|aimc.idq_sr.1.|aimc.idq_sr.2.|loadInertia.phi|loadInertia.w|vfController.x",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter") translateModel(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|aimc.is.1.|aimc.is.2.|aimc.idq_rr.1.|aimc.idq_rr.2.|aimc.idq_sr.1.|aimc.idq_sr.2.|loadInertia.phi|loadInertia.w|vfController.x",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001391/0.001391, allocations: 95.88 kB / 16.3 MB, free: 6.121 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001507/0.001507, allocations: 181.8 kB / 17.2 MB, free: 6.004 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.407/1.407, allocations: 223.2 MB / 241.1 MB, free: 400 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003158/0.0003158, allocations: 11.94 kB / 300.7 MB, free: 6.469 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1347/0.1351, allocations: 50.4 MB / 351.1 MB, free: 4.051 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter): time 0.009338/0.1445, allocations: 7.148 MB / 358.3 MB, free: 12.87 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006355/0.1509, allocations: 2.733 MB / 361 MB, free: 10.13 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001473/0.1524, allocations: 35.81 kB / 361.1 MB, free: 10.1 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00165/0.1541, allocations: 0.5092 MB / 361.6 MB, free: 9.586 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002277/0.1564, allocations: 0.6036 MB / 362.2 MB, free: 8.98 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007307/0.1571, allocations: 195.7 kB / 362.4 MB, free: 8.789 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002384/0.1595, allocations: 1.451 MB / 363.8 MB, free: 7.332 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001601/0.1611, allocations: 1.22 MB / 365 MB, free: 6.082 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001214/0.1623, allocations: 0.7084 MB / 365.7 MB, free: 5.371 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001291/0.1636, allocations: 0.9067 MB / 366.6 MB, free: 4.461 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001942/0.1638, allocations: 119.9 kB / 366.8 MB, free: 4.344 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000506/0.1644, allocations: 179.8 kB / 366.9 MB, free: 4.168 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006211/0.165, allocations: 0.5492 MB / 367.5 MB, free: 3.617 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000463/0.1655, allocations: 428.6 kB / 367.9 MB, free: 3.191 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002682/0.1682, allocations: 2.789 MB / 370.7 MB, free: 404 kB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.751e-06/0.1682, allocations: 0 / 370.7 MB, free: 404 kB / 302.1 MB Notification: Performance of FrontEnd: time 3.246e-06/0.1682, allocations: 0 / 370.7 MB, free: 404 kB / 302.1 MB Notification: Performance of Transformations before backend: time 7.873e-05/0.1683, allocations: 0 / 370.7 MB, free: 404 kB / 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.2133/0.3815, allocations: 2.124 MB / 372.8 MB, free: 23.31 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.974e-05/0.3816, allocations: 9.766 kB / 372.8 MB, free: 23.31 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00086/0.3825, allocations: 247.1 kB / 373.1 MB, free: 23.2 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002416/0.3849, allocations: 1.245 MB / 374.3 MB, free: 22.8 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000151/0.3851, allocations: 135.6 kB / 374.5 MB, free: 22.8 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002977/0.3854, allocations: 179.9 kB / 374.6 MB, free: 22.79 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004273/0.3897, allocations: 2.356 MB / 377 MB, free: 22 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.781e-05/0.3897, allocations: 7.312 kB / 377 MB, free: 22 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001558/0.3899, allocations: 73.02 kB / 377.1 MB, free: 21.94 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001116/0.39, allocations: 96.31 kB / 377.2 MB, free: 21.93 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003642/0.3936, allocations: 1.973 MB / 379.1 MB, free: 21.23 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01146/0.4051, allocations: 7.137 MB / 386.3 MB, free: 17.02 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001832/0.407, allocations: 1.271 MB / 387.5 MB, free: 16.19 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002184/0.4072, allocations: 119.5 kB / 387.7 MB, free: 16.09 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.048e-05/0.4073, allocations: 43.97 kB / 387.7 MB, free: 16.04 MB / 302.1 MB Notification: Performance of pre-optimization done (n=87): time 2.435e-06/0.4073, allocations: 0 / 387.7 MB, free: 16.04 MB / 302.1 MB Notification: Performance of matching and sorting (n=107): time 0.01511/0.4224, allocations: 6.785 MB / 394.5 MB, free: 12.35 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.831e-05/0.4225, allocations: 68.41 kB / 394.5 MB, free: 12.27 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001365/0.4238, allocations: 1.156 MB / 395.7 MB, free: 11.1 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.956e-05/0.4239, allocations: 45.7 kB / 395.7 MB, free: 11.05 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000419/0.4243, allocations: 0.8652 MB / 396.6 MB, free: 10.18 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002227/0.4246, allocations: 378.7 kB / 397 MB, free: 9.809 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.747e-05/0.4246, allocations: 28 kB / 397 MB, free: 9.781 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.576e-05/0.4247, allocations: 349.9 kB / 397.4 MB, free: 9.434 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008267/0.4255, allocations: 0.6701 MB / 398 MB, free: 8.762 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009205/0.4265, allocations: 0.9541 MB / 399 MB, free: 7.684 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009918/0.4275, allocations: 0.7994 MB / 399.8 MB, free: 6.883 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.929e-06/0.4275, allocations: 8 kB / 399.8 MB, free: 6.875 MB / 302.1 MB Notification: Performance of matching and sorting (n=157) (initialization): time 0.003339/0.4308, allocations: 2.342 MB / 402.1 MB, free: 4.512 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.498e-05/0.4309, allocations: 15.94 kB / 402.1 MB, free: 4.496 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.21e-05/0.4309, allocations: 8 kB / 402.1 MB, free: 4.488 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001342/0.4323, allocations: 0.5968 MB / 402.7 MB, free: 3.879 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009488/0.4333, allocations: 271.6 kB / 403 MB, free: 3.613 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006612/0.4399, allocations: 6.417 MB / 409.4 MB, free: 12.93 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001315/0.4412, allocations: 92.38 kB / 409.5 MB, free: 12.84 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.023e-05/0.4413, allocations: 44 kB / 409.6 MB, free: 12.8 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * 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 (130): * Single equations (assignments): 126 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(5,76.0%) 20,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001178/0.4425, allocations: 0.6067 MB / 410.2 MB, free: 12.18 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003098/0.4428, allocations: 134.3 kB / 410.3 MB, free: 12.05 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003649/0.4465, allocations: 2.166 MB / 412.5 MB, free: 9.863 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.978e-06/0.4465, allocations: 8 kB / 412.5 MB, free: 9.855 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.048e-05/0.4465, allocations: 10.06 kB / 412.5 MB, free: 9.848 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.305e-05/0.4465, allocations: 3.984 kB / 412.5 MB, free: 9.844 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007363/0.4539, allocations: 4.308 MB / 416.8 MB, free: 5.461 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.392e-06/0.4539, allocations: 0 / 416.8 MB, free: 5.461 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007275/0.4547, allocations: 180 kB / 417 MB, free: 5.285 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001702/0.4564, allocations: 0.6514 MB / 417.6 MB, free: 4.621 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.661e-05/0.4565, allocations: 31.98 kB / 417.7 MB, free: 4.59 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008215/0.4647, allocations: 7.917 MB / 425.6 MB, free: 12.27 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.95e-06/0.4647, allocations: 7.938 kB / 425.6 MB, free: 12.27 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004952/0.4697, allocations: 3.221 MB / 428.8 MB, free: 8.945 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008889/0.4706, allocations: 347.2 kB / 429.1 MB, free: 8.586 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001874/0.4708, allocations: 28.83 kB / 429.2 MB, free: 8.559 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007397/0.4716, allocations: 87.91 kB / 429.3 MB, free: 8.473 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002423/0.4718, allocations: 92.77 kB / 429.3 MB, free: 8.383 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.868e-05/0.4719, allocations: 28 kB / 429.4 MB, free: 8.355 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001186/0.4731, allocations: 0.7952 MB / 430.2 MB, free: 7.555 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.4731, allocations: 0 / 430.2 MB, free: 7.555 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001483/0.4746, allocations: 428 kB / 430.6 MB, free: 7.137 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 (83): * Single equations (assignments): 79 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(5,76.0%) 20,(1,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003024/0.4749, allocations: 151 kB / 430.7 MB, free: 6.988 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.003516/0.4784, allocations: 2.244 MB / 433 MB, free: 4.68 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.32e-06/0.4784, allocations: 3.938 kB / 433 MB, free: 4.676 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002337/0.4808, allocations: 1.491 MB / 434.5 MB, free: 3.133 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001725/0.4825, allocations: 351.5 kB / 434.8 MB, free: 2.801 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008575/0.4911, allocations: 4.676 MB / 439.5 MB, free: 14.06 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002/0.4931, allocations: 1.677 MB / 441.2 MB, free: 12.36 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001564/0.4947, allocations: 291.8 kB / 441.4 MB, free: 12.07 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003697/0.4951, allocations: 95.42 kB / 441.5 MB, free: 11.97 MB / 350.1 MB Notification: Performance of SimCode: time 1.663e-06/0.4951, allocations: 3.938 kB / 441.5 MB, free: 11.97 MB / 350.1 MB Notification: Performance of Templates: time 0.04843/0.5435, allocations: 21.45 MB / 463 MB, free: 6.738 MB / 366.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/InductionMachines/IMC_Inverter/IMC_Inverter.csv","../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches