Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001841/0.001841, allocations: 88.69 kB / 20.95 MB, free: 464 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002133/0.002133, allocations: 150.5 kB / 24.24 MB, free: 3.492 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.419/1.419, allocations: 173.3 MB / 200.8 MB, free: 12.78 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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_4.0.0_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_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.393e-06/1.393e-06, allocations: 0 / 267.3 MB, free: 10.25 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.883e-05/3.023e-05, allocations: 13.34 kB / 267.3 MB, free: 10.24 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01425/0.01428, allocations: 12.39 MB / 279.7 MB, free: 13.8 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.02784/0.04212, allocations: 17.87 MB / 297.6 MB, free: 11.86 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002465/0.04459, allocations: 138.5 kB / 297.7 MB, free: 11.72 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004094/0.04868, allocations: 1.137 MB / 298.8 MB, free: 10.57 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009384/0.05806, allocations: 2.425 MB / 301.3 MB, free: 8.129 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005073/0.06314, allocations: 1.441 MB / 302.7 MB, free: 6.68 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.1291/0.1923, allocations: 6.693 MB / 309.4 MB, free: 20.83 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000806/0.1931, allocations: 261.9 kB / 309.7 MB, free: 20.73 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002625/0.1957, allocations: 1.566 MB / 311.2 MB, free: 20.73 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001303/0.197, allocations: 0.7923 MB / 312 MB, free: 20.73 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002575/0.1973, allocations: 75.41 kB / 312.1 MB, free: 20.73 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003298/0.2006, allocations: 1.204 MB / 313.3 MB, free: 20.73 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003351/0.2009, allocations: 331 kB / 313.6 MB, free: 20.73 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001274/0.2022, allocations: 0.7405 MB / 314.4 MB, free: 20.73 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005015/0.2072, allocations: 3.76 MB / 318.1 MB, free: 20.42 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.2072, allocations: 0 / 318.1 MB, free: 20.42 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.2072, allocations: 0 / 318.1 MB, free: 20.42 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.133e-05/0.2073, allocations: 2.406 kB / 318.1 MB, free: 20.42 MB / 286.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.005537/0.2128, allocations: 3.689 MB / 321.8 MB, free: 18.3 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.793e-05/0.2129, allocations: 9.141 kB / 321.8 MB, free: 18.3 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005478/0.2134, allocations: 456.2 kB / 322.3 MB, free: 18.09 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003089/0.2165, allocations: 2.587 MB / 324.8 MB, free: 17.22 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.421e-05/0.2165, allocations: 39.25 kB / 324.9 MB, free: 17.22 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001303/0.2166, allocations: 57.27 kB / 324.9 MB, free: 17.21 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001245/0.2179, allocations: 0.7392 MB / 325.7 MB, free: 17.17 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.479e-05/0.2179, allocations: 3.25 kB / 325.7 MB, free: 17.17 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.526e-05/0.218, allocations: 17.53 kB / 325.7 MB, free: 17.17 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.711e-05/0.218, allocations: 19.09 kB / 325.7 MB, free: 17.17 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001431/0.2194, allocations: 0.8183 MB / 326.5 MB, free: 17.16 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004816/0.2242, allocations: 2.768 MB / 329.3 MB, free: 16.74 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00104/0.2253, allocations: 0.5158 MB / 329.8 MB, free: 16.7 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008058/0.2261, allocations: 0.5708 MB / 330.4 MB, free: 16.45 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02142/0.2475, allocations: 15.21 MB / 345.6 MB, free: 4.805 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006628/0.2482, allocations: 362 kB / 345.9 MB, free: 4.438 MB / 286.1 MB Notification: Performance of pre-optimization done (n=49): time 2.394e-06/0.2482, allocations: 0 / 345.9 MB, free: 4.438 MB / 286.1 MB Notification: Performance of matching and sorting (n=49): time 0.002114/0.2503, allocations: 1.123 MB / 347.1 MB, free: 3.312 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.989e-05/0.2503, allocations: 67.39 kB / 347.1 MB, free: 3.234 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002777/0.2531, allocations: 2.95 MB / 350.1 MB, free: 280 kB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 5.322e-05/0.2531, allocations: 29.7 kB / 350.1 MB, free: 244 kB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001355/0.2545, allocations: 1.498 MB / 351.6 MB, free: 14.73 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001784/0.2547, allocations: 176.8 kB / 351.8 MB, free: 14.57 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003252/0.255, allocations: 222.4 kB / 352 MB, free: 14.34 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001519/0.2552, allocations: 341.9 kB / 352.3 MB, free: 14 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006054/0.2558, allocations: 245.9 kB / 352.6 MB, free: 13.76 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000935/0.2567, allocations: 0.6014 MB / 353.2 MB, free: 12.99 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001602/0.2583, allocations: 0.8964 MB / 354.1 MB, free: 11.98 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.415e-06/0.2583, allocations: 4 kB / 354.1 MB, free: 11.97 MB / 302.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002617/0.2609, allocations: 1.281 MB / 355.4 MB, free: 10.77 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.592e-05/0.2609, allocations: 12 kB / 355.4 MB, free: 10.75 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001268/0.2611, allocations: 80 kB / 355.5 MB, free: 10.68 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.172e-05/0.2611, allocations: 19.66 kB / 355.5 MB, free: 10.66 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007704/0.2619, allocations: 203.8 kB / 355.7 MB, free: 10.47 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.732e-05/0.2619, allocations: 26.64 kB / 355.7 MB, free: 10.45 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001376/0.2633, allocations: 117.6 kB / 355.8 MB, free: 10.34 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001295/0.2634, allocations: 60 kB / 355.9 MB, free: 10.28 MB / 302.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.000906/0.2643, allocations: 437.9 kB / 356.3 MB, free: 9.859 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005638/0.2649, allocations: 413.5 kB / 356.7 MB, free: 9.453 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002992/0.2679, allocations: 1.194 MB / 357.9 MB, free: 8.273 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.408e-06/0.2679, allocations: 4 kB / 357.9 MB, free: 8.27 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.2679, allocations: 0 / 357.9 MB, free: 8.27 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.47e-06/0.2679, allocations: 0 / 357.9 MB, free: 8.27 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004217/0.2721, allocations: 1.944 MB / 359.8 MB, free: 6.297 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001045/0.2722, allocations: 68 kB / 359.9 MB, free: 6.23 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000539/0.2728, allocations: 99.27 kB / 360 MB, free: 6.137 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.011e-06/0.2728, allocations: 0 / 360 MB, free: 6.137 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.478e-05/0.2728, allocations: 31.98 kB / 360 MB, free: 6.105 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.448e-06/0.2728, allocations: 4 kB / 360 MB, free: 6.102 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.2728, allocations: 2.875 kB / 360 MB, free: 6.102 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002787/0.2756, allocations: 1.341 MB / 361.4 MB, free: 4.742 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001239/0.2769, allocations: 431.2 kB / 361.8 MB, free: 4.32 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003419/0.2772, allocations: 12 kB / 361.8 MB, free: 4.309 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006792/0.2779, allocations: 32.03 kB / 361.8 MB, free: 4.277 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001665/0.278, allocations: 67.86 kB / 361.9 MB, free: 4.211 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.555e-05/0.2781, allocations: 36 kB / 362 MB, free: 4.176 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.003187/0.2813, allocations: 1.907 MB / 363.9 MB, free: 2.266 MB / 302.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2813, allocations: 0 / 363.9 MB, free: 2.266 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001895/0.2832, allocations: 0.5852 MB / 364.4 MB, free: 1.68 MB / 302.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.00137/0.2846, allocations: 0.8275 MB / 365.3 MB, free: 1 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001901/0.2865, allocations: 0.7794 MB / 366.1 MB, free: 240 kB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.877e-06/0.2865, allocations: 0 / 366.1 MB, free: 240 kB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008733/0.2874, allocations: 429.4 kB / 366.5 MB, free: 15.8 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003059/0.2904, allocations: 0.6151 MB / 367.1 MB, free: 15.18 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008034/0.2985, allocations: 4.392 MB / 371.5 MB, free: 10.74 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001193/0.2997, allocations: 1.113 MB / 372.6 MB, free: 9.594 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.001216/0.3009, allocations: 357.1 kB / 372.9 MB, free: 9.238 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002825/0.3011, allocations: 148.5 kB / 373.1 MB, free: 9.094 MB / 318.1 MB Notification: Performance of SimCode: time 1.453e-06/0.3012, allocations: 0 / 373.1 MB, free: 9.094 MB / 318.1 MB Notification: Performance of Templates: time 0.06274/0.3639, allocations: 32.35 MB / 405.4 MB, free: 9.363 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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.3089535385370255]