Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit.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.0009095/0.0009095, allocations: 80.8 kB / 22.28 MB, free: 2.207 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.0009693/0.0009693, allocations: 164.6 kB / 25.69 MB, free: 8.398 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.9696/0.9696, allocations: 158.6 MB / 187.6 MB, free: 2.797 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.CascodeCircuit,tolerance=1e-07,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|J2.D.v|RC.v|J1.D.v",fileNamePrefix="Modelica_3.2.3_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_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.964e-06/1.964e-06, allocations: 0 / 251.6 MB, free: 7.25 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.447e-05/2.643e-05, allocations: 2.312 kB / 251.6 MB, free: 7.246 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.006477/0.006503, allocations: 4.94 MB / 256.5 MB, free: 2.277 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.01067/0.01717, allocations: 8.267 MB / 264.8 MB, free: 9.973 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005898/0.01776, allocations: 59.38 kB / 264.8 MB, free: 9.914 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007035/0.01846, allocations: 357.5 kB / 265.2 MB, free: 9.562 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001737/0.0202, allocations: 0.8451 MB / 266 MB, free: 8.711 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001236/0.02144, allocations: 0.5554 MB / 266.6 MB, free: 8.152 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001539/0.02297, allocations: 1.744 MB / 268.3 MB, free: 6.402 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001983/0.02317, allocations: 111.3 kB / 268.4 MB, free: 6.277 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006801/0.02385, allocations: 0.7966 MB / 269.2 MB, free: 5.477 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002579/0.02411, allocations: 227.3 kB / 269.4 MB, free: 5.254 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.335e-05/0.02415, allocations: 32 kB / 269.5 MB, free: 5.223 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008291/0.02498, allocations: 0.5737 MB / 270 MB, free: 4.648 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 6.496e-05/0.02505, allocations: 103.3 kB / 270.1 MB, free: 4.547 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001529/0.0252, allocations: 231.3 kB / 270.4 MB, free: 4.32 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008325/0.02603, allocations: 0.9499 MB / 271.3 MB, free: 3.367 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.02604, allocations: 0 / 271.3 MB, free: 3.367 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.142e-06/0.02604, allocations: 0 / 271.3 MB, free: 3.367 MB / 250.7 MB Notification: Performance of Transformations before backend: time 9.087e-06/0.02605, allocations: 0 / 271.3 MB, free: 3.367 MB / 250.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.001175/0.02722, allocations: 1.217 MB / 272.5 MB, free: 2.121 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.483e-05/0.02726, allocations: 11.98 kB / 272.5 MB, free: 2.109 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001136/0.02737, allocations: 88.83 kB / 272.6 MB, free: 2.023 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008561/0.02823, allocations: 0.7067 MB / 273.3 MB, free: 1.242 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.878e-05/0.02825, allocations: 20.44 kB / 273.4 MB, free: 1.223 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.096e-05/0.02829, allocations: 24 kB / 273.4 MB, free: 1.199 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003065/0.02859, allocations: 257 kB / 273.6 MB, free: 0.9297 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.749e-06/0.0286, allocations: 0 / 273.6 MB, free: 0.9297 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.976e-05/0.02862, allocations: 8 kB / 273.6 MB, free: 0.9219 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.195e-05/0.02864, allocations: 11.98 kB / 273.7 MB, free: 0.9102 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001684/0.0288, allocations: 101 kB / 273.8 MB, free: 0.8047 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009719/0.02978, allocations: 0.706 MB / 274.5 MB, free: 64 kB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001956/0.02997, allocations: 150.2 kB / 274.6 MB, free: 15.91 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001494/0.03012, allocations: 133.3 kB / 274.7 MB, free: 15.77 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005151/0.03527, allocations: 3.565 MB / 278.3 MB, free: 12.19 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.811e-05/0.0353, allocations: 34.56 kB / 278.3 MB, free: 12.14 MB / 266.7 MB Notification: Performance of pre-optimization done (n=23): time 1.653e-06/0.0353, allocations: 0 / 278.3 MB, free: 12.14 MB / 266.7 MB Notification: Performance of matching and sorting (n=23): time 0.0008673/0.03617, allocations: 410.2 kB / 278.7 MB, free: 11.73 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.644e-05/0.0362, allocations: 81.11 kB / 278.8 MB, free: 11.64 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000524/0.03673, allocations: 0.7132 MB / 279.5 MB, free: 10.91 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.989e-05/0.03675, allocations: 25.7 kB / 279.6 MB, free: 10.88 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001599/0.03691, allocations: 278.9 kB / 279.8 MB, free: 10.6 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.967e-05/0.03696, allocations: 87.25 kB / 279.9 MB, free: 10.51 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.891e-05/0.03706, allocations: 53.88 kB / 280 MB, free: 10.45 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.187e-05/0.03714, allocations: 317.9 kB / 280.3 MB, free: 10.14 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.56e-05/0.03718, allocations: 28.22 kB / 280.3 MB, free: 10.11 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.884e-05/0.03728, allocations: 119.6 kB / 280.4 MB, free: 9.953 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001719/0.03746, allocations: 164.9 kB / 280.6 MB, free: 9.762 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.03746, allocations: 0 / 280.6 MB, free: 9.762 MB / 266.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0003027/0.03776, allocations: 234.1 kB / 280.8 MB, free: 9.523 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.561e-05/0.03778, allocations: 4 kB / 280.8 MB, free: 9.52 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.212e-05/0.0378, allocations: 11.94 kB / 280.8 MB, free: 9.508 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002503/0.03805, allocations: 109 kB / 280.9 MB, free: 9.398 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001157/0.03816, allocations: 35.91 kB / 281 MB, free: 9.363 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004064/0.03857, allocations: 0.6059 MB / 281.6 MB, free: 8.734 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001622/0.03873, allocations: 31.81 kB / 281.6 MB, free: 8.703 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.503e-05/0.03876, allocations: 8 kB / 281.6 MB, free: 8.695 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.0001293/0.03889, allocations: 125.8 kB / 281.7 MB, free: 8.562 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.553e-05/0.03897, allocations: 71.91 kB / 281.8 MB, free: 8.492 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004157/0.03939, allocations: 275.3 kB / 282.1 MB, free: 8.211 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.791e-06/0.03939, allocations: 8 kB / 282.1 MB, free: 8.203 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.303e-06/0.0394, allocations: 0 / 282.1 MB, free: 8.203 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.91e-06/0.0394, allocations: 3.938 kB / 282.1 MB, free: 8.199 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003474/0.03975, allocations: 282.1 kB / 282.4 MB, free: 7.906 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.376e-05/0.03976, allocations: 4 kB / 282.4 MB, free: 7.902 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.517e-05/0.03984, allocations: 23.97 kB / 282.4 MB, free: 7.879 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001876/0.04002, allocations: 104.1 kB / 282.5 MB, free: 7.777 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.262e-05/0.04004, allocations: 4 kB / 282.5 MB, free: 7.773 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003352/0.04037, allocations: 0.6107 MB / 283.1 MB, free: 7.137 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.04037, allocations: 0 / 283.1 MB, free: 7.137 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002641/0.04064, allocations: 292.8 kB / 283.4 MB, free: 6.832 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001053/0.04074, allocations: 91.22 kB / 283.5 MB, free: 6.742 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.159e-05/0.0408, allocations: 11.92 kB / 283.5 MB, free: 6.73 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001493/0.04095, allocations: 8.031 kB / 283.5 MB, free: 6.723 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.229e-05/0.041, allocations: 11.98 kB / 283.5 MB, free: 6.711 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.319e-05/0.04101, allocations: 0 / 283.5 MB, free: 6.711 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.000313/0.04132, allocations: 368.8 kB / 283.9 MB, free: 6.34 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.04132, allocations: 0 / 283.9 MB, free: 6.34 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004271/0.04175, allocations: 195.6 kB / 284.1 MB, free: 6.148 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.0004452/0.04219, allocations: 324.6 kB / 284.4 MB, free: 5.82 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000312/0.04251, allocations: 194.7 kB / 284.6 MB, free: 5.617 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.233e-05/0.04252, allocations: 8 kB / 284.6 MB, free: 5.609 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001403/0.04266, allocations: 128.4 kB / 284.7 MB, free: 5.469 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004476/0.04311, allocations: 144.2 kB / 284.8 MB, free: 5.324 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001346/0.04445, allocations: 1.147 MB / 286 MB, free: 4.137 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.638e-05/0.04455, allocations: 138.2 kB / 286.1 MB, free: 3.98 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002307/0.04478, allocations: 106.7 kB / 286.2 MB, free: 3.871 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002263/0.04501, allocations: 185.3 kB / 286.4 MB, free: 3.691 MB / 266.7 MB Notification: Performance of SimCode: time 5.21e-07/0.04501, allocations: 0 / 286.4 MB, free: 3.691 MB / 266.7 MB Notification: Performance of Templates: time 0.01514/0.06015, allocations: 9.845 MB / 296.3 MB, free: 9.891 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit.sim & ./Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.7203328358009458]