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.0009388/0.0009388, allocations: 85.95 kB / 22.21 MB, free: 2.289 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.0009238/0.0009238, allocations: 162.2 kB / 25.61 MB, free: 8.91 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 1.044/1.044, allocations: 158.6 MB / 187.5 MB, free: 2.805 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.814e-06/1.814e-06, allocations: 0 / 251.4 MB, free: 7.27 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.43e-05/2.611e-05, allocations: 6.25 kB / 251.5 MB, free: 7.262 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01198/0.01201, allocations: 13.02 MB / 264.5 MB, free: 10.18 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01845/0.03046, allocations: 18.45 MB / 282.9 MB, free: 7.66 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002236/0.03269, allocations: 138.5 kB / 283.1 MB, free: 7.523 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002606/0.0353, allocations: 1.117 MB / 284.2 MB, free: 6.398 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007318/0.04262, allocations: 2.397 MB / 286.6 MB, free: 3.984 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004209/0.04683, allocations: 1.402 MB / 288 MB, free: 2.57 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.007986/0.05481, allocations: 6.676 MB / 294.7 MB, free: 11.87 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000776/0.05559, allocations: 261.9 kB / 294.9 MB, free: 11.59 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003124/0.05871, allocations: 2.843 MB / 297.7 MB, free: 8.738 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001004/0.05972, allocations: 0.7943 MB / 298.5 MB, free: 7.941 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002799/0.06, allocations: 72 kB / 298.6 MB, free: 7.871 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002874/0.06287, allocations: 1.093 MB / 299.7 MB, free: 6.777 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003755/0.06325, allocations: 345.5 kB / 300 MB, free: 6.438 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000871/0.06412, allocations: 0.7515 MB / 300.8 MB, free: 5.684 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003876/0.06799, allocations: 2.817 MB / 303.6 MB, free: 2.855 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.671e-06/0.068, allocations: 0 / 303.6 MB, free: 2.855 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.068, allocations: 0 / 303.6 MB, free: 2.855 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.000112/0.06811, allocations: 0 / 303.6 MB, free: 2.855 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.003665/0.07178, allocations: 3.999 MB / 307.6 MB, free: 14.79 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.779e-05/0.07182, allocations: 11.98 kB / 307.6 MB, free: 14.78 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003739/0.0722, allocations: 465.4 kB / 308.1 MB, free: 14.32 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002365/0.07456, allocations: 2.533 MB / 310.6 MB, free: 11.7 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.767e-05/0.07459, allocations: 37 kB / 310.6 MB, free: 11.66 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.01e-05/0.07467, allocations: 51.95 kB / 310.7 MB, free: 11.61 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005487/0.07522, allocations: 496.6 kB / 311.2 MB, free: 11.12 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.1e-05/0.07523, allocations: 3.938 kB / 311.2 MB, free: 11.11 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.069e-05/0.07527, allocations: 20 kB / 311.2 MB, free: 11.09 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.62e-05/0.07529, allocations: 23.98 kB / 311.2 MB, free: 11.07 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004298/0.07572, allocations: 432.3 kB / 311.7 MB, free: 10.65 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002561/0.07828, allocations: 2.345 MB / 314 MB, free: 8.246 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003275/0.07861, allocations: 285.4 kB / 314.3 MB, free: 7.953 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003131/0.07892, allocations: 373.7 kB / 314.6 MB, free: 7.582 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01766/0.09658, allocations: 15.31 MB / 329.9 MB, free: 7.918 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003677/0.09694, allocations: 271.5 kB / 330.2 MB, free: 7.641 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 2.756e-06/0.09695, allocations: 0 / 330.2 MB, free: 7.641 MB / 314.7 MB Notification: Performance of matching and sorting (n=49): time 0.001043/0.09799, allocations: 0.8152 MB / 331 MB, free: 6.816 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.848e-05/0.09803, allocations: 63.39 kB / 331.1 MB, free: 6.742 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003135/0.1012, allocations: 3.157 MB / 334.2 MB, free: 3.559 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.364e-05/0.1012, allocations: 37.7 kB / 334.3 MB, free: 3.516 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001233/0.1024, allocations: 1.7 MB / 336 MB, free: 1.805 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001383/0.1026, allocations: 174.6 kB / 336.2 MB, free: 1.633 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000248/0.1028, allocations: 243.9 kB / 336.4 MB, free: 1.387 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001577/0.103, allocations: 0.5081 MB / 336.9 MB, free: 0.8711 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001715/0.1032, allocations: 109.9 kB / 337 MB, free: 0.7656 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004596/0.1036, allocations: 0.6236 MB / 337.6 MB, free: 15.9 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007406/0.1044, allocations: 0.8187 MB / 338.5 MB, free: 14.85 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.813e-06/0.1044, allocations: 4 kB / 338.5 MB, free: 14.84 MB / 330.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001454/0.1058, allocations: 1.021 MB / 339.5 MB, free: 13.81 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.246e-05/0.1058, allocations: 8 kB / 339.5 MB, free: 13.8 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.752e-05/0.1059, allocations: 84 kB / 339.6 MB, free: 13.72 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.835e-05/0.106, allocations: 19.94 kB / 339.6 MB, free: 13.7 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004765/0.1064, allocations: 204.1 kB / 339.8 MB, free: 13.5 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.986e-05/0.1065, allocations: 27.92 kB / 339.8 MB, free: 13.48 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006987/0.1071, allocations: 111.2 kB / 339.9 MB, free: 13.37 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.673e-05/0.1072, allocations: 60 kB / 340 MB, free: 13.31 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.0003411/0.1076, allocations: 216.2 kB / 340.2 MB, free: 13.09 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003159/0.1079, allocations: 413.5 kB / 340.6 MB, free: 12.68 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001481/0.1094, allocations: 0.9918 MB / 341.6 MB, free: 11.67 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.297e-06/0.1094, allocations: 19.91 kB / 341.6 MB, free: 11.65 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.763e-06/0.1094, allocations: 0 / 341.6 MB, free: 11.65 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.449e-06/0.1094, allocations: 0 / 341.6 MB, free: 11.65 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002321/0.1117, allocations: 2.139 MB / 343.7 MB, free: 9.453 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.384e-05/0.1118, allocations: 72 kB / 343.8 MB, free: 9.383 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002611/0.112, allocations: 79.94 kB / 343.9 MB, free: 9.305 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.662e-06/0.1121, allocations: 12 kB / 343.9 MB, free: 9.293 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.372e-05/0.1121, allocations: 31.98 kB / 343.9 MB, free: 9.262 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.809e-06/0.1121, allocations: 7.938 kB / 343.9 MB, free: 9.254 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.1121, allocations: 0 / 343.9 MB, free: 9.254 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001005/0.1131, allocations: 1.031 MB / 345 MB, free: 8.188 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005106/0.1136, allocations: 443.1 kB / 345.4 MB, free: 7.754 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002034/0.1138, allocations: 11.94 kB / 345.4 MB, free: 7.742 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004494/0.1143, allocations: 19.98 kB / 345.4 MB, free: 7.723 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001213/0.1144, allocations: 63.92 kB / 345.5 MB, free: 7.66 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.417e-05/0.1144, allocations: 32.03 kB / 345.5 MB, free: 7.629 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001633/0.1161, allocations: 1.641 MB / 347.2 MB, free: 5.988 MB / 330.7 MB Notification: Performance of sort global known variables: time 1e-07/0.1161, allocations: 0 / 347.2 MB, free: 5.988 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001199/0.1173, allocations: 0.5969 MB / 347.8 MB, free: 5.391 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.001179/0.1185, allocations: 0.9297 MB / 348.7 MB, free: 4.449 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0007166/0.1192, allocations: 0.5779 MB / 349.3 MB, free: 3.844 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.963e-06/0.1192, allocations: 448 / 349.3 MB, free: 3.844 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003348/0.1195, allocations: 331.8 kB / 349.6 MB, free: 3.488 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001433/0.1209, allocations: 0.5337 MB / 350.1 MB, free: 2.949 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1099/0.2308, allocations: 4.144 MB / 354.3 MB, free: 89.38 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002625/0.2311, allocations: 388.3 kB / 354.7 MB, free: 89.27 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0008396/0.2319, allocations: 361.9 kB / 355 MB, free: 89.25 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008571/0.2328, allocations: 0.7053 MB / 355.7 MB, free: 89.2 MB / 330.7 MB Notification: Performance of SimCode: time 3.115e-06/0.2328, allocations: 0 / 355.7 MB, free: 89.2 MB / 330.7 MB Notification: Performance of Templates: time 0.03767/0.2704, allocations: 37.7 MB / 393.4 MB, free: 59.44 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.549709561280906]