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.001082/0.001082, allocations: 105.8 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.001151/0.001151, allocations: 211.8 kB / 19.25 MB, free: 3.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.318/1.318, allocations: 227.4 MB / 247.4 MB, free: 10.64 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00125/0.00125, allocations: 65.59 kB / 307.6 MB, free: 0.6836 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1039/0.1052, allocations: 50.53 MB / 358.1 MB, free: 14.15 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.2387/0.344, allocations: 14.71 MB / 372.8 MB, free: 9.074 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.03854/0.3825, allocations: 20.72 MB / 393.6 MB, free: 268 kB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003776/0.3864, allocations: 29.91 kB / 393.6 MB, free: 256 kB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006512/0.393, allocations: 1.227 MB / 394.8 MB, free: 15.61 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01527/0.4083, allocations: 2.303 MB / 397.1 MB, free: 14.2 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009003/0.4173, allocations: 1.451 MB / 398.6 MB, free: 13.41 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01823/0.4356, allocations: 6.524 MB / 405.1 MB, free: 10.43 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001545/0.4372, allocations: 465.8 kB / 405.6 MB, free: 10.18 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002536/0.4398, allocations: 1.069 MB / 406.6 MB, free: 9.672 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002673/0.4425, allocations: 1.099 MB / 407.7 MB, free: 9.031 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004735/0.443, allocations: 78.56 kB / 407.8 MB, free: 9.031 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008883/0.4519, allocations: 1.481 MB / 409.3 MB, free: 8.355 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000802/0.4527, allocations: 333.6 kB / 409.6 MB, free: 8.027 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003196/0.4559, allocations: 1.378 MB / 411 MB, free: 6.641 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01005/0.466, allocations: 3.74 MB / 414.7 MB, free: 2.887 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.913e-06/0.4661, allocations: 0 / 414.7 MB, free: 2.887 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.4661, allocations: 0 / 414.7 MB, free: 2.887 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001237/0.4662, allocations: 0 / 414.7 MB, free: 2.887 MB / 318.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.00766/0.4739, allocations: 3.689 MB / 418.4 MB, free: 15.12 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.933e-05/0.4739, allocations: 8.031 kB / 418.4 MB, free: 15.11 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005408/0.4745, allocations: 399.1 kB / 418.8 MB, free: 14.71 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003699/0.4782, allocations: 2.433 MB / 421.2 MB, free: 12.2 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.76e-05/0.4783, allocations: 40.98 kB / 421.3 MB, free: 12.16 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001504/0.4784, allocations: 51.91 kB / 421.3 MB, free: 12.11 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001447/0.4799, allocations: 0.7304 MB / 422.1 MB, free: 11.37 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.466e-05/0.4799, allocations: 0 / 422.1 MB, free: 11.37 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.708e-05/0.48, allocations: 16 kB / 422.1 MB, free: 11.36 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.342e-05/0.48, allocations: 23.98 kB / 422.1 MB, free: 11.33 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001567/0.4816, allocations: 0.8163 MB / 422.9 MB, free: 10.51 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005373/0.487, allocations: 3.059 MB / 426 MB, free: 7.371 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001248/0.4882, allocations: 0.5829 MB / 426.6 MB, free: 6.773 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009983/0.4892, allocations: 0.6415 MB / 427.2 MB, free: 6.129 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02787/0.5171, allocations: 30.75 MB / 458 MB, free: 3.137 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007457/0.5179, allocations: 357.6 kB / 458.3 MB, free: 2.773 MB / 366.1 MB Notification: Performance of pre-optimization done (n=49): time 4.008e-06/0.5179, allocations: 4 kB / 458.3 MB, free: 2.77 MB / 366.1 MB Notification: Performance of matching and sorting (n=49): time 0.002395/0.5203, allocations: 1.097 MB / 459.4 MB, free: 1.664 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.078e-05/0.5204, allocations: 55.41 kB / 459.5 MB, free: 1.598 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004155/0.5246, allocations: 2.935 MB / 462.4 MB, free: 14.65 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.852e-05/0.5246, allocations: 33.7 kB / 462.4 MB, free: 14.61 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00122/0.5259, allocations: 1.489 MB / 463.9 MB, free: 13.11 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001652/0.526, allocations: 165.7 kB / 464.1 MB, free: 12.95 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003006/0.5264, allocations: 230 kB / 464.3 MB, free: 12.72 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001165/0.5265, allocations: 345.9 kB / 464.6 MB, free: 12.38 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005889/0.5271, allocations: 241.9 kB / 464.9 MB, free: 12.14 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007947/0.5279, allocations: 0.602 MB / 465.5 MB, free: 11.36 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001425/0.5293, allocations: 0.8935 MB / 466.4 MB, free: 10.29 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.979e-06/0.5293, allocations: 7.938 kB / 466.4 MB, free: 10.29 MB / 382.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002212/0.5316, allocations: 1.226 MB / 467.6 MB, free: 9.051 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.288e-05/0.5316, allocations: 14.81 kB / 467.6 MB, free: 9.039 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001115/0.5317, allocations: 87.97 kB / 467.7 MB, free: 8.953 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.697e-05/0.5317, allocations: 20.81 kB / 467.7 MB, free: 8.934 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000698/0.5324, allocations: 199.7 kB / 467.9 MB, free: 8.738 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.452e-05/0.5325, allocations: 23.88 kB / 467.9 MB, free: 8.715 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009834/0.5335, allocations: 115.2 kB / 468.1 MB, free: 8.602 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001044/0.5336, allocations: 64 kB / 468.1 MB, free: 8.539 MB / 382.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.0006777/0.5343, allocations: 436.7 kB / 468.5 MB, free: 8.105 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004698/0.5347, allocations: 379.4 kB / 468.9 MB, free: 7.73 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002913/0.5377, allocations: 1.192 MB / 470.1 MB, free: 6.527 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.947e-06/0.5377, allocations: 4 kB / 470.1 MB, free: 6.523 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.634e-06/0.5377, allocations: 1.938 kB / 470.1 MB, free: 6.523 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.795e-06/0.5377, allocations: 3.984 kB / 470.1 MB, free: 6.52 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003377/0.5411, allocations: 2.096 MB / 472.2 MB, free: 4.355 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.604e-05/0.5412, allocations: 68 kB / 472.3 MB, free: 4.289 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004937/0.5417, allocations: 103.8 kB / 472.4 MB, free: 4.188 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.984e-06/0.5417, allocations: 4 kB / 472.4 MB, free: 4.184 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.012e-05/0.5418, allocations: 32 kB / 472.4 MB, free: 4.152 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.35e-06/0.5418, allocations: 3.984 kB / 472.4 MB, free: 4.148 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.148e-06/0.5418, allocations: 4 kB / 472.4 MB, free: 4.145 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002263/0.5441, allocations: 1.293 MB / 473.7 MB, free: 2.82 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007098/0.5448, allocations: 484.2 kB / 474.2 MB, free: 2.324 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003638/0.5452, allocations: 11.98 kB / 474.2 MB, free: 2.312 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007166/0.5459, allocations: 35.95 kB / 474.2 MB, free: 2.277 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001486/0.5461, allocations: 59.89 kB / 474.3 MB, free: 2.219 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.696e-05/0.5461, allocations: 43.92 kB / 474.3 MB, free: 2.18 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003069/0.5492, allocations: 1.903 MB / 476.2 MB, free: 284 kB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5492, allocations: 0 / 476.2 MB, free: 284 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.001379/0.5506, allocations: 0.5856 MB / 476.8 MB, free: 15.69 MB / 398.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.001133/0.5518, allocations: 0.7719 MB / 477.6 MB, free: 14.91 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001738/0.5535, allocations: 0.8217 MB / 478.4 MB, free: 14.07 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/0.5535, allocations: 4.125 kB / 478.4 MB, free: 14.06 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007664/0.5543, allocations: 446.9 kB / 478.9 MB, free: 13.6 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002735/0.5571, allocations: 0.6179 MB / 479.5 MB, free: 12.98 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007285/0.5644, allocations: 4.44 MB / 483.9 MB, free: 8.5 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00167/0.5661, allocations: 1.668 MB / 485.6 MB, free: 6.805 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003662/0.5664, allocations: 151.4 kB / 485.7 MB, free: 6.656 MB / 398.1 MB Notification: Performance of SimCode: time 1.182e-06/0.5665, allocations: 0 / 485.7 MB, free: 6.656 MB / 398.1 MB Notification: Performance of Templates: time 0.05984/0.6263, allocations: 37.38 MB / 0.5109 GB, free: 1.34 MB / 430.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) "" Variables in the reference:time,mp1.S.v,mp2.S.v,v.p.v Variables in the result:mp1.S.v,mp2.S.v,time,v.p.v