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.001281/0.001281, allocations: 112.2 kB / 21.19 MB, free: 0.7578 MB / 14.72 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.001432/0.001432, allocations: 209.8 kB / 24.5 MB, free: 4.133 MB / 14.72 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 1.407/1.407, allocations: 230.6 MB / 258.3 MB, free: 8.023 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001483/0.001483, allocations: 51.91 kB / 379 MB, free: 2.633 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2178/0.2193, allocations: 53.36 MB / 432.4 MB, free: 6.93 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.006209/0.2255, allocations: 5.317 MB / 437.7 MB, free: 1.594 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01066/0.2362, allocations: 9.165 MB / 446.9 MB, free: 8.391 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007005/0.2369, allocations: 59.38 kB / 446.9 MB, free: 8.332 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001047/0.2379, allocations: 403.9 kB / 447.3 MB, free: 7.938 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002362/0.2403, allocations: 0.838 MB / 448.2 MB, free: 7.094 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00154/0.2418, allocations: 0.6065 MB / 448.8 MB, free: 6.484 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002508/0.2443, allocations: 1.729 MB / 450.5 MB, free: 4.75 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002319/0.2446, allocations: 107.3 kB / 450.6 MB, free: 4.629 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004179/0.245, allocations: 318.6 kB / 450.9 MB, free: 4.316 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004202/0.2454, allocations: 329.9 kB / 451.2 MB, free: 3.992 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.519e-05/0.2454, allocations: 32 kB / 451.3 MB, free: 3.961 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001314/0.2468, allocations: 0.6555 MB / 451.9 MB, free: 3.305 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.236e-05/0.2469, allocations: 103.3 kB / 452 MB, free: 3.203 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004173/0.2473, allocations: 409.5 kB / 452.4 MB, free: 2.801 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0016/0.2489, allocations: 1.218 MB / 453.6 MB, free: 1.578 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.898e-06/0.2489, allocations: 0 / 453.6 MB, free: 1.578 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.2489, allocations: 0 / 453.6 MB, free: 1.578 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.135e-05/0.2489, allocations: 0 / 453.6 MB, free: 1.578 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.001924/0.2508, allocations: 1.242 MB / 454.9 MB, free: 308 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.871e-05/0.2508, allocations: 8.031 kB / 454.9 MB, free: 300 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003029/0.2512, allocations: 140.1 kB / 455 MB, free: 160 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001308/0.2525, allocations: 0.7849 MB / 455.8 MB, free: 15.31 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.235e-05/0.2525, allocations: 24.5 kB / 455.8 MB, free: 15.29 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.537e-05/0.2525, allocations: 27.95 kB / 455.9 MB, free: 15.26 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005239/0.2531, allocations: 307.8 kB / 456.2 MB, free: 14.95 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.202e-05/0.2531, allocations: 0 / 456.2 MB, free: 14.95 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.99e-05/0.2531, allocations: 12 kB / 456.2 MB, free: 14.94 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.228e-05/0.2531, allocations: 11.98 kB / 456.2 MB, free: 14.93 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004167/0.2535, allocations: 238 kB / 456.4 MB, free: 14.7 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001793/0.2553, allocations: 1.14 MB / 457.6 MB, free: 13.49 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003623/0.2557, allocations: 174.6 kB / 457.7 MB, free: 13.31 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003319/0.256, allocations: 201.3 kB / 457.9 MB, free: 13.11 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006681/0.2627, allocations: 3.115 MB / 461 MB, free: 9.969 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.562e-05/0.2627, allocations: 34.56 kB / 461.1 MB, free: 9.926 MB / 366.1 MB Notification: Performance of pre-optimization done (n=23): time 3.857e-06/0.2627, allocations: 4 kB / 461.1 MB, free: 9.922 MB / 366.1 MB Notification: Performance of matching and sorting (n=23): time 0.001595/0.2643, allocations: 0.5772 MB / 461.7 MB, free: 9.336 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.479e-05/0.2644, allocations: 85.09 kB / 461.7 MB, free: 9.234 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000959/0.2654, allocations: 0.7948 MB / 462.5 MB, free: 8.422 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.732e-05/0.2654, allocations: 29.7 kB / 462.6 MB, free: 8.387 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003727/0.2658, allocations: 445 kB / 463 MB, free: 7.949 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.135e-05/0.2658, allocations: 79.31 kB / 463.1 MB, free: 7.871 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.923e-05/0.2659, allocations: 57.89 kB / 463.1 MB, free: 7.809 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001364/0.2661, allocations: 325.9 kB / 463.4 MB, free: 7.484 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001444/0.2662, allocations: 64.2 kB / 463.5 MB, free: 7.422 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001972/0.2664, allocations: 149.9 kB / 463.7 MB, free: 7.242 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003495/0.2667, allocations: 232.1 kB / 463.9 MB, free: 6.988 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.696e-06/0.2667, allocations: 7.938 kB / 463.9 MB, free: 6.98 MB / 366.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0006169/0.2674, allocations: 401.4 kB / 464.3 MB, free: 6.578 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.822e-05/0.2674, allocations: 7.984 kB / 464.3 MB, free: 6.57 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.973e-05/0.2674, allocations: 16 kB / 464.3 MB, free: 6.555 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003738/0.2678, allocations: 141 kB / 464.4 MB, free: 6.414 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001665/0.268, allocations: 35.91 kB / 464.5 MB, free: 6.379 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006668/0.2686, allocations: 0.7105 MB / 465.2 MB, free: 5.648 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002393/0.2689, allocations: 35.8 kB / 465.2 MB, free: 5.613 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.784e-05/0.2689, allocations: 16 kB / 465.2 MB, free: 5.598 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.0002672/0.2692, allocations: 193.8 kB / 465.4 MB, free: 5.398 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001306/0.2693, allocations: 107.3 kB / 465.5 MB, free: 5.293 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007759/0.2701, allocations: 418.1 kB / 465.9 MB, free: 4.875 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.859e-06/0.2701, allocations: 0 / 465.9 MB, free: 4.875 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.677e-06/0.2701, allocations: 4 kB / 465.9 MB, free: 4.871 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.878e-06/0.2701, allocations: 0 / 465.9 MB, free: 4.871 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005969/0.2707, allocations: 486.6 kB / 466.4 MB, free: 4.355 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.596e-05/0.2707, allocations: 23.98 kB / 466.4 MB, free: 4.332 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001118/0.2708, allocations: 15.98 kB / 466.5 MB, free: 4.316 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002744/0.2711, allocations: 140.7 kB / 466.6 MB, free: 4.176 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.308e-05/0.2711, allocations: 11.94 kB / 466.6 MB, free: 4.164 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006274/0.2717, allocations: 0.693 MB / 467.3 MB, free: 3.445 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.2717, allocations: 4.062 kB / 467.3 MB, free: 3.441 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005662/0.2723, allocations: 448.3 kB / 467.7 MB, free: 2.984 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001909/0.2725, allocations: 95.27 kB / 467.8 MB, free: 2.891 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.816e-05/0.2726, allocations: 7.984 kB / 467.8 MB, free: 2.883 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001986/0.2728, allocations: 8 kB / 467.9 MB, free: 2.875 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.447e-05/0.2728, allocations: 15.94 kB / 467.9 MB, free: 2.859 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.101e-05/0.2729, allocations: 15.98 kB / 467.9 MB, free: 2.844 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006299/0.2735, allocations: 0.5423 MB / 468.4 MB, free: 2.293 MB / 366.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.2735, allocations: 0 / 468.4 MB, free: 2.293 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005624/0.274, allocations: 199.6 kB / 468.6 MB, free: 2.098 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.0004909/0.2745, allocations: 299.7 kB / 468.9 MB, free: 1.797 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005899/0.2751, allocations: 267.9 kB / 469.2 MB, free: 1.523 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.2751, allocations: 0 / 469.2 MB, free: 1.523 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002928/0.2754, allocations: 175.2 kB / 469.3 MB, free: 1.34 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007335/0.2762, allocations: 164.3 kB / 469.5 MB, free: 1.176 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001957/0.2781, allocations: 1.284 MB / 470.8 MB, free: 15.85 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000534/0.2786, allocations: 0.9335 MB / 471.7 MB, free: 14.89 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.038e-05/0.2787, allocations: 55.42 kB / 471.8 MB, free: 14.84 MB / 382.1 MB Notification: Performance of SimCode: time 3.41e-07/0.2787, allocations: 4 kB / 471.8 MB, free: 14.83 MB / 382.1 MB Notification: Performance of Templates: time 0.01905/0.2978, allocations: 14.48 MB / 486.3 MB, free: 388 kB / 382.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/CascodeCircuit/CascodeCircuit.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 7.491804887074977]