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.001397/0.001397, allocations: 81.05 kB / 10.02 MB, free: 0.6719 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.002251/0.003648, allocations: 453.8 kB / 10.46 MB, free: 232 kB / 10.45 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.001394/0.001394, allocations: 165.1 kB / 11.36 MB, free: 2.809 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001904/0.003298, allocations: 483.5 kB / 11.83 MB, free: 2.332 MB / 13.93 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.017/1.017, allocations: 158.6 MB / 171.2 MB, free: 2.512 MB / 170.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1834/1.2, allocations: 49.5 MB / 220.7 MB, free: 1.355 MB / 218.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.493e-06/1.493e-06, allocations: 0 / 222 MB, free: 76 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.236e-05/2.386e-05, allocations: 6.312 kB / 222 MB, free: 68 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.004663/0.004687, allocations: 4.945 MB / 226.9 MB, free: 11.09 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.008355/0.01304, allocations: 8.322 MB / 235.3 MB, free: 2.734 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008643/0.01391, allocations: 59.38 kB / 235.3 MB, free: 2.676 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009175/0.01482, allocations: 361.4 kB / 235.7 MB, free: 2.32 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002425/0.01725, allocations: 0.8334 MB / 236.5 MB, free: 1.48 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001823/0.01907, allocations: 0.5632 MB / 237.1 MB, free: 0.9141 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.002167/0.02124, allocations: 1.705 MB / 238.8 MB, free: 15.2 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002573/0.0215, allocations: 119.2 kB / 238.9 MB, free: 15.07 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00109/0.02259, allocations: 0.9021 MB / 239.8 MB, free: 14.15 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003695/0.02296, allocations: 239.2 kB / 240 MB, free: 13.91 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 5.384e-05/0.02301, allocations: 32 kB / 240 MB, free: 13.88 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001287/0.0243, allocations: 0.5659 MB / 240.6 MB, free: 13.32 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 8.612e-05/0.02438, allocations: 83.38 kB / 240.7 MB, free: 13.23 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002178/0.0246, allocations: 211.4 kB / 240.9 MB, free: 13.03 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001297/0.0259, allocations: 0.868 MB / 241.8 MB, free: 12.16 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.439e-05/0.02591, allocations: 0 / 241.8 MB, free: 12.16 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.854e-06/0.02591, allocations: 4 kB / 241.8 MB, free: 12.15 MB / 250.7 MB Notification: Performance of Transformations before backend: time 2.411e-05/0.02594, allocations: 0 / 241.8 MB, free: 12.15 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.001486/0.02742, allocations: 1.475 MB / 243.2 MB, free: 10.63 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.563e-05/0.02746, allocations: 12.03 kB / 243.3 MB, free: 10.62 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001106/0.02757, allocations: 92.83 kB / 243.3 MB, free: 10.53 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007692/0.02834, allocations: 0.6989 MB / 244 MB, free: 9.754 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.898e-05/0.02836, allocations: 20.44 kB / 244.1 MB, free: 9.73 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.056e-05/0.0284, allocations: 24 kB / 244.1 MB, free: 9.707 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002752/0.02867, allocations: 261 kB / 244.3 MB, free: 9.438 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.905e-06/0.02868, allocations: 4 kB / 244.4 MB, free: 9.434 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.586e-05/0.0287, allocations: 8 kB / 244.4 MB, free: 9.426 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.628e-06/0.02871, allocations: 8 kB / 244.4 MB, free: 9.418 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001289/0.02884, allocations: 97 kB / 244.5 MB, free: 9.312 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008405/0.02968, allocations: 0.71 MB / 245.2 MB, free: 8.566 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001741/0.02985, allocations: 158.4 kB / 245.3 MB, free: 8.402 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001188/0.02997, allocations: 133.2 kB / 245.5 MB, free: 8.266 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004315/0.03429, allocations: 3.569 MB / 249 MB, free: 4.68 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.485e-05/0.03431, allocations: 34.56 kB / 249.1 MB, free: 4.637 MB / 250.7 MB Notification: Performance of pre-optimization done (n=23): time 1.473e-06/0.03431, allocations: 0 / 249.1 MB, free: 4.637 MB / 250.7 MB Notification: Performance of matching and sorting (n=23): time 0.0006764/0.03499, allocations: 401.9 kB / 249.5 MB, free: 4.234 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.594e-05/0.03501, allocations: 51.41 kB / 249.5 MB, free: 4.172 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004746/0.03549, allocations: 0.7171 MB / 250.2 MB, free: 3.438 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.283e-05/0.03551, allocations: 25.7 kB / 250.2 MB, free: 3.406 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001581/0.03567, allocations: 282.9 kB / 250.5 MB, free: 3.125 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.484e-05/0.03572, allocations: 83.25 kB / 250.6 MB, free: 3.043 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.816e-05/0.03579, allocations: 53.86 kB / 250.7 MB, free: 2.984 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 8.367e-05/0.03588, allocations: 318 kB / 251 MB, free: 2.668 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.497e-05/0.03591, allocations: 24.22 kB / 251 MB, free: 2.645 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.888e-05/0.03601, allocations: 123.5 kB / 251.1 MB, free: 2.484 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001337/0.03614, allocations: 168.8 kB / 251.3 MB, free: 2.289 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.885e-06/0.03615, allocations: 0 / 251.3 MB, free: 2.289 MB / 250.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0002427/0.03639, allocations: 242 kB / 251.5 MB, free: 2.043 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.905e-05/0.03641, allocations: 8.281 kB / 251.5 MB, free: 2.035 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.827e-05/0.03643, allocations: 8 kB / 251.5 MB, free: 2.027 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002177/0.03664, allocations: 100.7 kB / 251.6 MB, free: 1.926 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000104/0.03675, allocations: 39.91 kB / 251.7 MB, free: 1.887 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003787/0.03713, allocations: 0.6093 MB / 252.3 MB, free: 1.254 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001384/0.03727, allocations: 23.88 kB / 252.3 MB, free: 1.23 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.857e-05/0.03729, allocations: 11.98 kB / 252.3 MB, free: 1.219 MB / 250.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.000127/0.03742, allocations: 125.7 kB / 252.4 MB, free: 1.086 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.869e-05/0.03749, allocations: 75.91 kB / 252.5 MB, free: 1.012 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003703/0.03786, allocations: 267.4 kB / 252.8 MB, free: 0.7344 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.35e-06/0.03787, allocations: 4 kB / 252.8 MB, free: 0.7305 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.464e-06/0.03787, allocations: 0 / 252.8 MB, free: 0.7305 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.456e-06/0.03788, allocations: 3.938 kB / 252.8 MB, free: 0.7266 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000382/0.03826, allocations: 290.1 kB / 253.1 MB, free: 436 kB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.411e-05/0.03827, allocations: 7.984 kB / 253.1 MB, free: 428 kB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.653e-05/0.03834, allocations: 15.98 kB / 253.1 MB, free: 412 kB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001231/0.03846, allocations: 91.27 kB / 253.2 MB, free: 320 kB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001886/0.03865, allocations: 103.6 kB / 253.3 MB, free: 216 kB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.464e-05/0.03867, allocations: 8 kB / 253.3 MB, free: 208 kB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003909/0.03906, allocations: 0.6068 MB / 253.9 MB, free: 15.57 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.03906, allocations: 0 / 253.9 MB, free: 15.57 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002765/0.03934, allocations: 308.5 kB / 254.2 MB, free: 15.25 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.935e-05/0.03938, allocations: 3.938 kB / 254.2 MB, free: 15.25 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.501e-05/0.03948, allocations: 8 kB / 254.2 MB, free: 15.24 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.182e-05/0.03952, allocations: 12.02 kB / 254.2 MB, free: 15.23 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.687e-05/0.03954, allocations: 11.98 kB / 254.2 MB, free: 15.21 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002455/0.03978, allocations: 356.8 kB / 254.6 MB, free: 14.86 MB / 266.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.03978, allocations: 0 / 254.6 MB, free: 14.86 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004087/0.04019, allocations: 195.7 kB / 254.8 MB, free: 14.66 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.0004664/0.04066, allocations: 324.6 kB / 255.1 MB, free: 14.34 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002926/0.04095, allocations: 191.4 kB / 255.3 MB, free: 14.14 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.412e-05/0.04097, allocations: 16 kB / 255.3 MB, free: 14.12 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001329/0.0411, allocations: 140.7 kB / 255.4 MB, free: 13.97 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009042/0.042, allocations: 1.469 MB / 256.9 MB, free: 12.22 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002796/0.0448, allocations: 1.167 MB / 258.1 MB, free: 11.02 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.204e-05/0.04489, allocations: 138.2 kB / 258.2 MB, free: 10.86 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002222/0.04511, allocations: 106.7 kB / 258.3 MB, free: 10.75 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001936/0.04531, allocations: 185.3 kB / 258.5 MB, free: 10.57 MB / 266.7 MB Notification: Performance of SimCode: time 1.212e-06/0.04531, allocations: 0 / 258.5 MB, free: 10.57 MB / 266.7 MB Notification: Performance of Templates: time 0.01682/0.06213, allocations: 10.13 MB / 268.6 MB, free: 480 kB / 266.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 -emit_protected -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.990263287909329]