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.001117/0.001117, allocations: 72.08 kB / 21.69 MB, free: 2.859 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.001154/0.001154, allocations: 138.6 kB / 24.97 MB, free: 9.309 MB / 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.9799/0.9799, allocations: 173.4 MB / 201.5 MB, free: 9.27 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.493e-06/1.493e-06, allocations: 0 / 268.1 MB, free: 6.684 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.225e-05/2.375e-05, allocations: 6.25 kB / 268.1 MB, free: 6.676 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.004166/0.004189, allocations: 5.107 MB / 273.2 MB, free: 1.543 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.006738/0.01093, allocations: 8.61 MB / 281.8 MB, free: 8.895 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002821/0.01121, allocations: 59.31 kB / 281.8 MB, free: 8.836 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005703/0.01178, allocations: 365.4 kB / 282.2 MB, free: 8.477 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00117/0.01295, allocations: 0.8766 MB / 283.1 MB, free: 7.594 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007387/0.01369, allocations: 0.6101 MB / 283.7 MB, free: 6.98 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001461/0.01515, allocations: 1.748 MB / 285.4 MB, free: 5.227 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001686/0.01532, allocations: 95.38 kB / 285.5 MB, free: 5.117 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003232/0.01564, allocations: 442.9 kB / 286 MB, free: 4.684 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002232/0.01587, allocations: 231.1 kB / 286.2 MB, free: 4.457 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.774e-05/0.0159, allocations: 32 kB / 286.2 MB, free: 4.426 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006428/0.01655, allocations: 0.5696 MB / 286.8 MB, free: 3.855 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.406e-05/0.01661, allocations: 111.3 kB / 286.9 MB, free: 3.746 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001624/0.01677, allocations: 223.3 kB / 287.1 MB, free: 3.527 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007996/0.01757, allocations: 0.9459 MB / 288.1 MB, free: 2.578 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.096e-06/0.01758, allocations: 3.984 kB / 288.1 MB, free: 2.574 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.223e-06/0.01758, allocations: 0 / 288.1 MB, free: 2.574 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.682e-06/0.01758, allocations: 0 / 288.1 MB, free: 2.574 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.001156/0.01874, allocations: 1.346 MB / 289.4 MB, free: 1.188 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.243e-05/0.01877, allocations: 12.92 kB / 289.4 MB, free: 1.176 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001126/0.01888, allocations: 136.2 kB / 289.6 MB, free: 1.043 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007801/0.01966, allocations: 0.8934 MB / 290.4 MB, free: 84 kB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.821e-05/0.01968, allocations: 16.88 kB / 290.5 MB, free: 68 kB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.956e-05/0.01972, allocations: 28.12 kB / 290.5 MB, free: 40 kB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.09795/0.1177, allocations: 268.2 kB / 290.8 MB, free: 21.65 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.56e-05/0.1177, allocations: 0 / 290.8 MB, free: 21.65 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.649e-05/0.1177, allocations: 10.28 kB / 290.8 MB, free: 21.65 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.789e-05/0.1177, allocations: 8.672 kB / 290.8 MB, free: 21.65 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002245/0.118, allocations: 136.9 kB / 290.9 MB, free: 21.64 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00132/0.1193, allocations: 1.101 MB / 292 MB, free: 21.27 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002646/0.1195, allocations: 137 kB / 292.1 MB, free: 21.23 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002016/0.1197, allocations: 164.8 kB / 292.3 MB, free: 21.21 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004261/0.124, allocations: 3.347 MB / 295.6 MB, free: 20.7 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.338e-05/0.124, allocations: 38.05 kB / 295.7 MB, free: 20.66 MB / 266.7 MB Notification: Performance of pre-optimization done (n=23): time 1.593e-06/0.124, allocations: 0 / 295.7 MB, free: 20.66 MB / 266.7 MB Notification: Performance of matching and sorting (n=23): time 0.0009323/0.125, allocations: 0.5139 MB / 296.2 MB, free: 20.57 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.578e-05/0.125, allocations: 79.89 kB / 296.3 MB, free: 20.48 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006598/0.1257, allocations: 0.8715 MB / 297.1 MB, free: 20.28 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.6e-05/0.1257, allocations: 27.17 kB / 297.2 MB, free: 20.25 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002526/0.1259, allocations: 0.5104 MB / 297.7 MB, free: 20.08 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.644e-05/0.126, allocations: 87.95 kB / 297.8 MB, free: 20.04 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.53e-05/0.126, allocations: 64.28 kB / 297.8 MB, free: 20.01 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 4.415e-05/0.1261, allocations: 499.7 kB / 298.3 MB, free: 19.53 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.6e-05/0.1261, allocations: 41.75 kB / 298.4 MB, free: 19.53 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.614e-05/0.1262, allocations: 175.2 kB / 298.5 MB, free: 19.37 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001703/0.1264, allocations: 216.7 kB / 298.7 MB, free: 19.24 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.1264, allocations: 1.25 kB / 298.7 MB, free: 19.24 MB / 266.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.000353/0.1268, allocations: 350.4 kB / 299.1 MB, free: 19.14 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.6e-05/0.1268, allocations: 7.188 kB / 299.1 MB, free: 19.14 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.009e-05/0.1268, allocations: 13.73 kB / 299.1 MB, free: 19.14 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002648/0.1271, allocations: 130 kB / 299.2 MB, free: 19.13 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.633e-05/0.1272, allocations: 38.2 kB / 299.3 MB, free: 19.12 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003707/0.1275, allocations: 0.9394 MB / 300.2 MB, free: 18.32 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001241/0.1276, allocations: 21.22 kB / 300.2 MB, free: 18.31 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.498e-05/0.1277, allocations: 13.28 kB / 300.2 MB, free: 18.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.0001082/0.1278, allocations: 166 kB / 300.4 MB, free: 18.15 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.802e-05/0.1279, allocations: 120.3 kB / 300.5 MB, free: 18.1 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004437/0.1283, allocations: 357.7 kB / 300.9 MB, free: 18.01 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.868e-06/0.1283, allocations: 6.359 kB / 300.9 MB, free: 18.01 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.1283, allocations: 1.281 kB / 300.9 MB, free: 18.01 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/0.1283, allocations: 0.9375 kB / 300.9 MB, free: 18.01 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004709/0.1288, allocations: 486.3 kB / 301.4 MB, free: 17.83 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-05/0.1288, allocations: 16.42 kB / 301.4 MB, free: 17.83 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.267e-05/0.1289, allocations: 23.06 kB / 301.4 MB, free: 17.82 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001832/0.129, allocations: 124.5 kB / 301.5 MB, free: 17.8 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.405e-05/0.1291, allocations: 8.188 kB / 301.5 MB, free: 17.79 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003171/0.1294, allocations: 0.9215 MB / 302.4 MB, free: 16.96 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.1294, allocations: 4.031 kB / 302.5 MB, free: 16.96 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003023/0.1297, allocations: 457.3 kB / 302.9 MB, free: 16.67 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.471e-05/0.1298, allocations: 99.75 kB / 303 MB, free: 16.61 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.795e-05/0.1298, allocations: 6.078 kB / 303 MB, free: 16.6 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001014/0.1299, allocations: 3.406 kB / 303 MB, free: 16.6 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.322e-05/0.13, allocations: 16.83 kB / 303 MB, free: 16.6 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.323e-05/0.13, allocations: 8.906 kB / 303 MB, free: 16.6 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003707/0.1303, allocations: 0.5188 MB / 303.5 MB, free: 16.36 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1303, allocations: 0 / 303.5 MB, free: 16.36 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003917/0.1307, allocations: 198 kB / 303.7 MB, free: 16.34 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.0003939/0.1311, allocations: 321.8 kB / 304.1 MB, free: 16.24 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000357/0.1315, allocations: 235.1 kB / 304.3 MB, free: 16.14 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.1315, allocations: 0 / 304.3 MB, free: 16.14 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001252/0.1316, allocations: 169.3 kB / 304.5 MB, free: 16.05 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004433/0.1321, allocations: 171.1 kB / 304.6 MB, free: 15.98 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001004/0.1331, allocations: 1.155 MB / 305.8 MB, free: 15.32 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.477e-05/0.1331, allocations: 144.5 kB / 305.9 MB, free: 15.25 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001692/0.1333, allocations: 104.9 kB / 306 MB, free: 15.21 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.734e-05/0.1333, allocations: 51 kB / 306.1 MB, free: 15.2 MB / 266.7 MB Notification: Performance of SimCode: time 6.71e-07/0.1333, allocations: 0 / 306.1 MB, free: 15.2 MB / 266.7 MB Notification: Performance of Templates: time 0.0097/0.143, allocations: 8.766 MB / 314.8 MB, free: 10.01 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: 2.8728228099644184]