Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.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.InvertersApartRecord,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") translateModel(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001753/0.001753, allocations: 113.7 kB / 18.45 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002518/0.002518, allocations: 202.8 kB / 19.4 MB, free: 3.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.603/2.603, allocations: 227.4 MB / 247.6 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002133/0.002133, allocations: 59.91 kB / 359.4 MB, free: 12.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3637/0.3658, allocations: 50.54 MB / 409.9 MB, free: 1.578 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.02588/0.3918, allocations: 14.72 MB / 424.6 MB, free: 2.797 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.04381/0.4356, allocations: 20.7 MB / 445.3 MB, free: 14.02 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0038/0.4395, allocations: 91.25 kB / 445.4 MB, free: 13.93 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005826/0.4454, allocations: 1.23 MB / 446.7 MB, free: 12.7 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01371/0.4592, allocations: 2.301 MB / 449 MB, free: 10.38 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007833/0.4671, allocations: 1.439 MB / 450.4 MB, free: 8.934 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01749/0.4846, allocations: 6.563 MB / 457 MB, free: 2.352 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001358/0.486, allocations: 469 kB / 457.4 MB, free: 1.863 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002741/0.4888, allocations: 1.1 MB / 458.5 MB, free: 0.7578 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002525/0.4913, allocations: 1.11 MB / 459.6 MB, free: 15.64 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003651/0.4917, allocations: 76 kB / 459.7 MB, free: 15.57 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006497/0.4983, allocations: 1.479 MB / 461.2 MB, free: 14.09 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006448/0.499, allocations: 341.5 kB / 461.5 MB, free: 13.75 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002641/0.5016, allocations: 1.362 MB / 462.9 MB, free: 12.38 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009219/0.5109, allocations: 3.775 MB / 466.6 MB, free: 8.59 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.176e-06/0.5109, allocations: 0 / 466.6 MB, free: 8.59 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.511, allocations: 3.938 kB / 466.7 MB, free: 8.586 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.169e-05/0.5111, allocations: 0 / 466.7 MB, free: 8.586 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.009607/0.5207, allocations: 3.678 MB / 470.3 MB, free: 4.828 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.501e-05/0.5208, allocations: 8.031 kB / 470.3 MB, free: 4.82 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006197/0.5214, allocations: 391.2 kB / 470.7 MB, free: 4.434 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005772/0.5272, allocations: 2.422 MB / 473.1 MB, free: 1.938 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.82e-05/0.5273, allocations: 37 kB / 473.2 MB, free: 1.902 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002411/0.5276, allocations: 48 kB / 473.2 MB, free: 1.855 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002519/0.5301, allocations: 0.7343 MB / 474 MB, free: 1.113 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.281e-05/0.5301, allocations: 0 / 474 MB, free: 1.113 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001127/0.5303, allocations: 20 kB / 474 MB, free: 1.094 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.859e-05/0.5303, allocations: 19.98 kB / 474 MB, free: 1.074 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003077/0.5334, allocations: 0.8202 MB / 474.8 MB, free: 260 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0103/0.5437, allocations: 3.043 MB / 477.9 MB, free: 13.12 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002409/0.5462, allocations: 0.579 MB / 478.4 MB, free: 12.54 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001968/0.5482, allocations: 0.6437 MB / 479.1 MB, free: 11.89 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07047/0.6187, allocations: 30.74 MB / 0.4979 GB, free: 8.891 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00144/0.6202, allocations: 373.6 kB / 0.4982 GB, free: 8.516 MB / 430.1 MB Notification: Performance of pre-optimization done (n=49): time 5.17e-06/0.6203, allocations: 0 / 0.4982 GB, free: 8.516 MB / 430.1 MB Notification: Performance of matching and sorting (n=49): time 0.00436/0.6246, allocations: 1.085 MB / 0.4993 GB, free: 7.418 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.028e-05/0.6247, allocations: 59.41 kB / 0.4994 GB, free: 7.348 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006616/0.6314, allocations: 2.931 MB / 0.5022 GB, free: 4.406 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001543/0.6316, allocations: 41.7 kB / 0.5023 GB, free: 4.359 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002247/0.6339, allocations: 1.485 MB / 0.5037 GB, free: 2.863 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003465/0.6342, allocations: 169.7 kB / 0.5039 GB, free: 2.695 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005179/0.6348, allocations: 226.1 kB / 0.5041 GB, free: 2.469 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.000195/0.635, allocations: 341.9 kB / 0.5044 GB, free: 2.129 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001138/0.6361, allocations: 241.8 kB / 0.5046 GB, free: 1.895 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001524/0.6377, allocations: 0.602 MB / 0.5052 GB, free: 1.113 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002902/0.6406, allocations: 0.8935 MB / 0.5061 GB, free: 48 kB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.671e-05/0.6407, allocations: 7.938 kB / 0.5061 GB, free: 40 kB / 430.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.004337/0.645, allocations: 1.225 MB / 0.5073 GB, free: 14.81 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.981e-05/0.6451, allocations: 15.94 kB / 0.5073 GB, free: 14.79 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001967/0.6453, allocations: 80.84 kB / 0.5074 GB, free: 14.71 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.559e-05/0.6454, allocations: 16 kB / 0.5074 GB, free: 14.7 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001435/0.6468, allocations: 199.7 kB / 0.5076 GB, free: 14.5 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.656e-05/0.6469, allocations: 27.86 kB / 0.5076 GB, free: 14.48 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002186/0.6491, allocations: 118.9 kB / 0.5077 GB, free: 14.36 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001936/0.6493, allocations: 71.94 kB / 0.5078 GB, free: 14.29 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * 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 (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.001334/0.6507, allocations: 437.3 kB / 0.5082 GB, free: 13.85 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008951/0.6516, allocations: 383.4 kB / 0.5086 GB, free: 13.47 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004917/0.6565, allocations: 1.186 MB / 0.5098 GB, free: 12.27 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.886e-05/0.6566, allocations: 8 kB / 0.5098 GB, free: 12.26 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.103e-06/0.6566, allocations: 0 / 0.5098 GB, free: 12.26 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.566e-06/0.6566, allocations: 4 kB / 0.5098 GB, free: 12.26 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006391/0.663, allocations: 2.092 MB / 0.5118 GB, free: 10.1 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001697/0.6633, allocations: 71.98 kB / 0.5119 GB, free: 10.03 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008535/0.6641, allocations: 91.86 kB / 0.512 GB, free: 9.938 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.016e-06/0.6642, allocations: 7.938 kB / 0.512 GB, free: 9.93 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001022/0.6643, allocations: 28 kB / 0.512 GB, free: 9.902 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.14e-05/0.6643, allocations: 4 kB / 0.512 GB, free: 9.898 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.442e-06/0.6643, allocations: 8 kB / 0.512 GB, free: 9.891 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004529/0.6689, allocations: 1.301 MB / 0.5133 GB, free: 8.559 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001593/0.6705, allocations: 476.3 kB / 0.5137 GB, free: 8.07 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004926/0.671, allocations: 12 kB / 0.5137 GB, free: 8.059 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001351/0.6724, allocations: 23.97 kB / 0.5138 GB, free: 8.035 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002687/0.6727, allocations: 71.94 kB / 0.5138 GB, free: 7.965 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001285/0.6728, allocations: 36 kB / 0.5139 GB, free: 7.93 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.005227/0.6781, allocations: 1.907 MB / 0.5157 GB, free: 6.023 MB / 446.1 MB Notification: Performance of sort global known variables: time 7.71e-07/0.6781, allocations: 0 / 0.5157 GB, free: 6.023 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002777/0.6809, allocations: 0.5855 MB / 0.5163 GB, free: 5.438 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (c1.vinternal,c2.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 (42): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.001914/0.6829, allocations: 0.7739 MB / 0.5171 GB, free: 4.656 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003007/0.6859, allocations: 0.8057 MB / 0.5178 GB, free: 3.824 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.982e-06/0.6859, allocations: 0 / 0.5178 GB, free: 3.824 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001484/0.6874, allocations: 439.7 kB / 0.5183 GB, free: 3.371 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005043/0.6925, allocations: 0.6229 MB / 0.5189 GB, free: 2.742 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01194/0.7045, allocations: 4.361 MB / 0.5231 GB, free: 14.34 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001935/0.7065, allocations: 1.665 MB / 0.5248 GB, free: 12.65 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006236/0.7071, allocations: 159.4 kB / 0.5249 GB, free: 12.49 MB / 462.1 MB Notification: Performance of SimCode: time 1.793e-06/0.7072, allocations: 0 / 0.5249 GB, free: 12.49 MB / 462.1 MB Notification: Performance of Templates: time 0.9423/1.649, allocations: 38.13 MB / 0.5621 GB, free: 113.1 MB / 462.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.makefile (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & ./Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/InvertersApartRecord/InvertersApartRecord.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches