Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.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.001095/0.001095, allocations: 79.91 kB / 21.18 MB, free: 3.391 MB / 18.57 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.0009278/0.0009278, allocations: 145.1 kB / 24.54 MB, free: 32 kB / 18.57 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 0.9625/0.9625, allocations: 173.3 MB / 201.1 MB, free: 9.336 MB / 186.7 MB " [Timeout remaining time 179] 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.CascodeCircuit,tolerance=1e-07,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|J2.D.v|RC.v|J1.D.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit") translateModel(Modelica.Electrical.Spice3.Examples.CascodeCircuit,tolerance=1e-07,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|J2.D.v|RC.v|J1.D.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.322e-06/1.322e-06, allocations: 0 / 268 MB, free: 6.449 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.712e-05/1.844e-05, allocations: 6.25 kB / 268 MB, free: 6.441 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.004373/0.004391, allocations: 5.119 MB / 273.1 MB, free: 1.297 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.007866/0.01226, allocations: 8.634 MB / 281.7 MB, free: 8.625 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004688/0.01273, allocations: 63.31 kB / 281.8 MB, free: 8.562 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000786/0.01351, allocations: 361.5 kB / 282.1 MB, free: 8.207 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001712/0.01522, allocations: 0.8726 MB / 283 MB, free: 7.328 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001172/0.0164, allocations: 0.6101 MB / 283.6 MB, free: 6.715 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001884/0.01828, allocations: 1.775 MB / 285.4 MB, free: 4.934 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000202/0.01848, allocations: 99.38 kB / 285.5 MB, free: 4.82 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000405/0.01889, allocations: 454.9 kB / 285.9 MB, free: 4.375 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002618/0.01915, allocations: 227.2 kB / 286.2 MB, free: 4.152 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.449e-05/0.01919, allocations: 32 kB / 286.2 MB, free: 4.121 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008248/0.02002, allocations: 0.5696 MB / 286.8 MB, free: 3.551 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.924e-05/0.02009, allocations: 107.3 kB / 286.9 MB, free: 3.445 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001735/0.02026, allocations: 231.3 kB / 287.1 MB, free: 3.219 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008434/0.0211, allocations: 0.9459 MB / 288 MB, free: 2.27 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.02111, allocations: 0 / 288 MB, free: 2.27 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.02111, allocations: 0 / 288 MB, free: 2.27 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.805e-06/0.02112, allocations: 4 kB / 288.1 MB, free: 2.266 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 68 * Number of variables: 68 Notification: Performance of Generate backend data structure: time 0.001168/0.02229, allocations: 1.342 MB / 289.4 MB, free: 0.8828 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.715e-05/0.02232, allocations: 8.922 kB / 289.4 MB, free: 0.875 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000121/0.02244, allocations: 140.2 kB / 289.5 MB, free: 0.7383 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1172/0.1397, allocations: 0.8885 MB / 290.4 MB, free: 24.89 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.395e-05/0.1397, allocations: 19.5 kB / 290.4 MB, free: 24.89 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.612e-05/0.1398, allocations: 24.97 kB / 290.5 MB, free: 24.89 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004022/0.1402, allocations: 271 kB / 290.7 MB, free: 24.79 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.908e-06/0.1402, allocations: 1.406 kB / 290.7 MB, free: 24.79 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.297e-05/0.1402, allocations: 9.312 kB / 290.7 MB, free: 24.79 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.635e-05/0.1402, allocations: 15.58 kB / 290.8 MB, free: 24.79 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002267/0.1404, allocations: 135 kB / 290.9 MB, free: 24.78 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001293/0.1417, allocations: 1.1 MB / 292 MB, free: 24.41 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002457/0.142, allocations: 137.3 kB / 292.1 MB, free: 24.37 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001862/0.1422, allocations: 160.9 kB / 292.3 MB, free: 24.35 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004127/0.1463, allocations: 3.343 MB / 295.6 MB, free: 23.84 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.343e-05/0.1463, allocations: 43.58 kB / 295.7 MB, free: 23.8 MB / 266.7 MB Notification: Performance of pre-optimization done (n=23): time 2.145e-06/0.1463, allocations: 1.531 kB / 295.7 MB, free: 23.8 MB / 266.7 MB Notification: Performance of matching and sorting (n=23): time 0.0009701/0.1473, allocations: 0.5138 MB / 296.2 MB, free: 23.7 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.88e-05/0.1473, allocations: 85.56 kB / 296.3 MB, free: 23.6 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006798/0.148, allocations: 0.8675 MB / 297.1 MB, free: 23.4 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.511e-05/0.148, allocations: 27.58 kB / 297.2 MB, free: 23.37 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002515/0.1483, allocations: 0.5121 MB / 297.7 MB, free: 23.2 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.887e-05/0.1483, allocations: 79.5 kB / 297.8 MB, free: 23.16 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.912e-05/0.1484, allocations: 69.56 kB / 297.8 MB, free: 23.13 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 4.759e-05/0.1484, allocations: 495.7 kB / 298.3 MB, free: 22.65 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.809e-05/0.1485, allocations: 39.42 kB / 298.3 MB, free: 22.65 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001097/0.1486, allocations: 178.2 kB / 298.5 MB, free: 22.48 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001729/0.1488, allocations: 214.8 kB / 298.7 MB, free: 22.33 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.1488, allocations: 0 / 298.7 MB, free: 22.33 MB / 266.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0003701/0.1491, allocations: 353.2 kB / 299.1 MB, free: 22.19 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.852e-05/0.1492, allocations: 10 kB / 299.1 MB, free: 22.19 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.221e-05/0.1492, allocations: 14.73 kB / 299.1 MB, free: 22.19 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002834/0.1495, allocations: 130.5 kB / 299.2 MB, free: 22.16 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000107/0.1496, allocations: 39.75 kB / 299.3 MB, free: 22.15 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003794/0.1499, allocations: 0.9269 MB / 300.2 MB, free: 21.32 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001232/0.1501, allocations: 29.27 kB / 300.2 MB, free: 21.31 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.776e-05/0.1501, allocations: 14.38 kB / 300.2 MB, free: 21.31 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,11)} Notification: Performance of prepare postOptimizeDAE: time 0.0001059/0.1502, allocations: 171.2 kB / 300.4 MB, free: 21.14 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.96e-05/0.1503, allocations: 118.3 kB / 300.5 MB, free: 21.08 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004593/0.1507, allocations: 353.2 kB / 300.9 MB, free: 20.93 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.519e-06/0.1507, allocations: 2.219 kB / 300.9 MB, free: 20.93 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.1508, allocations: 1.156 kB / 300.9 MB, free: 20.93 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.821e-06/0.1508, allocations: 1.172 kB / 300.9 MB, free: 20.93 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004487/0.1512, allocations: 489.8 kB / 301.3 MB, free: 20.66 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.627e-05/0.1512, allocations: 11.72 kB / 301.4 MB, free: 20.66 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.725e-05/0.1513, allocations: 17.36 kB / 301.4 MB, free: 20.66 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001784/0.1515, allocations: 131.2 kB / 301.5 MB, free: 20.62 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.47e-05/0.1515, allocations: 10.17 kB / 301.5 MB, free: 20.62 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002989/0.1518, allocations: 0.9199 MB / 302.4 MB, free: 19.79 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.1518, allocations: 0 / 302.4 MB, free: 19.79 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003103/0.1521, allocations: 465.7 kB / 302.9 MB, free: 19.49 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.722e-05/0.1522, allocations: 100.7 kB / 303 MB, free: 19.43 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.196e-05/0.1522, allocations: 1.375 kB / 303 MB, free: 19.43 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001007/0.1523, allocations: 7.781 kB / 303 MB, free: 19.43 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.781e-05/0.1524, allocations: 16.91 kB / 303 MB, free: 19.42 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.502e-05/0.1524, allocations: 13.33 kB / 303 MB, free: 19.42 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0004112/0.1528, allocations: 0.5137 MB / 303.5 MB, free: 19.18 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1528, allocations: 0 / 303.5 MB, free: 19.18 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003871/0.1532, allocations: 201.4 kB / 303.7 MB, free: 19.16 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,11)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003744/0.1536, allocations: 323 kB / 304 MB, free: 19.06 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003266/0.1539, allocations: 231.5 kB / 304.3 MB, free: 18.96 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.1539, allocations: 0 / 304.3 MB, free: 18.96 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001224/0.154, allocations: 170.1 kB / 304.4 MB, free: 18.88 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004551/0.1545, allocations: 169.3 kB / 304.6 MB, free: 18.81 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001015/0.1555, allocations: 1.169 MB / 305.8 MB, free: 18.14 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.37e-05/0.1556, allocations: 136.2 kB / 305.9 MB, free: 18.06 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001654/0.1557, allocations: 108.8 kB / 306 MB, free: 18.03 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.716e-05/0.1558, allocations: 55.28 kB / 306.1 MB, free: 18.02 MB / 266.7 MB Notification: Performance of SimCode: time 1.252e-06/0.1558, allocations: 0 / 306.1 MB, free: 18.02 MB / 266.7 MB Notification: Performance of Templates: time 0.01006/0.1658, allocations: 8.758 MB / 314.8 MB, free: 11.8 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.sim & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/CascodeCircuit/CascodeCircuit.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.0491855391301215]