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.001262/0.001262, allocations: 112 kB / 20.43 MB, free: 1.449 MB / 14.72 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.001319/0.001319, allocations: 187.8 kB / 23.72 MB, free: 4.68 MB / 14.72 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 1.425/1.425, allocations: 225.6 MB / 252.5 MB, free: 13.01 MB / 206.1 MB
"
[Timeout remaining time 178]
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 0.001512/0.001512, allocations: 51.91 kB / 370.9 MB, free: 9.348 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.2387/0.2403, allocations: 52.18 MB / 423.1 MB, free: 14.68 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.006617/0.2469, allocations: 5.33 MB / 428.4 MB, free: 9.328 MB / 334.1 MB
Notification: Performance of NFInst.instExpressions: time 0.01101/0.2579, allocations: 9.108 MB / 437.5 MB, free: 188 kB / 334.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.000502/0.2584, allocations: 63.31 kB / 437.6 MB, free: 124 kB / 334.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0008948/0.2593, allocations: 401.4 kB / 438 MB, free: 15.73 MB / 350.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.001961/0.2612, allocations: 0.8419 MB / 438.8 MB, free: 14.88 MB / 350.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.001335/0.2626, allocations: 0.5948 MB / 439.4 MB, free: 14.28 MB / 350.1 MB
Notification: Performance of NFFlatten.flatten: time 0.002475/0.2651, allocations: 1.694 MB / 441.1 MB, free: 12.58 MB / 350.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0002597/0.2653, allocations: 111.3 kB / 441.2 MB, free: 12.46 MB / 350.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0004216/0.2657, allocations: 322.5 kB / 441.6 MB, free: 12.14 MB / 350.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0004102/0.2661, allocations: 326 kB / 441.9 MB, free: 11.82 MB / 350.1 MB
Notification: Performance of NFPackage.collectConstants: time 6.816e-05/0.2662, allocations: 28 kB / 441.9 MB, free: 11.79 MB / 350.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.001337/0.2676, allocations: 0.6477 MB / 442.5 MB, free: 11.14 MB / 350.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.0001068/0.2677, allocations: 103.4 kB / 442.7 MB, free: 11.04 MB / 350.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0003857/0.268, allocations: 405.5 kB / 443 MB, free: 10.64 MB / 350.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.001689/0.2697, allocations: 1.198 MB / 444.2 MB, free: 9.441 MB / 350.1 MB
Notification: Performance of FrontEnd - DAE generated: time 6.082e-06/0.2697, allocations: 3.984 kB / 444.2 MB, free: 9.438 MB / 350.1 MB
Notification: Performance of FrontEnd: time 1.513e-06/0.2697, allocations: 4 kB / 444.3 MB, free: 9.434 MB / 350.1 MB
Notification: Performance of Transformations before backend: time 1.045e-05/0.2698, allocations: 0 / 444.3 MB, free: 9.434 MB / 350.1 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.00208/0.2718, allocations: 1.242 MB / 445.5 MB, free: 8.156 MB / 350.1 MB
Notification: Performance of prepare preOptimizeDAE: time 3.618e-05/0.2719, allocations: 12.03 kB / 445.5 MB, free: 8.145 MB / 350.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001519/0.272, allocations: 116.2 kB / 445.6 MB, free: 8.031 MB / 350.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.001323/0.2733, allocations: 0.7733 MB / 446.4 MB, free: 7.191 MB / 350.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.42e-05/0.2734, allocations: 20.5 kB / 446.4 MB, free: 7.172 MB / 350.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 5.305e-05/0.2734, allocations: 24 kB / 446.4 MB, free: 7.148 MB / 350.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005504/0.274, allocations: 311.8 kB / 446.7 MB, free: 6.84 MB / 350.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.119e-05/0.274, allocations: 0 / 446.7 MB, free: 6.84 MB / 350.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.176e-05/0.274, allocations: 8 kB / 446.7 MB, free: 6.832 MB / 350.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.19e-05/0.274, allocations: 11.98 kB / 446.8 MB, free: 6.82 MB / 350.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004629/0.2745, allocations: 238 kB / 447 MB, free: 6.586 MB / 350.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001856/0.2763, allocations: 1.156 MB / 448.1 MB, free: 5.367 MB / 350.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0004033/0.2767, allocations: 174.6 kB / 448.3 MB, free: 5.188 MB / 350.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0003308/0.2771, allocations: 198 kB / 448.5 MB, free: 4.988 MB / 350.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 0.006722/0.2838, allocations: 3.111 MB / 451.6 MB, free: 1.855 MB / 350.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.798e-05/0.2838, allocations: 30.56 kB / 451.7 MB, free: 1.816 MB / 350.1 MB
Notification: Performance of pre-optimization done (n=23): time 1.723e-06/0.2838, allocations: 0 / 451.7 MB, free: 1.816 MB / 350.1 MB
Notification: Performance of matching and sorting (n=23): time 0.001659/0.2855, allocations: 0.5871 MB / 452.2 MB, free: 1.223 MB / 350.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 6.188e-05/0.2856, allocations: 81.11 kB / 452.3 MB, free: 1.125 MB / 350.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009229/0.2865, allocations: 0.7987 MB / 453.1 MB, free: 316 kB / 350.1 MB
Notification: Performance of collectPreVariables (initialization): time 2.783e-05/0.2865, allocations: 25.7 kB / 453.1 MB, free: 284 kB / 350.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0003826/0.2869, allocations: 449 kB / 453.6 MB, free: 15.83 MB / 366.1 MB
Notification: Performance of collectInitialBindings (initialization): time 7.032e-05/0.287, allocations: 87.23 kB / 453.7 MB, free: 15.75 MB / 366.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001005/0.2871, allocations: 57.89 kB / 453.7 MB, free: 15.69 MB / 366.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001312/0.2872, allocations: 321.9 kB / 454 MB, free: 15.37 MB / 366.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001533/0.2873, allocations: 72.14 kB / 454.1 MB, free: 15.3 MB / 366.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002105/0.2875, allocations: 147 kB / 454.3 MB, free: 15.12 MB / 366.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0003676/0.2879, allocations: 220.5 kB / 454.5 MB, free: 14.88 MB / 366.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.2879, allocations: 4 kB / 454.5 MB, free: 14.87 MB / 366.1 MB
Notification: Performance of matching and sorting (n=32) (initialization): time 0.0006746/0.2886, allocations: 412.3 kB / 454.9 MB, free: 14.46 MB / 366.1 MB
Notification: Performance of prepare postOptimizeDAE: time 1.634e-05/0.2886, allocations: 4 kB / 454.9 MB, free: 14.46 MB / 366.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.99e-05/0.2886, allocations: 16 kB / 454.9 MB, free: 14.44 MB / 366.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 0.0003822/0.289, allocations: 141 kB / 455 MB, free: 14.3 MB / 366.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001786/0.2892, allocations: 43.91 kB / 455.1 MB, free: 14.26 MB / 366.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006964/0.2899, allocations: 0.7007 MB / 455.8 MB, free: 13.53 MB / 366.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002461/0.2901, allocations: 31.8 kB / 455.8 MB, free: 13.5 MB / 366.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.363e-05/0.2902, allocations: 12 kB / 455.8 MB, free: 13.49 MB / 366.1 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.0002619/0.2904, allocations: 203.9 kB / 456 MB, free: 13.28 MB / 366.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001281/0.2906, allocations: 107.3 kB / 456.1 MB, free: 13.18 MB / 366.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008199/0.2914, allocations: 399.4 kB / 456.5 MB, free: 12.77 MB / 366.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.508e-06/0.2914, allocations: 0 / 456.5 MB, free: 12.77 MB / 366.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 4.498e-06/0.2914, allocations: 4 kB / 456.5 MB, free: 12.77 MB / 366.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.212e-06/0.2914, allocations: 3.984 kB / 456.5 MB, free: 12.77 MB / 366.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000637/0.292, allocations: 490.6 kB / 457 MB, free: 12.25 MB / 366.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-05/0.2921, allocations: 8 kB / 457 MB, free: 12.24 MB / 366.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001359/0.2922, allocations: 23.97 kB / 457 MB, free: 12.21 MB / 366.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 0.0003199/0.2925, allocations: 140.7 kB / 457.2 MB, free: 12.07 MB / 366.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.622e-05/0.2925, allocations: 11.94 kB / 457.2 MB, free: 12.06 MB / 366.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007031/0.2932, allocations: 0.7023 MB / 457.9 MB, free: 11.34 MB / 366.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.2932, allocations: 0 / 457.9 MB, free: 11.34 MB / 366.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006137/0.2939, allocations: 459.1 kB / 458.3 MB, free: 10.88 MB / 366.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 0.0002094/0.2941, allocations: 99.27 kB / 458.4 MB, free: 10.78 MB / 366.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.027e-05/0.2942, allocations: 0 / 458.4 MB, free: 10.78 MB / 366.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002264/0.2944, allocations: 15.97 kB / 458.4 MB, free: 10.76 MB / 366.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 5.468e-05/0.2944, allocations: 15.98 kB / 458.5 MB, free: 10.75 MB / 366.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.039e-05/0.2945, allocations: 8 kB / 458.5 MB, free: 10.74 MB / 366.1 MB
Notification: Performance of sorting global known variables: time 0.0006644/0.2951, allocations: 0.5383 MB / 459 MB, free: 10.19 MB / 366.1 MB
Notification: Performance of sort global known variables: time 9e-08/0.2951, allocations: 0 / 459 MB, free: 10.19 MB / 366.1 MB
Notification: Performance of remove unused functions: time 0.0005859/0.2957, allocations: 207.6 kB / 459.2 MB, free: 9.988 MB / 366.1 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.0005335/0.2962, allocations: 283.2 kB / 459.5 MB, free: 9.703 MB / 366.1 MB
Notification: Performance of simCode: created initialization part: time 0.0006201/0.2969, allocations: 277.6 kB / 459.8 MB, free: 9.422 MB / 366.1 MB
Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.2969, allocations: 0 / 459.8 MB, free: 9.422 MB / 366.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0003199/0.2972, allocations: 171.8 kB / 459.9 MB, free: 9.242 MB / 366.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007636/0.2979, allocations: 160.3 kB / 460.1 MB, free: 9.082 MB / 366.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001955/0.2999, allocations: 1.243 MB / 461.3 MB, free: 7.805 MB / 366.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005974/0.3005, allocations: 0.9413 MB / 462.3 MB, free: 6.836 MB / 366.1 MB
Notification: Performance of simCode: alias equations: time 0.0002901/0.3008, allocations: 110.7 kB / 462.4 MB, free: 6.723 MB / 366.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 8.273e-05/0.3009, allocations: 51.44 kB / 462.4 MB, free: 6.672 MB / 366.1 MB
Notification: Performance of SimCode: time 4.51e-07/0.3009, allocations: 0 / 462.4 MB, free: 6.672 MB / 366.1 MB
Notification: Performance of Templates: time 0.0191/0.32, allocations: 9.359 MB / 471.8 MB, free: 13.38 MB / 382.1 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=480  -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe 2>&1) [Timeout 480]
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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660]
""
[Timeout remaining time 660]
Reference file matches
[Calling sys.exit(0), Time elapsed: 4.567465168423951]