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.001104/0.001104, allocations: 91.78 kB / 16.98 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00145/0.00145, allocations: 199 kB / 17.89 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.28/1.28, allocations: 227.2 MB / 245.9 MB, free: 10.35 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002387/0.0002387, allocations: 4 kB / 306.6 MB, free: 1.426 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08312/0.08338, allocations: 51.49 MB / 358.1 MB, free: 13.93 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01005/0.09346, allocations: 11.8 MB / 369.9 MB, free: 2.09 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1588/0.2522, allocations: 17.84 MB / 387.7 MB, free: 5.281 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001198/0.2535, allocations: 25.66 kB / 387.7 MB, free: 5.273 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002471/0.256, allocations: 1.004 MB / 388.7 MB, free: 4.816 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006862/0.2628, allocations: 2.076 MB / 390.8 MB, free: 3.523 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004262/0.2671, allocations: 1.19 MB / 392 MB, free: 2.895 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.009476/0.2766, allocations: 6.145 MB / 398.1 MB, free: 116 kB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007213/0.2773, allocations: 413.6 kB / 398.6 MB, free: 15.9 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001751/0.2791, allocations: 0.9539 MB / 399.5 MB, free: 15.4 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00119/0.2803, allocations: 1.01 MB / 400.5 MB, free: 14.86 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001447/0.2805, allocations: 42.62 kB / 400.6 MB, free: 14.86 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004554/0.285, allocations: 1.441 MB / 402 MB, free: 14.41 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003336/0.2854, allocations: 276.1 kB / 402.3 MB, free: 14.2 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007569/0.2861, allocations: 0.6173 MB / 402.9 MB, free: 13.83 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002629/0.2888, allocations: 2.593 MB / 405.5 MB, free: 12.01 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.995e-06/0.2888, allocations: 3.938 kB / 405.5 MB, free: 12 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.286e-06/0.2888, allocations: 3.984 kB / 405.5 MB, free: 12 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.113e-05/0.2888, allocations: 0 / 405.5 MB, free: 12 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.004744/0.2936, allocations: 3.243 MB / 408.7 MB, free: 9.594 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.945e-05/0.2936, allocations: 12.03 kB / 408.7 MB, free: 9.582 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004073/0.2941, allocations: 391.2 kB / 409.1 MB, free: 9.195 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003446/0.2975, allocations: 2.254 MB / 411.4 MB, free: 6.871 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.186e-05/0.2976, allocations: 33 kB / 411.4 MB, free: 6.84 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001186/0.2977, allocations: 59.94 kB / 411.5 MB, free: 6.781 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001272/0.299, allocations: 0.746 MB / 412.2 MB, free: 6.031 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.42e-05/0.299, allocations: 0 / 412.2 MB, free: 6.031 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.678e-05/0.2991, allocations: 19.94 kB / 412.2 MB, free: 6.012 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.149e-05/0.2991, allocations: 31.98 kB / 412.3 MB, free: 5.98 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001519/0.3006, allocations: 0.8476 MB / 413.1 MB, free: 5.129 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004948/0.3056, allocations: 3.067 MB / 416.2 MB, free: 1.973 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001174/0.3068, allocations: 0.6142 MB / 416.8 MB, free: 1.352 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02919/0.336, allocations: 30.91 MB / 447.7 MB, free: 14.19 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007166/0.3367, allocations: 389.4 kB / 448.1 MB, free: 13.79 MB / 366.1 MB Notification: Performance of pre-optimization done (n=49): time 2.264e-06/0.3367, allocations: 0 / 448.1 MB, free: 13.79 MB / 366.1 MB Notification: Performance of matching and sorting (n=49): time 0.002279/0.339, allocations: 1.458 MB / 449.5 MB, free: 12.25 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.464e-05/0.3391, allocations: 71.14 kB / 449.6 MB, free: 12.17 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003114/0.3422, allocations: 2.9 MB / 452.5 MB, free: 9.258 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.248e-05/0.3423, allocations: 33.7 kB / 452.5 MB, free: 9.219 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001139/0.3434, allocations: 1.489 MB / 454 MB, free: 7.719 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001371/0.3436, allocations: 165.7 kB / 454.2 MB, free: 7.555 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.261e-05/0.3436, allocations: 23.94 kB / 454.2 MB, free: 7.531 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000109/0.3437, allocations: 337.9 kB / 454.5 MB, free: 7.195 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005677/0.3443, allocations: 261.9 kB / 454.8 MB, free: 6.941 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007904/0.3451, allocations: 0.6176 MB / 455.4 MB, free: 6.145 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000657/0.3458, allocations: 340.5 kB / 455.8 MB, free: 5.812 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.915e-06/0.3458, allocations: 4 kB / 455.8 MB, free: 5.809 MB / 366.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002077/0.3479, allocations: 1.26 MB / 457 MB, free: 4.539 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.479e-05/0.3479, allocations: 12 kB / 457 MB, free: 4.527 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001031/0.348, allocations: 83.98 kB / 457.1 MB, free: 4.445 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.465e-05/0.348, allocations: 20.75 kB / 457.1 MB, free: 4.426 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006923/0.3487, allocations: 215.7 kB / 457.3 MB, free: 4.215 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.471e-05/0.3488, allocations: 24.75 kB / 457.4 MB, free: 4.191 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001004/0.3498, allocations: 126.9 kB / 457.5 MB, free: 4.066 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.252e-05/0.3499, allocations: 68 kB / 457.6 MB, free: 4 MB / 366.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 ($PRE.vin.counter,vin.counter,$PRE.v.counter,v.counter,$whenCondition2,$whenCondition1,$PRE.vin.T0,vin.T0,$PRE.vin.counter2,vin.counter2,$PRE.v.T0,v.T0,$PRE.v.counter2,v.counter2) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006366/0.3505, allocations: 422.8 kB / 458 MB, free: 3.578 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003552/0.3509, allocations: 379.4 kB / 458.3 MB, free: 3.203 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003011/0.3539, allocations: 1.257 MB / 459.6 MB, free: 1.934 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.097e-05/0.3539, allocations: 4 kB / 459.6 MB, free: 1.93 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.622e-06/0.354, allocations: 0 / 459.6 MB, free: 1.93 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.436e-06/0.354, allocations: 3.984 kB / 459.6 MB, free: 1.926 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003472/0.3574, allocations: 2.133 MB / 461.7 MB, free: 15.73 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.351e-05/0.3575, allocations: 68.06 kB / 461.8 MB, free: 15.66 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004744/0.358, allocations: 107.8 kB / 461.9 MB, free: 15.55 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.492e-06/0.358, allocations: 7.938 kB / 461.9 MB, free: 15.55 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.28e-05/0.3581, allocations: 28 kB / 461.9 MB, free: 15.52 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.892e-06/0.3581, allocations: 7.953 kB / 462 MB, free: 15.51 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.3581, allocations: 4 kB / 462 MB, free: 15.51 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002171/0.3603, allocations: 1.408 MB / 463.4 MB, free: 14.05 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007733/0.3611, allocations: 480.1 kB / 463.8 MB, free: 13.56 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002896/0.3614, allocations: 8 kB / 463.8 MB, free: 13.55 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006961/0.3621, allocations: 40.03 kB / 463.9 MB, free: 13.51 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001345/0.3622, allocations: 63.94 kB / 463.9 MB, free: 13.45 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.053e-05/0.3623, allocations: 43.92 kB / 464 MB, free: 13.41 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002205/0.3645, allocations: 1.868 MB / 465.9 MB, free: 11.54 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3645, allocations: 0 / 465.9 MB, free: 11.54 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001262/0.3658, allocations: 0.5816 MB / 466.4 MB, free: 10.96 MB / 382.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009057/0.3667, allocations: 0.7344 MB / 467.2 MB, free: 10.22 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001518/0.3682, allocations: 0.8492 MB / 468 MB, free: 9.352 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.3683, allocations: 4.125 kB / 468 MB, free: 9.348 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007362/0.369, allocations: 459.1 kB / 468.5 MB, free: 8.875 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002131/0.3711, allocations: 0.584 MB / 469.1 MB, free: 8.285 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005809/0.377, allocations: 4.896 MB / 474 MB, free: 3.352 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001083/0.3781, allocations: 1.723 MB / 475.7 MB, free: 1.602 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001262/0.3793, allocations: 365.1 kB / 476 MB, free: 1.238 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002211/0.3796, allocations: 151.4 kB / 476.2 MB, free: 1.09 MB / 382.1 MB Notification: Performance of SimCode: time 4.51e-07/0.3796, allocations: 0 / 476.2 MB, free: 1.09 MB / 382.1 MB Notification: Performance of Templates: time 0.04941/0.429, allocations: 28.47 MB / 0.4928 GB, free: 4.758 MB / 414.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/InvertersApartRecord/InvertersApartRecord.csv","../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches