Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.FourInverters.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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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: translateModel(Modelica.Electrical.Spice3.Examples.FourInverters,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp1.S.v|mp2.S.v|mp3.S.v|mp4.S.v|v.p.v",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.FourInverters") translateModel(Modelica.Electrical.Spice3.Examples.FourInverters,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp1.S.v|mp2.S.v|mp3.S.v|mp4.S.v|v.p.v",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.FourInverters") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001637/0.001637, allocations: 105.6 kB / 18.3 MB, free: 4.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002112/0.002112, allocations: 208.1 kB / 19.25 MB, free: 3.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.554/1.554, allocations: 227.7 MB / 247.7 MB, free: 10.36 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.00197/0.00197, allocations: 67.98 kB / 307.9 MB, free: 0.543 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09718/0.09917, allocations: 50.53 MB / 358.4 MB, free: 14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.1667/0.2659, allocations: 26.73 MB / 385.2 MB, free: 5.871 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02862/0.2945, allocations: 22.37 MB / 407.5 MB, free: 5.812 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005223/0.2998, allocations: 55.41 kB / 407.6 MB, free: 5.793 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005478/0.3053, allocations: 1.778 MB / 409.4 MB, free: 4.453 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01305/0.3184, allocations: 3.215 MB / 412.6 MB, free: 1.797 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006089/0.3245, allocations: 1.627 MB / 414.2 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.02135/0.3459, allocations: 12.77 MB / 427 MB, free: 6.688 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001784/0.3477, allocations: 0.863 MB / 427.8 MB, free: 5.785 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003599/0.3513, allocations: 2.033 MB / 429.9 MB, free: 3.742 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003112/0.3545, allocations: 2.096 MB / 432 MB, free: 1.633 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004279/0.3549, allocations: 140 kB / 432.1 MB, free: 1.496 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005294/0.3602, allocations: 1.541 MB / 433.6 MB, free: 15.95 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008236/0.361, allocations: 0.6009 MB / 434.2 MB, free: 15.35 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003623/0.3647, allocations: 2.635 MB / 436.9 MB, free: 12.7 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009909/0.3746, allocations: 6.579 MB / 443.4 MB, free: 6.09 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.082e-06/0.3746, allocations: 0 / 443.4 MB, free: 6.09 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.694e-06/0.3746, allocations: 0 / 443.4 MB, free: 6.09 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001554/0.3748, allocations: 4 kB / 443.5 MB, free: 6.086 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 288 * Number of variables: 288 Notification: Performance of Generate backend data structure: time 0.0112/0.386, allocations: 6.694 MB / 450.1 MB, free: 15.3 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.869e-05/0.3861, allocations: 12.03 kB / 450.2 MB, free: 15.29 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001055/0.3871, allocations: 0.7371 MB / 450.9 MB, free: 14.54 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007643/0.3948, allocations: 4.632 MB / 455.5 MB, free: 9.812 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.136e-05/0.3949, allocations: 69.98 kB / 455.6 MB, free: 9.746 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002542/0.3952, allocations: 95.91 kB / 455.7 MB, free: 9.652 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00245/0.3976, allocations: 1.301 MB / 457 MB, free: 8.332 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.294e-05/0.3977, allocations: 7.938 kB / 457 MB, free: 8.324 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000124/0.3978, allocations: 28 kB / 457 MB, free: 8.297 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.274e-05/0.3978, allocations: 47.97 kB / 457.1 MB, free: 8.25 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002767/0.4006, allocations: 1.48 MB / 458.6 MB, free: 6.766 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01063/0.4112, allocations: 5.636 MB / 464.2 MB, free: 1.043 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001915/0.4132, allocations: 0.9915 MB / 465.2 MB, free: 36 kB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001873/0.4151, allocations: 1.224 MB / 466.4 MB, free: 14.81 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06415/0.4792, allocations: 61.07 MB / 0.5151 GB, free: 9.277 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001112/0.4804, allocations: 0.5482 MB / 0.5156 GB, free: 8.715 MB / 446.1 MB Notification: Performance of pre-optimization done (n=85): time 2.886e-06/0.4804, allocations: 4 kB / 0.5156 GB, free: 8.711 MB / 446.1 MB Notification: Performance of matching and sorting (n=85): time 0.003805/0.4842, allocations: 1.879 MB / 0.5175 GB, free: 6.82 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.808e-05/0.4843, allocations: 63.97 kB / 0.5175 GB, free: 6.746 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007885/0.4922, allocations: 5.59 MB / 0.523 GB, free: 1.184 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002158/0.4924, allocations: 45.69 kB / 0.523 GB, free: 1.133 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.1597/0.6521, allocations: 2.933 MB / 0.5259 GB, free: 150.4 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004309/0.6526, allocations: 294.3 kB / 0.5262 GB, free: 150.3 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005974/0.6532, allocations: 422.7 kB / 0.5266 GB, free: 150.2 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.332e-05/0.6532, allocations: 302.3 kB / 0.5269 GB, free: 149.9 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000917/0.6541, allocations: 404.1 kB / 0.5273 GB, free: 149.8 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00113/0.6553, allocations: 1.089 MB / 0.5283 GB, free: 148.8 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002094/0.6574, allocations: 1.615 MB / 0.5299 GB, free: 147.5 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.428e-05/0.6574, allocations: 6.75 kB / 0.5299 GB, free: 147.5 MB / 446.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.003759/0.6612, allocations: 2.208 MB / 0.5321 GB, free: 146.6 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.222e-05/0.6612, allocations: 19.39 kB / 0.5321 GB, free: 146.6 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002161/0.6615, allocations: 163 kB / 0.5322 GB, free: 146.6 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.128e-05/0.6615, allocations: 36.22 kB / 0.5323 GB, free: 146.6 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001163/0.6627, allocations: 361.1 kB / 0.5326 GB, free: 146.6 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.209e-05/0.6627, allocations: 45.73 kB / 0.5327 GB, free: 146.6 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0018/0.6645, allocations: 188.3 kB / 0.5328 GB, free: 146.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001751/0.6647, allocations: 120.4 kB / 0.533 GB, free: 146.4 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 108 * 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 (184): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001181/0.6659, allocations: 0.7137 MB / 0.5337 GB, free: 146 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007796/0.6667, allocations: 0.7116 MB / 0.5344 GB, free: 145.6 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004982/0.6717, allocations: 2.154 MB / 0.5365 GB, free: 144.9 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.182e-05/0.6717, allocations: 6.969 kB / 0.5365 GB, free: 144.9 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.393e-06/0.6717, allocations: 6.281 kB / 0.5365 GB, free: 144.9 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.595e-06/0.6718, allocations: 6.344 kB / 0.5365 GB, free: 144.9 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006127/0.6779, allocations: 3.595 MB / 0.54 GB, free: 143.4 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001904/0.6781, allocations: 143.8 kB / 0.5401 GB, free: 143.4 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008052/0.6789, allocations: 154 kB / 0.5403 GB, free: 143.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.005e-05/0.6789, allocations: 8.047 kB / 0.5403 GB, free: 143.4 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.837e-05/0.679, allocations: 65.23 kB / 0.5403 GB, free: 143.4 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.664e-06/0.6791, allocations: 3.594 kB / 0.5403 GB, free: 143.4 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.427e-06/0.6791, allocations: 4.5 kB / 0.5403 GB, free: 143.3 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003672/0.6827, allocations: 2.148 MB / 0.5424 GB, free: 142.4 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001727/0.6845, allocations: 0.8273 MB / 0.5433 GB, free: 141.8 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006769/0.6852, allocations: 12.64 kB / 0.5433 GB, free: 141.8 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001073/0.6863, allocations: 37.56 kB / 0.5433 GB, free: 141.8 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002429/0.6865, allocations: 97.47 kB / 0.5434 GB, free: 141.8 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000134/0.6867, allocations: 69.86 kB / 0.5435 GB, free: 141.8 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.005934/0.6926, allocations: 3.605 MB / 0.547 GB, free: 140.6 MB / 446.1 MB Notification: Performance of sort global known variables: time 4.61e-07/0.6926, allocations: 3.938 kB / 0.547 GB, free: 140.6 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00268/0.6953, allocations: 1.081 MB / 0.548 GB, free: 140.5 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (c1.vinternal,c2.vinternal,c3.vinternal,c4.vinternal) * 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 (70): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 6 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00156/0.6969, allocations: 1.175 MB / 0.5492 GB, free: 140.2 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002843/0.6997, allocations: 1.462 MB / 0.5506 GB, free: 139.6 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.205e-06/0.6998, allocations: 0 / 0.5506 GB, free: 139.6 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001028/0.7008, allocations: 0.7668 MB / 0.5514 GB, free: 139.1 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005221/0.706, allocations: 1.212 MB / 0.5525 GB, free: 138.6 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01064/0.7167, allocations: 8.322 MB / 0.5607 GB, free: 131.5 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001321/0.718, allocations: 2.596 MB / 0.5632 GB, free: 129.1 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005848/0.7186, allocations: 291.4 kB / 0.5635 GB, free: 128.8 MB / 446.1 MB Notification: Performance of SimCode: time 7.92e-07/0.7187, allocations: 0 / 0.5635 GB, free: 128.8 MB / 446.1 MB Notification: Performance of Templates: time 0.08083/0.7995, allocations: 70.17 MB / 0.632 GB, free: 58.76 MB / 446.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.FourInverters.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.FourInverters.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.FourInverters -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/FourInverters/FourInverters.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.FourInverters.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,mp1.S.v,mp2.S.v,mp3.S.v,mp4.S.v,v.p.v Variables in the result:mp1.S.v,mp2.S.v,mp3.S.v,mp4.S.v,time,v.p.v