Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.Spice3.Examples.Inverter,tolerance=1e-07,outputFormat="mat",numberOfIntervals=3998,variableFilter="time|mp.S.v",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter") translateModel(Modelica.Electrical.Spice3.Examples.Inverter,tolerance=1e-07,outputFormat="mat",numberOfIntervals=3998,variableFilter="time|mp.S.v",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001067/0.001067, allocations: 114.5 kB / 17.73 MB, free: 5.34 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.00101/0.00101, allocations: 183 kB / 18.66 MB, free: 4.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.4/1.4, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001344/0.001344, allocations: 55.92 kB / 328.5 MB, free: 3.309 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08993/0.09128, allocations: 46.62 MB / 375.1 MB, free: 4.578 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.2029/0.2942, allocations: 7.709 MB / 382.8 MB, free: 9.109 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02206/0.3163, allocations: 18.51 MB / 401.4 MB, free: 12.18 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002027/0.3184, allocations: 63.5 kB / 401.4 MB, free: 12.14 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003111/0.3216, allocations: 0.8315 MB / 402.2 MB, free: 11.7 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008329/0.33, allocations: 1.775 MB / 404 MB, free: 10.64 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006845/0.3369, allocations: 1.284 MB / 405.3 MB, free: 9.949 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00699/0.3439, allocations: 3.187 MB / 408.5 MB, free: 8.781 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004666/0.3444, allocations: 228 kB / 408.7 MB, free: 8.668 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001058/0.3454, allocations: 0.5153 MB / 409.2 MB, free: 8.465 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007197/0.3462, allocations: 0.5465 MB / 409.8 MB, free: 8.199 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001148/0.3463, allocations: 43.91 kB / 409.8 MB, free: 8.195 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005165/0.3515, allocations: 1.125 MB / 410.9 MB, free: 7.98 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002274/0.3517, allocations: 172.3 kB / 411.1 MB, free: 7.863 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000839/0.3526, allocations: 0.6825 MB / 411.8 MB, free: 7.434 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004363/0.3569, allocations: 2.23 MB / 414 MB, free: 6.07 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.193e-06/0.357, allocations: 8.75 kB / 414 MB, free: 6.062 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.357, allocations: 4 kB / 414 MB, free: 6.059 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.106e-05/0.357, allocations: 0 / 414 MB, free: 6.059 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.003433/0.3604, allocations: 2.005 MB / 416 MB, free: 4.527 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.215e-05/0.3605, allocations: 12.66 kB / 416.1 MB, free: 4.523 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002971/0.3608, allocations: 193.5 kB / 416.2 MB, free: 4.426 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001922/0.3627, allocations: 1.365 MB / 417.6 MB, free: 3.336 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.248e-05/0.3628, allocations: 18.81 kB / 417.6 MB, free: 3.328 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.623e-05/0.3629, allocations: 30.8 kB / 417.7 MB, free: 3.316 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009434/0.3638, allocations: 431.5 kB / 418.1 MB, free: 3.062 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.425e-05/0.3638, allocations: 4 kB / 418.1 MB, free: 3.059 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.573e-05/0.3639, allocations: 11.75 kB / 418.1 MB, free: 3.051 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.776e-05/0.3639, allocations: 13.67 kB / 418.1 MB, free: 3.043 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001097/0.365, allocations: 471.4 kB / 418.6 MB, free: 2.859 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002857/0.3679, allocations: 1.623 MB / 420.2 MB, free: 1.688 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009913/0.3689, allocations: 375.4 kB / 420.6 MB, free: 1.484 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007916/0.3697, allocations: 415.5 kB / 421 MB, free: 1.297 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01523/0.385, allocations: 15.23 MB / 436.2 MB, free: 152 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006678/0.3857, allocations: 259 kB / 436.4 MB, free: 15.88 MB / 366.1 MB Notification: Performance of pre-optimization done (n=29): time 2.665e-06/0.3857, allocations: 4 kB / 436.5 MB, free: 15.88 MB / 366.1 MB Notification: Performance of matching and sorting (n=29): time 0.002159/0.3878, allocations: 0.8446 MB / 437.3 MB, free: 15 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.475e-05/0.3879, allocations: 55.41 kB / 437.4 MB, free: 14.94 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001784/0.3897, allocations: 1.464 MB / 438.8 MB, free: 13.44 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.936e-05/0.3898, allocations: 29.7 kB / 438.8 MB, free: 13.4 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006012/0.3904, allocations: 0.7227 MB / 439.6 MB, free: 12.67 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.564e-05/0.3905, allocations: 98.73 kB / 439.7 MB, free: 12.57 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001893/0.3907, allocations: 130 kB / 439.8 MB, free: 12.44 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001129/0.3908, allocations: 322 kB / 440.1 MB, free: 12.12 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004468/0.3912, allocations: 161 kB / 440.3 MB, free: 11.96 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005737/0.3918, allocations: 363.4 kB / 440.6 MB, free: 11.52 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001002/0.3928, allocations: 0.5332 MB / 441.1 MB, free: 10.89 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.401e-06/0.3928, allocations: 5.938 kB / 441.2 MB, free: 10.89 MB / 366.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001514/0.3944, allocations: 0.7507 MB / 441.9 MB, free: 10.12 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.404e-05/0.3944, allocations: 8 kB / 441.9 MB, free: 10.12 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.181e-05/0.3945, allocations: 47.98 kB / 442 MB, free: 10.07 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000311/0.3948, allocations: 133.6 kB / 442.1 MB, free: 9.938 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000419/0.3952, allocations: 111.7 kB / 442.2 MB, free: 9.828 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006263/0.3959, allocations: 0.6889 MB / 442.9 MB, free: 9.113 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008059/0.3967, allocations: 71.47 kB / 443 MB, free: 9.043 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.789e-05/0.3968, allocations: 36 kB / 443 MB, free: 9.008 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 14 (vin.counter,$PRE.vin.counter,v.counter,$PRE.v.counter,v.counter2,$PRE.v.counter2,v.T0,$PRE.v.T0,vin.counter2,$PRE.vin.counter2,vin.T0,$PRE.vin.T0,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (53): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0004322/0.3972, allocations: 273.6 kB / 443.3 MB, free: 8.73 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000184/0.3974, allocations: 185.8 kB / 443.4 MB, free: 8.547 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0018/0.3992, allocations: 0.7422 MB / 444.2 MB, free: 7.797 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.205e-06/0.3992, allocations: 4 kB / 444.2 MB, free: 7.793 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/0.3992, allocations: 7.938 kB / 444.2 MB, free: 7.785 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.631e-06/0.3992, allocations: 3.984 kB / 444.2 MB, free: 7.781 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00222/0.4015, allocations: 1.315 MB / 445.5 MB, free: 6.395 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.998e-05/0.4015, allocations: 32 kB / 445.5 MB, free: 6.363 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002532/0.4018, allocations: 44.83 kB / 445.6 MB, free: 6.32 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002328/0.402, allocations: 132.8 kB / 445.7 MB, free: 6.188 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.679e-05/0.4021, allocations: 20 kB / 445.7 MB, free: 6.168 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005501/0.4026, allocations: 0.6694 MB / 446.4 MB, free: 5.473 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.4026, allocations: 0 / 446.4 MB, free: 5.473 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001311/0.404, allocations: 0.7123 MB / 447.1 MB, free: 4.73 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004494/0.4044, allocations: 302.5 kB / 447.4 MB, free: 4.414 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001652/0.4046, allocations: 7.625 kB / 447.4 MB, free: 4.41 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004598/0.4051, allocations: 31.95 kB / 447.5 MB, free: 4.379 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001178/0.4052, allocations: 35.97 kB / 447.5 MB, free: 4.344 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.819e-05/0.4053, allocations: 23.98 kB / 447.5 MB, free: 4.32 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001146/0.4064, allocations: 0.9614 MB / 448.5 MB, free: 3.34 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4064, allocations: 0 / 448.5 MB, free: 3.34 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001233/0.4077, allocations: 331.8 kB / 448.8 MB, free: 3.016 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,vin.T0,vin.counter,vin.counter2,v.T0,v.counter,v.counter2) * Number of discrete states: 4 (vin.counter2,v.counter2,vin.counter,v.counter) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001066/0.4087, allocations: 0.5711 MB / 449.4 MB, free: 2.434 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00148/0.4102, allocations: 0.52 MB / 449.9 MB, free: 1.902 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.527e-06/0.4102, allocations: 0 / 449.9 MB, free: 1.902 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006651/0.4109, allocations: 295.2 kB / 450.2 MB, free: 1.602 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001065/0.412, allocations: 257.8 kB / 450.4 MB, free: 1.352 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003348/0.4153, allocations: 2.214 MB / 452.6 MB, free: 15.1 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006238/0.416, allocations: 1.149 MB / 453.8 MB, free: 13.92 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005106/0.4165, allocations: 203.9 kB / 454 MB, free: 13.71 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001382/0.4167, allocations: 91.44 kB / 454.1 MB, free: 13.63 MB / 382.1 MB Notification: Performance of SimCode: time 1.263e-06/0.4167, allocations: 0 / 454.1 MB, free: 13.63 MB / 382.1 MB Notification: Performance of Templates: time 0.0313/0.448, allocations: 19.89 MB / 474 MB, free: 9.715 MB / 398.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.sim & ./Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/Inverter/Inverter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches