Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001101/0.001101, allocations: 84.98 kB / 23 MB, free: 1.504 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001161/0.001161, allocations: 173.4 kB / 26.39 MB, free: 8.004 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9494/0.9494, allocations: 158.6 MB / 188.3 MB, free: 2.816 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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_3.2.3_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_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.643e-06/1.643e-06, allocations: 0 / 252.2 MB, free: 7.262 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.653e-05/2.817e-05, allocations: 6.25 kB / 252.2 MB, free: 7.254 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.009779/0.009807, allocations: 13.03 MB / 265.3 MB, free: 10.16 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01644/0.02625, allocations: 18.44 MB / 283.7 MB, free: 7.656 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001636/0.02788, allocations: 142.4 kB / 283.9 MB, free: 7.516 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002074/0.02996, allocations: 1.114 MB / 285 MB, free: 6.395 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004934/0.03489, allocations: 2.393 MB / 287.4 MB, free: 3.984 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002844/0.03773, allocations: 1.398 MB / 288.8 MB, free: 2.574 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0066/0.04433, allocations: 6.687 MB / 295.4 MB, free: 11.87 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005048/0.04484, allocations: 261.8 kB / 295.7 MB, free: 11.58 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00264/0.04748, allocations: 2.839 MB / 298.5 MB, free: 8.738 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008469/0.04833, allocations: 0.7982 MB / 299.3 MB, free: 7.938 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001317/0.04846, allocations: 76 kB / 299.4 MB, free: 7.863 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002594/0.05105, allocations: 1.089 MB / 300.5 MB, free: 6.773 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002191/0.05127, allocations: 337.5 kB / 300.8 MB, free: 6.441 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006651/0.05194, allocations: 0.7515 MB / 301.6 MB, free: 5.688 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002809/0.05475, allocations: 2.825 MB / 304.4 MB, free: 2.852 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.029e-06/0.05475, allocations: 0 / 304.4 MB, free: 2.852 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.05475, allocations: 0 / 304.4 MB, free: 2.852 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.372e-05/0.05479, allocations: 0 / 304.4 MB, free: 2.852 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.003218/0.058, allocations: 3.995 MB / 308.4 MB, free: 14.78 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.878e-05/0.05804, allocations: 11.98 kB / 308.4 MB, free: 14.77 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003737/0.05842, allocations: 457.4 kB / 308.9 MB, free: 14.32 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002059/0.06047, allocations: 2.541 MB / 311.4 MB, free: 11.69 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.336e-05/0.0605, allocations: 33 kB / 311.4 MB, free: 11.66 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.054e-05/0.06058, allocations: 55.95 kB / 311.5 MB, free: 11.6 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000555/0.06113, allocations: 496.6 kB / 312 MB, free: 11.11 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.318e-05/0.06115, allocations: 3.984 kB / 312 MB, free: 11.11 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.472e-05/0.06119, allocations: 19.94 kB / 312 MB, free: 11.09 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.82e-05/0.06121, allocations: 19.98 kB / 312 MB, free: 11.07 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004646/0.06167, allocations: 432.3 kB / 312.4 MB, free: 10.64 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00269/0.06436, allocations: 2.345 MB / 314.8 MB, free: 8.242 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003444/0.06471, allocations: 289.4 kB / 315.1 MB, free: 7.945 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003403/0.06505, allocations: 377.7 kB / 315.4 MB, free: 7.57 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01562/0.08067, allocations: 15.25 MB / 330.7 MB, free: 7.949 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002952/0.08097, allocations: 267.4 kB / 330.9 MB, free: 7.676 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 1.973e-06/0.08097, allocations: 0 / 330.9 MB, free: 7.676 MB / 314.7 MB Notification: Performance of matching and sorting (n=49): time 0.0008448/0.08181, allocations: 0.8152 MB / 331.8 MB, free: 6.852 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.125e-05/0.08186, allocations: 59.41 kB / 331.8 MB, free: 6.781 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002272/0.08413, allocations: 3.157 MB / 335 MB, free: 3.598 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.897e-05/0.08417, allocations: 37.64 kB / 335 MB, free: 3.555 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001003/0.08517, allocations: 1.697 MB / 336.7 MB, free: 1.848 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000107/0.08528, allocations: 178.5 kB / 336.9 MB, free: 1.672 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001961/0.08547, allocations: 243.9 kB / 337.1 MB, free: 1.426 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.000145/0.08562, allocations: 0.5159 MB / 337.6 MB, free: 0.9023 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001286/0.08575, allocations: 105.9 kB / 337.7 MB, free: 0.8008 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003709/0.08612, allocations: 0.6275 MB / 338.4 MB, free: 15.93 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005528/0.08667, allocations: 0.8148 MB / 339.2 MB, free: 14.88 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.4e-06/0.08668, allocations: 4 kB / 339.2 MB, free: 14.88 MB / 330.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.0008894/0.08756, allocations: 1.022 MB / 340.2 MB, free: 13.85 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.902e-05/0.08758, allocations: 12.25 kB / 340.2 MB, free: 13.84 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.951e-05/0.08765, allocations: 80 kB / 340.3 MB, free: 13.76 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.762e-05/0.08767, allocations: 23.94 kB / 340.3 MB, free: 13.73 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003657/0.08804, allocations: 199.6 kB / 340.5 MB, free: 13.54 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.548e-05/0.08805, allocations: 23.92 kB / 340.5 MB, free: 13.52 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004783/0.08853, allocations: 107.2 kB / 340.6 MB, free: 13.41 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.06e-05/0.08861, allocations: 60 kB / 340.7 MB, free: 13.35 MB / 330.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.0003088/0.08892, allocations: 224.2 kB / 340.9 MB, free: 13.12 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002584/0.08918, allocations: 413.5 kB / 341.3 MB, free: 12.71 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001246/0.09042, allocations: 0.9995 MB / 342.3 MB, free: 11.7 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.673e-06/0.09043, allocations: 7.938 kB / 342.3 MB, free: 11.69 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.498e-06/0.09044, allocations: 3.984 kB / 342.3 MB, free: 11.69 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.189e-06/0.09044, allocations: 0 / 342.3 MB, free: 11.69 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002014/0.09245, allocations: 2.139 MB / 344.5 MB, free: 9.488 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.028e-05/0.09252, allocations: 76 kB / 344.5 MB, free: 9.414 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002183/0.09273, allocations: 83.88 kB / 344.6 MB, free: 9.332 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.26e-06/0.09274, allocations: 7.938 kB / 344.6 MB, free: 9.324 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.612e-05/0.09277, allocations: 35.98 kB / 344.7 MB, free: 9.289 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.285e-06/0.09278, allocations: 0 / 344.7 MB, free: 9.289 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.966e-06/0.09278, allocations: 4 kB / 344.7 MB, free: 9.285 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000856/0.09364, allocations: 1.032 MB / 345.7 MB, free: 8.219 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004075/0.09404, allocations: 435.2 kB / 346.1 MB, free: 7.793 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001686/0.09421, allocations: 15.94 kB / 346.1 MB, free: 7.777 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003319/0.09454, allocations: 19.97 kB / 346.2 MB, free: 7.758 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.693e-05/0.09464, allocations: 63.88 kB / 346.2 MB, free: 7.695 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.938e-05/0.09468, allocations: 35.98 kB / 346.3 MB, free: 7.66 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001056/0.09574, allocations: 1.63 MB / 347.9 MB, free: 6.031 MB / 330.7 MB Notification: Performance of sort global known variables: time 7e-08/0.09574, allocations: 0 / 347.9 MB, free: 6.031 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0008704/0.09661, allocations: 0.593 MB / 348.5 MB, free: 5.438 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.0009268/0.09753, allocations: 0.9336 MB / 349.4 MB, free: 4.492 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0005338/0.09807, allocations: 0.5727 MB / 350 MB, free: 3.891 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.215e-06/0.09807, allocations: 0 / 350 MB, free: 3.891 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002656/0.09833, allocations: 341.5 kB / 350.3 MB, free: 3.527 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001052/0.09939, allocations: 0.5415 MB / 350.9 MB, free: 2.98 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1051/0.2045, allocations: 4.139 MB / 355 MB, free: 88.45 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003153/0.2048, allocations: 386.4 kB / 355.4 MB, free: 88.35 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.001028/0.2058, allocations: 364.9 kB / 355.7 MB, free: 88.32 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00107/0.2069, allocations: 0.7081 MB / 356.4 MB, free: 88.27 MB / 330.7 MB Notification: Performance of SimCode: time 1.803e-06/0.2069, allocations: 0 / 356.4 MB, free: 88.27 MB / 330.7 MB Notification: Performance of Templates: time 0.088/0.2949, allocations: 37.9 MB / 394.3 MB, free: 58.26 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & ./Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/InvertersApartRecord/InvertersApartRecord.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.634723517112434]