Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001422/0.001422, allocations: 80.41 kB / 22.21 MB, free: 2.289 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.0011/0.0011, allocations: 161.7 kB / 25.61 MB, free: 8.461 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9508/0.9508, allocations: 177.1 MB / 206.1 MB, free: 4.449 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4.1.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.1.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.533e-06/1.533e-06, allocations: 3.938 kB / 274.2 MB, free: 4.414 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.729e-05/2.882e-05, allocations: 7.516 kB / 274.2 MB, free: 4.41 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.006778/0.006807, allocations: 5.033 MB / 279.2 MB, free: 15.37 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01011/0.01692, allocations: 8.542 MB / 287.8 MB, free: 6.801 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004754/0.01739, allocations: 63.25 kB / 287.8 MB, free: 6.738 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006179/0.01801, allocations: 369.6 kB / 288.2 MB, free: 6.375 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001394/0.01941, allocations: 0.8804 MB / 289.1 MB, free: 5.488 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00104/0.02045, allocations: 0.6101 MB / 289.7 MB, free: 4.875 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001684/0.02213, allocations: 1.814 MB / 291.5 MB, free: 3.055 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002009/0.02233, allocations: 91.38 kB / 291.6 MB, free: 2.949 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000901/0.02323, allocations: 0.8786 MB / 292.4 MB, free: 2.07 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002753/0.02351, allocations: 231.2 kB / 292.7 MB, free: 1.844 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.166e-05/0.02355, allocations: 28 kB / 292.7 MB, free: 1.816 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008312/0.02438, allocations: 0.5736 MB / 293.3 MB, free: 1.242 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 7.49e-05/0.02445, allocations: 107.3 kB / 293.4 MB, free: 1.137 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001719/0.02463, allocations: 239.3 kB / 293.6 MB, free: 0.9023 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000873/0.0255, allocations: 0.9615 MB / 294.6 MB, free: 15.94 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.0255, allocations: 0 / 294.6 MB, free: 15.94 MB / 282.7 MB Notification: Performance of FrontEnd: time 9.42e-07/0.0255, allocations: 0 / 294.6 MB, free: 15.94 MB / 282.7 MB Notification: Performance of Transformations before backend: time 8.607e-06/0.02551, allocations: 3.938 kB / 294.6 MB, free: 15.93 MB / 282.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.001101/0.02661, allocations: 1.365 MB / 295.9 MB, free: 14.53 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.213e-05/0.02665, allocations: 12.03 kB / 296 MB, free: 14.52 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001968/0.02684, allocations: 148.2 kB / 296.1 MB, free: 14.37 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006891/0.02753, allocations: 0.842 MB / 296.9 MB, free: 13.46 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.489e-05/0.02755, allocations: 20.88 kB / 297 MB, free: 13.45 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.938e-05/0.02759, allocations: 32.06 kB / 297 MB, free: 13.41 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002559/0.02784, allocations: 263.8 kB / 297.3 MB, free: 13.14 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.778e-06/0.02785, allocations: 0 / 297.3 MB, free: 13.14 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.952e-05/0.02787, allocations: 12 kB / 297.3 MB, free: 13.12 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.05e-05/0.02788, allocations: 7.984 kB / 297.3 MB, free: 13.12 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001368/0.02802, allocations: 110.2 kB / 297.4 MB, free: 13.01 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009047/0.02892, allocations: 0.9578 MB / 298.3 MB, free: 12 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001699/0.02909, allocations: 123.1 kB / 298.5 MB, free: 11.87 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001351/0.02923, allocations: 148.1 kB / 298.6 MB, free: 11.71 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003596/0.03282, allocations: 3.356 MB / 302 MB, free: 8.34 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.38e-05/0.03285, allocations: 33.39 kB / 302 MB, free: 8.297 MB / 282.7 MB Notification: Performance of pre-optimization done (n=23): time 1.693e-06/0.03285, allocations: 0 / 302 MB, free: 8.297 MB / 282.7 MB Notification: Performance of matching and sorting (n=23): time 0.0008339/0.03368, allocations: 0.4954 MB / 302.5 MB, free: 7.793 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.763e-05/0.03372, allocations: 85.11 kB / 302.6 MB, free: 7.691 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005524/0.03427, allocations: 0.8546 MB / 303.4 MB, free: 6.816 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.871e-05/0.03429, allocations: 25.7 kB / 303.4 MB, free: 6.785 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002905/0.03458, allocations: 0.527 MB / 304 MB, free: 6.25 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.764e-05/0.03463, allocations: 87.3 kB / 304.1 MB, free: 6.164 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.614e-05/0.0347, allocations: 67.47 kB / 304.1 MB, free: 6.09 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001213/0.03482, allocations: 0.4887 MB / 304.6 MB, free: 5.594 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.627e-05/0.03486, allocations: 28.22 kB / 304.6 MB, free: 5.566 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001059/0.03497, allocations: 166.7 kB / 304.8 MB, free: 5.352 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001557/0.03513, allocations: 188.7 kB / 305 MB, free: 5.125 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.03513, allocations: 4 kB / 305 MB, free: 5.121 MB / 282.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.00032/0.03545, allocations: 339.6 kB / 305.3 MB, free: 4.781 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.596e-05/0.03546, allocations: 7.938 kB / 305.3 MB, free: 4.773 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.263e-05/0.03549, allocations: 16 kB / 305.3 MB, free: 4.758 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002208/0.03571, allocations: 131.5 kB / 305.5 MB, free: 4.625 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.807e-05/0.0358, allocations: 32.14 kB / 305.5 MB, free: 4.594 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004414/0.03624, allocations: 0.9192 MB / 306.4 MB, free: 3.645 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001181/0.03636, allocations: 31.72 kB / 306.5 MB, free: 3.613 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.534e-05/0.03638, allocations: 12 kB / 306.5 MB, free: 3.602 MB / 282.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.0001289/0.03651, allocations: 168.5 kB / 306.6 MB, free: 3.426 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.294e-05/0.03659, allocations: 115.3 kB / 306.7 MB, free: 3.312 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003914/0.03698, allocations: 330.3 kB / 307.1 MB, free: 2.98 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.947e-06/0.03699, allocations: 4 kB / 307.1 MB, free: 2.977 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.034e-06/0.03699, allocations: 0 / 307.1 MB, free: 2.977 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.587e-06/0.03699, allocations: 0 / 307.1 MB, free: 2.977 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003128/0.03731, allocations: 361.7 kB / 307.4 MB, free: 2.598 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.343e-05/0.03732, allocations: 12 kB / 307.4 MB, free: 2.586 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.701e-05/0.03738, allocations: 19.98 kB / 307.5 MB, free: 2.566 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001564/0.03753, allocations: 119.6 kB / 307.6 MB, free: 2.445 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.194e-05/0.03754, allocations: 11.94 kB / 307.6 MB, free: 2.434 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003765/0.03792, allocations: 0.9091 MB / 308.5 MB, free: 1.492 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.784e-06/0.03792, allocations: 3.938 kB / 308.5 MB, free: 1.488 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002821/0.03821, allocations: 434.8 kB / 308.9 MB, free: 1.043 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.602e-05/0.0383, allocations: 103.2 kB / 309 MB, free: 0.9414 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.412e-05/0.03835, allocations: 7.938 kB / 309 MB, free: 0.9336 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000101/0.03845, allocations: 4 kB / 309 MB, free: 0.9297 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.762e-05/0.03848, allocations: 19.97 kB / 309.1 MB, free: 0.9102 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.321e-05/0.0385, allocations: 8 kB / 309.1 MB, free: 0.9023 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002829/0.03878, allocations: 0.4906 MB / 309.6 MB, free: 412 kB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.03878, allocations: 0 / 309.6 MB, free: 412 kB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003559/0.03914, allocations: 207.6 kB / 309.8 MB, free: 204 kB / 282.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.0003904/0.03953, allocations: 339.4 kB / 310.1 MB, free: 15.86 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002798/0.03981, allocations: 220.1 kB / 310.3 MB, free: 15.63 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.03981, allocations: 0 / 310.3 MB, free: 15.63 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001215/0.03993, allocations: 156.1 kB / 310.5 MB, free: 15.46 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004407/0.04037, allocations: 164.7 kB / 310.6 MB, free: 15.3 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00117/0.04154, allocations: 1.161 MB / 311.8 MB, free: 14.09 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.668e-05/0.04163, allocations: 146.1 kB / 311.9 MB, free: 13.93 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0002009/0.04183, allocations: 106.7 kB / 312 MB, free: 13.82 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001936/0.04202, allocations: 222 kB / 312.2 MB, free: 13.6 MB / 298.7 MB Notification: Performance of SimCode: time 7.31e-07/0.04202, allocations: 0 / 312.2 MB, free: 13.6 MB / 298.7 MB Notification: Performance of Templates: time 0.01405/0.05607, allocations: 9.979 MB / 322.2 MB, free: 3.758 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.sim & ./Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.9372715172357857]