Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.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.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.0.0_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.0.0_Modelica.Electrical.Spice3.Examples.FourInverters") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00106/0.00106, allocations: 113.3 kB / 17.69 MB, free: 5.309 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.001114/0.001114, allocations: 192 kB / 18.63 MB, free: 4.375 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.31/1.31, allocations: 222.9 MB / 242.3 MB, free: 15.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009352/0.0009353, allocations: 43.45 kB / 302.1 MB, free: 5.23 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08297/0.08392, allocations: 49.44 MB / 351.5 MB, free: 3.758 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.1843/0.2682, allocations: 26.7 MB / 378.2 MB, free: 9.633 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02798/0.2963, allocations: 22.34 MB / 400.5 MB, free: 13.57 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006575/0.3029, allocations: 173.2 kB / 400.7 MB, free: 13.48 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005408/0.3083, allocations: 1.777 MB / 402.5 MB, free: 12.52 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01248/0.3208, allocations: 3.214 MB / 405.7 MB, free: 9.867 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006241/0.3271, allocations: 1.627 MB / 407.3 MB, free: 8.598 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.02161/0.3487, allocations: 12.68 MB / 420 MB, free: 15.75 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001973/0.3508, allocations: 0.8522 MB / 420.9 MB, free: 14.86 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003556/0.3543, allocations: 2.064 MB / 422.9 MB, free: 12.78 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002487/0.3568, allocations: 2.1 MB / 425 MB, free: 10.66 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003111/0.3572, allocations: 132 kB / 425.1 MB, free: 10.54 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005732/0.3629, allocations: 1.537 MB / 426.7 MB, free: 8.996 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001051/0.364, allocations: 0.6048 MB / 427.3 MB, free: 8.387 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004273/0.3683, allocations: 2.62 MB / 429.9 MB, free: 5.75 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01156/0.3798, allocations: 6.634 MB / 436.5 MB, free: 15.09 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.274e-06/0.3799, allocations: 0 / 436.5 MB, free: 15.09 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.3799, allocations: 4 kB / 436.5 MB, free: 15.09 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002313/0.3801, allocations: 0 / 436.5 MB, free: 15.09 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.01059/0.3907, allocations: 6.666 MB / 443.2 MB, free: 8.324 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.551e-05/0.3908, allocations: 8.031 kB / 443.2 MB, free: 8.316 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007773/0.3916, allocations: 0.7409 MB / 444 MB, free: 7.566 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006577/0.3981, allocations: 4.597 MB / 448.6 MB, free: 2.875 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.716e-05/0.3982, allocations: 69.94 kB / 448.6 MB, free: 2.809 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002291/0.3985, allocations: 99.89 kB / 448.7 MB, free: 2.711 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002217/0.4007, allocations: 1.309 MB / 450 MB, free: 1.383 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.179e-05/0.4007, allocations: 0 / 450 MB, free: 1.383 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000111/0.4008, allocations: 36 kB / 450.1 MB, free: 1.348 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.672e-05/0.4009, allocations: 38.67 kB / 450.1 MB, free: 1.312 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002576/0.4035, allocations: 1.484 MB / 451.6 MB, free: 15.83 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01081/0.4143, allocations: 5.62 MB / 457.2 MB, free: 10.12 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001775/0.4161, allocations: 0.9773 MB / 458.2 MB, free: 9.133 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001576/0.4177, allocations: 1.235 MB / 459.4 MB, free: 7.891 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05746/0.4752, allocations: 59.79 MB / 0.5071 GB, free: 3.918 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001021/0.4762, allocations: 0.5676 MB / 0.5076 GB, free: 3.336 MB / 430.1 MB Notification: Performance of pre-optimization done (n=85): time 3.727e-06/0.4763, allocations: 0 / 0.5076 GB, free: 3.336 MB / 430.1 MB Notification: Performance of matching and sorting (n=85): time 0.003785/0.4801, allocations: 1.871 MB / 0.5094 GB, free: 1.457 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.987e-05/0.4801, allocations: 67.95 kB / 0.5095 GB, free: 1.375 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00887/0.489, allocations: 5.582 MB / 0.5149 GB, free: 11.82 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003016/0.4894, allocations: 41.7 kB / 0.515 GB, free: 11.77 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003015/0.4924, allocations: 2.947 MB / 0.5179 GB, free: 8.812 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005438/0.4929, allocations: 291.9 kB / 0.5181 GB, free: 8.523 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006715/0.4936, allocations: 422.5 kB / 0.5185 GB, free: 8.105 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001022/0.4937, allocations: 301.1 kB / 0.5188 GB, free: 7.809 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000875/0.4946, allocations: 407.8 kB / 0.5192 GB, free: 7.41 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001267/0.4959, allocations: 1.087 MB / 0.5203 GB, free: 5.996 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002249/0.4982, allocations: 1.615 MB / 0.5219 GB, free: 4.047 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.353e-05/0.4982, allocations: 8 kB / 0.5219 GB, free: 4.039 MB / 446.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.003714/0.5019, allocations: 2.206 MB / 0.524 GB, free: 1.82 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.656e-05/0.502, allocations: 16 kB / 0.524 GB, free: 1.805 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001928/0.5022, allocations: 160 kB / 0.5242 GB, free: 1.648 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.321e-05/0.5022, allocations: 39.92 kB / 0.5242 GB, free: 1.609 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001106/0.5033, allocations: 367.9 kB / 0.5246 GB, free: 1.254 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.193e-05/0.5034, allocations: 47.8 kB / 0.5246 GB, free: 1.207 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001824/0.5052, allocations: 186.2 kB / 0.5248 GB, free: 1.023 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001893/0.5054, allocations: 120 kB / 0.5249 GB, free: 0.9062 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.001384/0.5068, allocations: 0.716 MB / 0.5256 GB, free: 184 kB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.1892/0.696, allocations: 0.7119 MB / 0.5263 GB, free: 155.4 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005298/0.7014, allocations: 2.15 MB / 0.5284 GB, free: 155.3 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.33e-05/0.7014, allocations: 7.312 kB / 0.5284 GB, free: 155.3 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.987e-06/0.7014, allocations: 1.281 kB / 0.5284 GB, free: 155.3 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.043e-05/0.7015, allocations: 3.281 kB / 0.5284 GB, free: 155.3 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007135/0.7086, allocations: 3.608 MB / 0.5319 GB, free: 154.1 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001718/0.7088, allocations: 139 kB / 0.5321 GB, free: 154.1 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007234/0.7095, allocations: 147.7 kB / 0.5322 GB, free: 154.1 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.997e-06/0.7095, allocations: 6.719 kB / 0.5322 GB, free: 154.1 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.158e-05/0.7096, allocations: 61.7 kB / 0.5323 GB, free: 154 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.352e-06/0.7097, allocations: 3.156 kB / 0.5323 GB, free: 154 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.7097, allocations: 1.156 kB / 0.5323 GB, free: 154 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00294/0.7126, allocations: 2.156 MB / 0.5344 GB, free: 153.2 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001507/0.7141, allocations: 0.8212 MB / 0.5352 GB, free: 152.7 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006871/0.7148, allocations: 18.62 kB / 0.5352 GB, free: 152.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001073/0.7159, allocations: 33.34 kB / 0.5352 GB, free: 152.7 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002157/0.7161, allocations: 101.3 kB / 0.5353 GB, free: 152.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001341/0.7163, allocations: 65.27 kB / 0.5354 GB, free: 152.7 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.006612/0.7229, allocations: 3.61 MB / 0.5389 GB, free: 151.4 MB / 446.1 MB Notification: Performance of sort global known variables: time 9.11e-07/0.7229, allocations: 7.703 kB / 0.5389 GB, free: 151.4 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004204/0.7271, allocations: 1.076 MB / 0.54 GB, free: 151.4 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.00226/0.7294, allocations: 1.176 MB / 0.5411 GB, free: 151.1 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002803/0.7322, allocations: 1.431 MB / 0.5425 GB, free: 150.5 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.521e-06/0.7323, allocations: 5.344 kB / 0.5425 GB, free: 150.5 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001038/0.7333, allocations: 0.772 MB / 0.5433 GB, free: 150.1 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006694/0.74, allocations: 1.173 MB / 0.5444 GB, free: 149.6 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01231/0.7524, allocations: 8.082 MB / 0.5523 GB, free: 145.6 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002585/0.755, allocations: 2.591 MB / 0.5549 GB, free: 144.5 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002132/0.7571, allocations: 0.6812 MB / 0.5555 GB, free: 144 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005387/0.7577, allocations: 279.4 kB / 0.5558 GB, free: 143.7 MB / 446.1 MB Notification: Performance of SimCode: time 1.152e-06/0.7577, allocations: 4 kB / 0.5558 GB, free: 143.7 MB / 446.1 MB Notification: Performance of Templates: time 0.08037/0.8381, allocations: 55.12 MB / 0.6096 GB, free: 89.26 MB / 446.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.sim & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches