Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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 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: 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_trunk_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_trunk_Modelica.Electrical.Spice3.Examples.FourInverters") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001288/0.001288, allocations: 104.5 kB / 17.85 MB, free: 5.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00147/0.00147, allocations: 205.8 kB / 18.79 MB, free: 4.727 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.411/1.411, allocations: 227.4 MB / 246.9 MB, free: 10.61 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001254/0.001254, allocations: 60.81 kB / 306.9 MB, free: 0.9492 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08566/0.08692, allocations: 50.52 MB / 357.4 MB, free: 14.42 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.1652/0.2522, allocations: 26.43 MB / 383.8 MB, free: 6.41 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02831/0.2805, allocations: 22.59 MB / 406.4 MB, free: 6.316 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006498/0.2871, allocations: 60.5 kB / 406.5 MB, free: 6.293 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005278/0.2924, allocations: 1.514 MB / 408 MB, free: 5.438 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01243/0.3049, allocations: 2.709 MB / 410.7 MB, free: 3.234 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00681/0.3117, allocations: 1.358 MB / 412.1 MB, free: 2.191 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.02183/0.3336, allocations: 12.58 MB / 424.7 MB, free: 8.586 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002102/0.3358, allocations: 0.822 MB / 425.5 MB, free: 7.727 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003697/0.3395, allocations: 2.001 MB / 427.5 MB, free: 5.715 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00305/0.3425, allocations: 2.068 MB / 429.5 MB, free: 3.633 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005196/0.3431, allocations: 92 kB / 429.6 MB, free: 3.543 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005556/0.3486, allocations: 1.502 MB / 431.1 MB, free: 2.043 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008913/0.3496, allocations: 0.5542 MB / 431.7 MB, free: 1.484 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003969/0.3535, allocations: 2.588 MB / 434.3 MB, free: 14.88 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005114/0.3587, allocations: 4.893 MB / 439.2 MB, free: 9.973 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.059e-06/0.3587, allocations: 0 / 439.2 MB, free: 9.973 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.3587, allocations: 0 / 439.2 MB, free: 9.973 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001225/0.3588, allocations: 4 kB / 439.2 MB, free: 9.969 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.009682/0.3685, allocations: 6.698 MB / 445.9 MB, free: 3.172 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.028e-05/0.3686, allocations: 16.02 kB / 445.9 MB, free: 3.156 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00086/0.3695, allocations: 0.7371 MB / 446.6 MB, free: 2.41 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006813/0.3763, allocations: 4.629 MB / 451.3 MB, free: 13.69 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.618e-05/0.3764, allocations: 66 kB / 451.3 MB, free: 13.62 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002261/0.3766, allocations: 99.89 kB / 451.4 MB, free: 13.53 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0022/0.3788, allocations: 1.301 MB / 452.7 MB, free: 12.21 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.845e-05/0.3788, allocations: 0 / 452.7 MB, free: 12.21 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001205/0.379, allocations: 40.61 kB / 452.8 MB, free: 12.17 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.087e-05/0.379, allocations: 39.98 kB / 452.8 MB, free: 12.13 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002516/0.3815, allocations: 1.48 MB / 454.3 MB, free: 10.65 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009539/0.3911, allocations: 5.636 MB / 459.9 MB, free: 4.922 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001681/0.3928, allocations: 0.9818 MB / 460.9 MB, free: 3.926 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001563/0.3944, allocations: 1.226 MB / 462.1 MB, free: 2.703 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05316/0.4475, allocations: 61.07 MB / 0.5109 GB, free: 13.16 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009846/0.4485, allocations: 0.5599 MB / 0.5115 GB, free: 12.59 MB / 446.1 MB Notification: Performance of pre-optimization done (n=85): time 2.685e-06/0.4486, allocations: 4 kB / 0.5115 GB, free: 12.58 MB / 446.1 MB Notification: Performance of matching and sorting (n=85): time 0.003363/0.4519, allocations: 1.875 MB / 0.5133 GB, free: 10.7 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.194e-05/0.452, allocations: 63.97 kB / 0.5134 GB, free: 10.62 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006654/0.4586, allocations: 5.586 MB / 0.5188 GB, free: 5.062 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001575/0.4588, allocations: 41.7 kB / 0.5189 GB, free: 5.016 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002326/0.4612, allocations: 2.943 MB / 0.5217 GB, free: 2.059 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003189/0.4615, allocations: 299.8 kB / 0.522 GB, free: 1.762 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005031/0.462, allocations: 418.6 kB / 0.5224 GB, free: 1.348 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 9.858e-05/0.4621, allocations: 305.1 kB / 0.5227 GB, free: 1.047 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008378/0.4629, allocations: 399.8 kB / 0.5231 GB, free: 0.6562 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1598/0.6228, allocations: 1.087 MB / 0.5242 GB, free: 148.4 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002417/0.6253, allocations: 1.612 MB / 0.5257 GB, free: 147.5 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.715e-05/0.6253, allocations: 9.188 kB / 0.5257 GB, free: 147.5 MB / 446.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.004737/0.63, allocations: 2.207 MB / 0.5279 GB, free: 147.3 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.394e-05/0.6301, allocations: 14.97 kB / 0.5279 GB, free: 147.3 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002161/0.6303, allocations: 166.1 kB / 0.5281 GB, free: 147.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.847e-05/0.6304, allocations: 36.56 kB / 0.5281 GB, free: 147.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001184/0.6316, allocations: 355.2 kB / 0.5284 GB, free: 147.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.92e-05/0.6316, allocations: 50.77 kB / 0.5285 GB, free: 147.3 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0018/0.6334, allocations: 189.5 kB / 0.5287 GB, free: 147.3 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001969/0.6336, allocations: 125.8 kB / 0.5288 GB, free: 147.3 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.00132/0.635, allocations: 0.718 MB / 0.5295 GB, free: 147.1 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007986/0.6358, allocations: 0.714 MB / 0.5302 GB, free: 146.8 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004837/0.6406, allocations: 2.155 MB / 0.5323 GB, free: 146.7 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.364e-05/0.6406, allocations: 8.031 kB / 0.5323 GB, free: 146.7 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/0.6406, allocations: 0.875 kB / 0.5323 GB, free: 146.7 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.197e-06/0.6407, allocations: 3.938 kB / 0.5323 GB, free: 146.7 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005852/0.6465, allocations: 3.605 MB / 0.5358 GB, free: 145.4 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001702/0.6467, allocations: 138.6 kB / 0.536 GB, free: 145.4 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007839/0.6475, allocations: 152.4 kB / 0.5361 GB, free: 145.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.538e-06/0.6475, allocations: 3.438 kB / 0.5361 GB, free: 145.4 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000103/0.6476, allocations: 65.77 kB / 0.5362 GB, free: 145.4 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.795e-06/0.6476, allocations: 6.562 kB / 0.5362 GB, free: 145.4 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.6477, allocations: 5.344 kB / 0.5362 GB, free: 145.4 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003708/0.6514, allocations: 2.152 MB / 0.5383 GB, free: 144.4 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001516/0.6529, allocations: 0.8194 MB / 0.5391 GB, free: 143.8 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006665/0.6536, allocations: 18.48 kB / 0.5391 GB, free: 143.8 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001133/0.6547, allocations: 37.3 kB / 0.5391 GB, free: 143.8 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002498/0.655, allocations: 93.97 kB / 0.5392 GB, free: 143.8 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001385/0.6551, allocations: 70.08 kB / 0.5393 GB, free: 143.8 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.006511/0.6617, allocations: 3.606 MB / 0.5428 GB, free: 142.6 MB / 446.1 MB Notification: Performance of sort global known variables: time 6.21e-07/0.6617, allocations: 7.938 kB / 0.5428 GB, free: 142.6 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002611/0.6643, allocations: 1.08 MB / 0.5439 GB, free: 142.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.001568/0.6659, allocations: 1.174 MB / 0.545 GB, free: 142.2 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002286/0.6682, allocations: 1.431 MB / 0.5464 GB, free: 141.6 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.03e-06/0.6682, allocations: 0 / 0.5464 GB, free: 141.6 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009903/0.6692, allocations: 0.7742 MB / 0.5472 GB, free: 141.2 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006004/0.6752, allocations: 1.116 MB / 0.5483 GB, free: 140.8 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01121/0.6865, allocations: 9.844 MB / 0.5579 GB, free: 133.3 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00141/0.6879, allocations: 2.595 MB / 0.5604 GB, free: 131.2 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006291/0.6886, allocations: 291.4 kB / 0.5607 GB, free: 130.9 MB / 446.1 MB Notification: Performance of SimCode: time 1.292e-06/0.6886, allocations: 0 / 0.5607 GB, free: 130.9 MB / 446.1 MB Notification: Performance of Templates: time 0.07886/0.7674, allocations: 70.16 MB / 0.6292 GB, free: 60.84 MB / 446.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.makefile (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.sim & ./Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/FourInverters/FourInverters.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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