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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.002583/0.002583, allocations: 99.53 kB / 20.97 MB, free: 3.449 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00297/0.00297, allocations: 164.8 kB / 24.27 MB, free: 148 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.609/1.609, allocations: 177 MB / 204.4 MB, free: 5.613 MB / 186.7 MB " [Timeout remaining time 178] 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=5002,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=5002,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 5.27e-06/5.27e-06, allocations: 4 kB / 272.2 MB, free: 1.816 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.563e-05/3.09e-05, allocations: 2.312 kB / 272.2 MB, free: 1.812 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01725/0.01728, allocations: 13.99 MB / 286.2 MB, free: 3.762 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1385/0.1558, allocations: 19.73 MB / 305.9 MB, free: 10.39 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001822/0.1576, allocations: 133.4 kB / 306 MB, free: 10.3 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002683/0.1603, allocations: 1.146 MB / 307.2 MB, free: 9.746 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006759/0.167, allocations: 2.424 MB / 309.6 MB, free: 8.242 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004332/0.1714, allocations: 1.45 MB / 311.1 MB, free: 7.195 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.008378/0.1798, allocations: 6.777 MB / 317.8 MB, free: 3.883 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00057/0.1803, allocations: 264.5 kB / 318.1 MB, free: 3.707 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001792/0.1821, allocations: 1.562 MB / 319.7 MB, free: 2.148 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009016/0.183, allocations: 0.7939 MB / 320.4 MB, free: 1.352 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001952/0.1832, allocations: 76 kB / 320.5 MB, free: 1.277 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003306/0.1865, allocations: 1.214 MB / 321.7 MB, free: 64 kB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004081/0.1869, allocations: 329.6 kB / 322.1 MB, free: 15.74 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001298/0.1882, allocations: 0.7398 MB / 322.8 MB, free: 15 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005697/0.1939, allocations: 3.768 MB / 326.6 MB, free: 11.21 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.1939, allocations: 0 / 326.6 MB, free: 11.21 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.203e-06/0.1939, allocations: 0 / 326.6 MB, free: 11.21 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.762e-05/0.194, allocations: 0 / 326.6 MB, free: 11.21 MB / 282.7 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.00674/0.2007, allocations: 4.079 MB / 330.6 MB, free: 7.07 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.027e-05/0.2008, allocations: 11.98 kB / 330.7 MB, free: 7.059 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006531/0.2014, allocations: 453.4 kB / 331.1 MB, free: 6.613 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004345/0.2058, allocations: 2.591 MB / 333.7 MB, free: 3.926 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.681e-05/0.2058, allocations: 37 kB / 333.7 MB, free: 3.887 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001493/0.2059, allocations: 55.94 kB / 333.8 MB, free: 3.832 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001427/0.2074, allocations: 0.6328 MB / 334.4 MB, free: 3.195 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.83e-05/0.2074, allocations: 0 / 334.4 MB, free: 3.195 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001166/0.2075, allocations: 23.94 kB / 334.4 MB, free: 3.172 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.382e-05/0.2075, allocations: 23.98 kB / 334.5 MB, free: 3.148 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001653/0.2092, allocations: 0.707 MB / 335.2 MB, free: 2.445 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006699/0.2159, allocations: 3.331 MB / 338.5 MB, free: 15.05 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001099/0.217, allocations: 449.9 kB / 338.9 MB, free: 14.59 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009648/0.218, allocations: 499 kB / 339.4 MB, free: 14.11 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0308/0.2488, allocations: 15.4 MB / 354.8 MB, free: 14.32 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007948/0.2496, allocations: 355.5 kB / 355.2 MB, free: 13.96 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 2.444e-06/0.2496, allocations: 0 / 355.2 MB, free: 13.96 MB / 314.7 MB Notification: Performance of matching and sorting (n=49): time 0.002401/0.252, allocations: 1.061 MB / 356.2 MB, free: 12.89 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.269e-05/0.252, allocations: 63.34 kB / 356.3 MB, free: 12.82 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005677/0.2577, allocations: 3.939 MB / 360.2 MB, free: 8.855 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 8.599e-05/0.2578, allocations: 37.7 kB / 360.3 MB, free: 8.812 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002067/0.2599, allocations: 1.791 MB / 362.1 MB, free: 7.012 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002561/0.2601, allocations: 186.5 kB / 362.2 MB, free: 6.828 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004182/0.2605, allocations: 260 kB / 362.5 MB, free: 6.566 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.000326/0.2609, allocations: 0.5238 MB / 363 MB, free: 6.035 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000585/0.2614, allocations: 217.9 kB / 363.2 MB, free: 5.82 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0011/0.2625, allocations: 0.7564 MB / 364 MB, free: 4.82 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001804/0.2643, allocations: 1.037 MB / 365 MB, free: 3.547 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.076e-05/0.2644, allocations: 4 kB / 365 MB, free: 3.543 MB / 314.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002695/0.267, allocations: 1.248 MB / 366.3 MB, free: 2.289 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.55e-05/0.2671, allocations: 8 kB / 366.3 MB, free: 2.281 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001347/0.2672, allocations: 83.98 kB / 366.4 MB, free: 2.199 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.878e-05/0.2672, allocations: 20 kB / 366.4 MB, free: 2.18 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007481/0.268, allocations: 196.2 kB / 366.6 MB, free: 1.988 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.727e-05/0.268, allocations: 32.19 kB / 366.6 MB, free: 1.957 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009779/0.269, allocations: 103.3 kB / 366.7 MB, free: 1.855 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001223/0.2691, allocations: 68.86 kB / 366.8 MB, free: 1.789 MB / 314.7 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.0009293/0.2701, allocations: 476.2 kB / 367.2 MB, free: 1.312 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000547/0.2706, allocations: 409.5 kB / 367.6 MB, free: 0.9102 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002872/0.2735, allocations: 1.161 MB / 368.8 MB, free: 15.75 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.057e-06/0.2735, allocations: 4 kB / 368.8 MB, free: 15.74 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.493e-06/0.2735, allocations: 7.938 kB / 368.8 MB, free: 15.73 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.478e-06/0.2735, allocations: 3.984 kB / 368.8 MB, free: 15.73 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004611/0.2781, allocations: 2.539 MB / 371.4 MB, free: 13.14 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001366/0.2783, allocations: 75.98 kB / 371.4 MB, free: 13.06 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004796/0.2787, allocations: 91.62 kB / 371.5 MB, free: 12.98 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.356e-06/0.2787, allocations: 4 kB / 371.5 MB, free: 12.97 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.145e-05/0.2788, allocations: 35.94 kB / 371.6 MB, free: 12.94 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.057e-06/0.2788, allocations: 0 / 371.6 MB, free: 12.94 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.368e-06/0.2788, allocations: 4 kB / 371.6 MB, free: 12.93 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002543/0.2814, allocations: 1.324 MB / 372.9 MB, free: 11.57 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001041/0.2824, allocations: 439.1 kB / 373.3 MB, free: 11.14 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000295/0.2827, allocations: 11.94 kB / 373.3 MB, free: 11.13 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006432/0.2833, allocations: 23.98 kB / 373.3 MB, free: 11.11 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001821/0.2835, allocations: 63.92 kB / 373.4 MB, free: 11.04 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.778e-05/0.2836, allocations: 36 kB / 373.4 MB, free: 11.01 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.003602/0.2872, allocations: 2.216 MB / 375.7 MB, free: 8.793 MB / 330.7 MB Notification: Performance of sort global known variables: time 1e-07/0.2872, allocations: 0 / 375.7 MB, free: 8.793 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001576/0.2888, allocations: 0.593 MB / 376.3 MB, free: 8.199 MB / 330.7 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.001392/0.2902, allocations: 0.8288 MB / 377.1 MB, free: 7.363 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001695/0.2919, allocations: 0.7905 MB / 377.9 MB, free: 6.547 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.023e-06/0.2919, allocations: 0 / 377.9 MB, free: 6.547 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001013/0.2929, allocations: 431.8 kB / 378.3 MB, free: 6.098 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002683/0.2956, allocations: 0.6431 MB / 378.9 MB, free: 5.461 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007069/0.3026, allocations: 4.406 MB / 383.3 MB, free: 0.9844 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001268/0.3039, allocations: 1.109 MB / 384.5 MB, free: 15.84 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.001238/0.3052, allocations: 357.1 kB / 384.8 MB, free: 15.49 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003091/0.3055, allocations: 156.5 kB / 385 MB, free: 15.33 MB / 346.7 MB Notification: Performance of SimCode: time 2.695e-06/0.3055, allocations: 0 / 385 MB, free: 15.33 MB / 346.7 MB Notification: Performance of Templates: time 0.06363/0.3691, allocations: 32.45 MB / 417.4 MB, free: 15.36 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/InvertersApartRecord/InvertersApartRecord.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.713180141989142]