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.0008971/0.0008971, allocations: 85.05 kB / 21.5 MB, free: 2.988 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.0008236/0.0008236, allocations: 139.9 kB / 24.89 MB, free: 9.203 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.8877/0.8877, allocations: 173.4 MB / 201.5 MB, free: 9.211 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.483e-06/1.483e-06, allocations: 0 / 268.5 MB, free: 6.227 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.821e-05/1.97e-05, allocations: 2.312 kB / 268.5 MB, free: 6.223 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.003862/0.003882, allocations: 5.027 MB / 273.5 MB, free: 1.168 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00647/0.01035, allocations: 8.644 MB / 282.1 MB, free: 8.484 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003141/0.01067, allocations: 55.38 kB / 282.2 MB, free: 8.43 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006287/0.01129, allocations: 381.4 kB / 282.6 MB, free: 8.055 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001354/0.01265, allocations: 0.8804 MB / 283.4 MB, free: 7.168 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008847/0.01353, allocations: 0.614 MB / 284 MB, free: 6.551 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001526/0.01506, allocations: 1.787 MB / 285.8 MB, free: 4.758 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001611/0.01522, allocations: 111.4 kB / 285.9 MB, free: 4.629 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006503/0.01587, allocations: 0.8239 MB / 286.8 MB, free: 3.805 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002492/0.01612, allocations: 243.2 kB / 287 MB, free: 3.566 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.129e-05/0.01616, allocations: 28 kB / 287 MB, free: 3.539 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007767/0.01694, allocations: 0.5579 MB / 287.6 MB, free: 2.98 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.771e-05/0.017, allocations: 107.3 kB / 287.7 MB, free: 2.875 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000159/0.01716, allocations: 231.3 kB / 287.9 MB, free: 2.648 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007692/0.01793, allocations: 0.9459 MB / 288.9 MB, free: 1.699 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.986e-06/0.01794, allocations: 0 / 288.9 MB, free: 1.699 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.22e-07/0.01794, allocations: 8 kB / 288.9 MB, free: 1.691 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.871e-06/0.01794, allocations: 3.938 kB / 288.9 MB, free: 1.688 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.0009676/0.01891, allocations: 1.201 MB / 290.1 MB, free: 468 kB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.182e-05/0.01894, allocations: 12.91 kB / 290.1 MB, free: 456 kB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.459e-05/0.01903, allocations: 88.84 kB / 290.2 MB, free: 368 kB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.09911/0.1181, allocations: 0.6943 MB / 290.9 MB, free: 25.52 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.515e-05/0.1182, allocations: 18.19 kB / 290.9 MB, free: 25.52 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.192e-05/0.1182, allocations: 26.3 kB / 290.9 MB, free: 25.52 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000321/0.1185, allocations: 261.3 kB / 291.2 MB, free: 25.41 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.035e-05/0.1185, allocations: 0.8125 kB / 291.2 MB, free: 25.41 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.087e-05/0.1186, allocations: 11 kB / 291.2 MB, free: 25.41 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.356e-05/0.1186, allocations: 15.36 kB / 291.2 MB, free: 25.41 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001565/0.1187, allocations: 93.12 kB / 291.3 MB, free: 25.4 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009869/0.1197, allocations: 0.7074 MB / 292 MB, free: 25.1 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001793/0.1199, allocations: 152.4 kB / 292.1 MB, free: 25.04 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001413/0.12, allocations: 127 kB / 292.3 MB, free: 25.02 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005325/0.1254, allocations: 3.587 MB / 295.9 MB, free: 24.5 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.814e-05/0.1254, allocations: 31.97 kB / 295.9 MB, free: 24.46 MB / 266.7 MB Notification: Performance of pre-optimization done (n=23): time 1.703e-06/0.1254, allocations: 3.094 kB / 295.9 MB, free: 24.46 MB / 266.7 MB Notification: Performance of matching and sorting (n=23): time 0.0008808/0.1263, allocations: 409.8 kB / 296.3 MB, free: 24.41 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.093e-05/0.1263, allocations: 80.42 kB / 296.4 MB, free: 24.31 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005264/0.1268, allocations: 0.7107 MB / 297.1 MB, free: 24.17 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.611e-05/0.1268, allocations: 29.86 kB / 297.1 MB, free: 24.14 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001354/0.127, allocations: 279.3 kB / 297.4 MB, free: 24 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.788e-05/0.127, allocations: 84.5 kB / 297.5 MB, free: 23.94 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.931e-05/0.1271, allocations: 49.62 kB / 297.5 MB, free: 23.92 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 3.426e-05/0.1271, allocations: 319.5 kB / 297.8 MB, free: 23.62 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.623e-05/0.1272, allocations: 23.73 kB / 297.8 MB, free: 23.62 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.811e-05/0.1272, allocations: 135.5 kB / 298 MB, free: 23.5 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001393/0.1274, allocations: 152.5 kB / 298.1 MB, free: 23.41 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.1274, allocations: 1.094 kB / 298.1 MB, free: 23.41 MB / 266.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0003025/0.1277, allocations: 243.4 kB / 298.4 MB, free: 23.37 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.465e-05/0.1277, allocations: 6.844 kB / 298.4 MB, free: 23.37 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.919e-05/0.1277, allocations: 4.688 kB / 298.4 MB, free: 23.37 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002257/0.1279, allocations: 104.9 kB / 298.5 MB, free: 23.36 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001023/0.128, allocations: 35.72 kB / 298.5 MB, free: 23.36 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000295/0.1283, allocations: 0.6155 MB / 299.1 MB, free: 22.83 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001594/0.1285, allocations: 19.8 kB / 299.2 MB, free: 22.82 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.44e-05/0.1285, allocations: 11.95 kB / 299.2 MB, free: 22.82 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.0001014/0.1286, allocations: 122.8 kB / 299.3 MB, free: 22.71 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.005e-05/0.1287, allocations: 80.5 kB / 299.4 MB, free: 22.7 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003959/0.1291, allocations: 270 kB / 299.6 MB, free: 22.63 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.288e-06/0.1291, allocations: 5.969 kB / 299.6 MB, free: 22.63 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.202e-06/0.1291, allocations: 0 / 299.6 MB, free: 22.63 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.699e-06/0.1291, allocations: 1.312 kB / 299.6 MB, free: 22.63 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003373/0.1295, allocations: 293.4 kB / 299.9 MB, free: 22.54 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.225e-05/0.1295, allocations: 8.359 kB / 299.9 MB, free: 22.54 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.496e-05/0.1295, allocations: 17.58 kB / 299.9 MB, free: 22.54 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001709/0.1297, allocations: 92.14 kB / 300 MB, free: 22.53 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.282e-05/0.1297, allocations: 10.12 kB / 300 MB, free: 22.53 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002416/0.13, allocations: 0.6054 MB / 300.6 MB, free: 22 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.13, allocations: 0 / 300.6 MB, free: 22 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002474/0.1302, allocations: 293.8 kB / 300.9 MB, free: 21.86 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001015/0.1303, allocations: 89.69 kB / 301 MB, free: 21.8 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.267e-05/0.1304, allocations: 5 kB / 301 MB, free: 21.8 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001471/0.1305, allocations: 7.516 kB / 301 MB, free: 21.8 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.478e-05/0.1306, allocations: 10.5 kB / 301 MB, free: 21.8 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.339e-05/0.1306, allocations: 6.406 kB / 301.1 MB, free: 21.8 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003052/0.1309, allocations: 360.8 kB / 301.4 MB, free: 21.76 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1309, allocations: 0 / 301.4 MB, free: 21.76 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004463/0.1313, allocations: 206.1 kB / 301.6 MB, free: 21.73 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.0004074/0.1317, allocations: 329.3 kB / 301.9 MB, free: 21.63 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002796/0.132, allocations: 178.2 kB / 302.1 MB, free: 21.56 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.296e-05/0.132, allocations: 10.22 kB / 302.1 MB, free: 21.56 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000126/0.1321, allocations: 136.1 kB / 302.2 MB, free: 21.49 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005015/0.1326, allocations: 161.9 kB / 302.4 MB, free: 21.47 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001115/0.1338, allocations: 1.153 MB / 303.6 MB, free: 20.84 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.07e-05/0.1338, allocations: 138.2 kB / 303.7 MB, free: 20.76 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002072/0.134, allocations: 111.1 kB / 303.8 MB, free: 20.73 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001957/0.1342, allocations: 187.6 kB / 304 MB, free: 20.68 MB / 266.7 MB Notification: Performance of SimCode: time 4.81e-07/0.1342, allocations: 1.844 kB / 304 MB, free: 20.68 MB / 266.7 MB Notification: Performance of Templates: time 0.01291/0.1471, allocations: 9.841 MB / 313.8 MB, free: 13.62 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.710280858911574]