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.001628/0.001628, allocations: 100 kB / 21.18 MB, free: 0.6484 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.001706/0.001706, allocations: 187.3 kB / 24.45 MB, free: 3.961 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.458/1.458, allocations: 225.7 MB / 253.3 MB, free: 12.81 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.001646/0.001646, allocations: 47.92 kB / 371.6 MB, free: 9.191 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2204/0.222, allocations: 52.17 MB / 423.8 MB, free: 14.49 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.006202/0.2282, allocations: 4.648 MB / 428.4 MB, free: 9.832 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01021/0.2384, allocations: 7.835 MB / 436.3 MB, free: 1.965 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005252/0.239, allocations: 63.38 kB / 436.3 MB, free: 1.902 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008944/0.2399, allocations: 365.5 kB / 436.7 MB, free: 1.543 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002106/0.242, allocations: 0.8419 MB / 437.5 MB, free: 0.6953 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00132/0.2433, allocations: 0.5948 MB / 438.1 MB, free: 100 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00231/0.2456, allocations: 1.694 MB / 439.8 MB, free: 14.4 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002279/0.2458, allocations: 103.4 kB / 439.9 MB, free: 14.28 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004154/0.2462, allocations: 322.5 kB / 440.2 MB, free: 13.96 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004001/0.2466, allocations: 306 kB / 440.5 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.135e-05/0.2467, allocations: 28 kB / 440.6 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001131/0.2478, allocations: 0.5658 MB / 441.1 MB, free: 13.07 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.471e-05/0.2479, allocations: 99.33 kB / 441.2 MB, free: 12.97 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002982/0.2482, allocations: 310.1 kB / 441.5 MB, free: 12.67 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001428/0.2497, allocations: 1.21 MB / 442.8 MB, free: 11.45 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.2497, allocations: 4 kB / 442.8 MB, free: 11.45 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.2497, allocations: 0 / 442.8 MB, free: 11.45 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.112e-05/0.2497, allocations: 0 / 442.8 MB, free: 11.45 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.001949/0.2516, allocations: 1.238 MB / 444 MB, free: 10.18 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.44e-05/0.2517, allocations: 8.031 kB / 444 MB, free: 10.17 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001463/0.2518, allocations: 116.2 kB / 444.1 MB, free: 10.05 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001294/0.2531, allocations: 0.7849 MB / 444.9 MB, free: 9.203 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.613e-05/0.2531, allocations: 20.5 kB / 444.9 MB, free: 9.184 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.572e-05/0.2532, allocations: 28 kB / 444.9 MB, free: 9.156 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005508/0.2537, allocations: 337.5 kB / 445.3 MB, free: 8.816 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.278e-05/0.2537, allocations: 0 / 445.3 MB, free: 8.816 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.37e-05/0.2538, allocations: 12 kB / 445.3 MB, free: 8.805 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.222e-05/0.2538, allocations: 8 kB / 445.3 MB, free: 8.797 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004334/0.2542, allocations: 234 kB / 445.5 MB, free: 8.566 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00175/0.256, allocations: 1.032 MB / 446.6 MB, free: 7.484 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000381/0.2564, allocations: 186.5 kB / 446.7 MB, free: 7.293 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003218/0.2567, allocations: 193.3 kB / 446.9 MB, free: 7.098 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006677/0.2634, allocations: 3.083 MB / 450 MB, free: 3.992 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.529e-05/0.2634, allocations: 38.55 kB / 450 MB, free: 3.945 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 2.214e-06/0.2634, allocations: 0 / 450 MB, free: 3.945 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.001615/0.265, allocations: 0.5829 MB / 450.6 MB, free: 3.355 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.388e-05/0.2651, allocations: 77.11 kB / 450.7 MB, free: 3.262 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009486/0.266, allocations: 0.7859 MB / 451.5 MB, free: 2.457 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.757e-05/0.266, allocations: 25.7 kB / 451.5 MB, free: 2.426 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00038/0.2664, allocations: 452.7 kB / 452 MB, free: 1.98 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.041e-05/0.2665, allocations: 87.27 kB / 452 MB, free: 1.895 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.616e-05/0.2666, allocations: 61.88 kB / 452.1 MB, free: 1.828 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001308/0.2667, allocations: 314 kB / 452.4 MB, free: 1.516 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001513/0.2669, allocations: 68.2 kB / 452.5 MB, free: 1.449 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002212/0.2671, allocations: 168.8 kB / 452.6 MB, free: 1.246 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003651/0.2675, allocations: 232.4 kB / 452.9 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.2675, allocations: 0 / 452.9 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0006421/0.2681, allocations: 408.3 kB / 453.3 MB, free: 0.582 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.548e-05/0.2681, allocations: 4.281 kB / 453.3 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.057e-05/0.2681, allocations: 20 kB / 453.3 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003656/0.2685, allocations: 140.7 kB / 453.4 MB, free: 428 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000173/0.2687, allocations: 31.98 kB / 453.5 MB, free: 396 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007/0.2694, allocations: 0.7116 MB / 454.2 MB, free: 15.65 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002893/0.2697, allocations: 27.81 kB / 454.2 MB, free: 15.62 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.465e-05/0.2697, allocations: 12 kB / 454.2 MB, free: 15.61 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.000253/0.27, allocations: 201.7 kB / 454.4 MB, free: 15.41 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001277/0.2701, allocations: 107.3 kB / 454.5 MB, free: 15.3 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007721/0.2709, allocations: 395.5 kB / 454.9 MB, free: 14.9 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.949e-06/0.2709, allocations: 7.938 kB / 454.9 MB, free: 14.89 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.506e-06/0.2709, allocations: 0 / 454.9 MB, free: 14.89 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.065e-06/0.2709, allocations: 0 / 454.9 MB, free: 14.89 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005415/0.2714, allocations: 426.1 kB / 455.3 MB, free: 14.45 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.508e-05/0.2714, allocations: 16 kB / 455.3 MB, free: 14.43 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001281/0.2716, allocations: 23.91 kB / 455.4 MB, free: 14.41 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002815/0.2719, allocations: 140.7 kB / 455.5 MB, free: 14.27 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.927e-05/0.2719, allocations: 4 kB / 455.5 MB, free: 14.27 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006476/0.2725, allocations: 0.7007 MB / 456.2 MB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.2725, allocations: 0 / 456.2 MB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005978/0.2731, allocations: 450.9 kB / 456.6 MB, free: 13.08 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000212/0.2733, allocations: 91.33 kB / 456.7 MB, free: 12.99 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.148e-05/0.2734, allocations: 8.062 kB / 456.7 MB, free: 12.98 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002247/0.2736, allocations: 11.98 kB / 456.8 MB, free: 12.97 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.693e-05/0.2737, allocations: 11.98 kB / 456.8 MB, free: 12.96 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.041e-05/0.2737, allocations: 8 kB / 456.8 MB, free: 12.95 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006564/0.2744, allocations: 0.53 MB / 457.3 MB, free: 12.41 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2744, allocations: 0 / 457.3 MB, free: 12.41 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005759/0.275, allocations: 203.6 kB / 457.5 MB, free: 12.21 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.0005117/0.2755, allocations: 295.2 kB / 457.8 MB, free: 11.92 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005927/0.2761, allocations: 273.7 kB / 458.1 MB, free: 11.64 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.2761, allocations: 0 / 458.1 MB, free: 11.64 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003013/0.2764, allocations: 167.3 kB / 458.2 MB, free: 11.46 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007626/0.2771, allocations: 164.6 kB / 458.4 MB, free: 11.3 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00192/0.279, allocations: 1.272 MB / 459.7 MB, free: 9.988 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003525/0.2794, allocations: 349.3 kB / 460 MB, free: 9.621 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.92e-05/0.2795, allocations: 59.42 kB / 460.1 MB, free: 9.562 MB / 366.1 MB Notification: Performance of SimCode: time 5.61e-07/0.2795, allocations: 0 / 460.1 MB, free: 9.562 MB / 366.1 MB Notification: Performance of Templates: time 0.01966/0.2991, allocations: 14.82 MB / 474.9 MB, free: 10.76 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/CascodeCircuit/CascodeCircuit.csv","/var/lib/jenkins1/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: 8.049463157076389]