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.0007844/0.0007844, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001085/0.001869, allocations: 449.8 kB / 10.44 MB, free: 252 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.0006704/0.0006704, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008536/0.001524, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 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.9728/0.9728, allocations: 177.2 MB / 189.8 MB, free: 5.262 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09366/1.066, allocations: 53.66 MB / 243.4 MB, free: 15.51 MB / 250.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.423e-06/1.423e-06, allocations: 0 / 244.7 MB, free: 14.25 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.871e-05/2.013e-05, allocations: 2.312 kB / 244.7 MB, free: 14.24 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.004165/0.004185, allocations: 5.112 MB / 249.8 MB, free: 9.105 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.006753/0.01094, allocations: 8.745 MB / 258.6 MB, free: 328 kB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003001/0.01124, allocations: 59.38 kB / 258.6 MB, free: 268 kB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006906/0.01193, allocations: 381.4 kB / 259 MB, free: 15.89 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001226/0.01315, allocations: 0.8569 MB / 259.8 MB, free: 15.02 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008652/0.01402, allocations: 0.5711 MB / 260.4 MB, free: 14.45 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001397/0.01542, allocations: 1.771 MB / 262.2 MB, free: 12.67 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001728/0.01559, allocations: 115.2 kB / 262.3 MB, free: 12.54 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007715/0.01636, allocations: 0.9685 MB / 263.3 MB, free: 11.56 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002432/0.0166, allocations: 239.2 kB / 263.5 MB, free: 11.32 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.246e-05/0.01665, allocations: 32 kB / 263.5 MB, free: 11.29 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007491/0.0174, allocations: 0.6204 MB / 264.1 MB, free: 10.67 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.934e-05/0.01746, allocations: 87.38 kB / 264.2 MB, free: 10.59 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001488/0.0176, allocations: 211.4 kB / 264.4 MB, free: 10.38 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007658/0.01837, allocations: 0.8797 MB / 265.3 MB, free: 9.496 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.171e-05/0.01838, allocations: 0 / 265.3 MB, free: 9.496 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.092e-06/0.01838, allocations: 0 / 265.3 MB, free: 9.496 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.203e-05/0.01839, allocations: 0 / 265.3 MB, free: 9.496 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.001277/0.01967, allocations: 1.483 MB / 266.8 MB, free: 7.961 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.644e-05/0.01971, allocations: 12.03 kB / 266.8 MB, free: 7.949 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002183/0.01993, allocations: 100.8 kB / 266.9 MB, free: 7.852 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006641/0.02059, allocations: 0.7027 MB / 267.6 MB, free: 7.074 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.802e-05/0.02061, allocations: 20.88 kB / 267.6 MB, free: 7.055 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.917e-05/0.02065, allocations: 28.12 kB / 267.7 MB, free: 7.027 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002435/0.02089, allocations: 257 kB / 267.9 MB, free: 6.754 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.988e-06/0.0209, allocations: 0 / 267.9 MB, free: 6.754 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.83e-05/0.02092, allocations: 12 kB / 267.9 MB, free: 6.742 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.508e-06/0.02093, allocations: 8 kB / 267.9 MB, free: 6.734 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001213/0.02105, allocations: 97 kB / 268 MB, free: 6.641 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007538/0.0218, allocations: 0.7216 MB / 268.8 MB, free: 5.883 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001618/0.02197, allocations: 150.2 kB / 268.9 MB, free: 5.727 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001142/0.02208, allocations: 133.5 kB / 269 MB, free: 5.59 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003938/0.02602, allocations: 3.584 MB / 272.6 MB, free: 1.984 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.372e-05/0.02604, allocations: 46.48 kB / 272.7 MB, free: 1.93 MB / 266.7 MB Notification: Performance of pre-optimization done (n=23): time 1.253e-06/0.02604, allocations: 0 / 272.7 MB, free: 1.93 MB / 266.7 MB Notification: Performance of matching and sorting (n=23): time 0.0007992/0.02684, allocations: 399.1 kB / 273 MB, free: 1.535 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.547e-05/0.02687, allocations: 63.41 kB / 273.1 MB, free: 1.461 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003744/0.02724, allocations: 0.7055 MB / 273.8 MB, free: 0.7383 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.552e-05/0.02726, allocations: 29.7 kB / 273.8 MB, free: 0.7031 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001182/0.02738, allocations: 278.8 kB / 274.1 MB, free: 436 kB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.84e-05/0.02741, allocations: 87.25 kB / 274.2 MB, free: 348 kB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.883e-05/0.02747, allocations: 49.88 kB / 274.2 MB, free: 292 kB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.1094/0.1369, allocations: 321.9 kB / 274.6 MB, free: 13.97 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001067/0.137, allocations: 18.23 kB / 274.6 MB, free: 13.97 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.767e-05/0.1371, allocations: 127.8 kB / 274.7 MB, free: 13.86 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001335/0.1372, allocations: 159.2 kB / 274.9 MB, free: 13.78 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.1372, allocations: 0 / 274.9 MB, free: 13.78 MB / 266.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0003498/0.1375, allocations: 238 kB / 275.1 MB, free: 13.74 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.004e-05/0.1376, allocations: 7.938 kB / 275.1 MB, free: 13.74 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.344e-05/0.1376, allocations: 5.734 kB / 275.1 MB, free: 13.74 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002594/0.1379, allocations: 106.8 kB / 275.2 MB, free: 13.73 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001248/0.138, allocations: 40.77 kB / 275.3 MB, free: 13.73 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002958/0.1383, allocations: 0.6024 MB / 275.9 MB, free: 13.21 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001979/0.1385, allocations: 26.41 kB / 275.9 MB, free: 13.21 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.568e-05/0.1385, allocations: 7.891 kB / 275.9 MB, free: 13.21 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.000126/0.1386, allocations: 124.9 kB / 276 MB, free: 13.1 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.428e-05/0.1387, allocations: 72.95 kB / 276.1 MB, free: 13.1 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003854/0.1391, allocations: 279.3 kB / 276.4 MB, free: 13.04 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.17e-06/0.1391, allocations: 2.156 kB / 276.4 MB, free: 13.04 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.192e-06/0.1391, allocations: 0 / 276.4 MB, free: 13.04 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.017e-06/0.1391, allocations: 2.406 kB / 276.4 MB, free: 13.04 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003551/0.1395, allocations: 292.3 kB / 276.6 MB, free: 12.96 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.239e-05/0.1395, allocations: 5.422 kB / 276.6 MB, free: 12.96 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.033e-05/0.1396, allocations: 20.69 kB / 276.7 MB, free: 12.96 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001174/0.1397, allocations: 89.48 kB / 276.8 MB, free: 12.96 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001707/0.1398, allocations: 97.05 kB / 276.9 MB, free: 12.96 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.104e-05/0.1398, allocations: 8.422 kB / 276.9 MB, free: 12.96 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002349/0.1401, allocations: 0.6054 MB / 277.5 MB, free: 12.44 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.1401, allocations: 0.6562 kB / 277.5 MB, free: 12.44 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002536/0.1403, allocations: 289.1 kB / 277.7 MB, free: 12.3 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.527e-05/0.1404, allocations: 10.72 kB / 277.8 MB, free: 12.3 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.943e-05/0.1405, allocations: 5.031 kB / 277.8 MB, free: 12.3 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.776e-05/0.1405, allocations: 13.27 kB / 277.8 MB, free: 12.3 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.239e-05/0.1405, allocations: 6.172 kB / 277.8 MB, free: 12.3 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003114/0.1408, allocations: 360.5 kB / 278.1 MB, free: 12.25 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1408, allocations: 0 / 278.1 MB, free: 12.25 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000427/0.1413, allocations: 204.1 kB / 278.3 MB, free: 12.25 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.0004577/0.1417, allocations: 328.2 kB / 278.7 MB, free: 12.18 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000272/0.142, allocations: 188 kB / 278.8 MB, free: 12.11 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.111e-05/0.142, allocations: 19.5 kB / 278.9 MB, free: 12.11 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001225/0.1421, allocations: 148 kB / 279 MB, free: 12.03 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007493/0.1429, allocations: 1.507 MB / 280.5 MB, free: 10.65 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002532/0.1454, allocations: 1.139 MB / 281.6 MB, free: 10.05 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.938e-05/0.1455, allocations: 139.3 kB / 281.8 MB, free: 9.977 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002269/0.1458, allocations: 111.2 kB / 281.9 MB, free: 9.945 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002064/0.146, allocations: 194.6 kB / 282.1 MB, free: 9.902 MB / 266.7 MB Notification: Performance of SimCode: time 6.71e-07/0.146, allocations: 0 / 282.1 MB, free: 9.902 MB / 266.7 MB Notification: Performance of Templates: time 0.01431/0.1603, allocations: 10.19 MB / 292.3 MB, free: 7.281 MB / 266.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 -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.705470135435462]