Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.CascodeCircuit,tolerance=1e-07,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|J2.D.v|RC.v|J1.D.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit") translateModel(Modelica.Electrical.Spice3.Examples.CascodeCircuit,tolerance=1e-07,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|J2.D.v|RC.v|J1.D.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001512/0.001512, allocations: 115.5 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002002/0.002002, allocations: 204.6 kB / 18.73 MB, free: 4.324 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.394/1.394, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001265/0.001265, allocations: 63.89 kB / 358.7 MB, free: 12.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.248/0.2493, allocations: 50.54 MB / 409.2 MB, free: 1.738 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.005301/0.2546, allocations: 5.296 MB / 414.5 MB, free: 12.42 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009209/0.2638, allocations: 9.116 MB / 423.6 MB, free: 3.266 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004794/0.2643, allocations: 39.69 kB / 423.7 MB, free: 3.227 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008391/0.2652, allocations: 393.4 kB / 424.1 MB, free: 2.84 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001862/0.2671, allocations: 0.8419 MB / 424.9 MB, free: 1.992 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001257/0.2684, allocations: 0.6065 MB / 425.5 MB, free: 1.383 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002191/0.2706, allocations: 1.713 MB / 427.2 MB, free: 15.66 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002472/0.2708, allocations: 167 kB / 427.4 MB, free: 15.48 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003669/0.2712, allocations: 314.5 kB / 427.7 MB, free: 15.18 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000328/0.2715, allocations: 325.9 kB / 428 MB, free: 14.86 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.53e-05/0.2716, allocations: 32 kB / 428 MB, free: 14.82 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001127/0.2727, allocations: 0.6556 MB / 428.7 MB, free: 14.17 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.009e-05/0.2728, allocations: 111.2 kB / 428.8 MB, free: 14.06 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003122/0.2732, allocations: 401.5 kB / 429.2 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001245/0.2744, allocations: 1.215 MB / 430.4 MB, free: 12.45 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.763e-06/0.2744, allocations: 0 / 430.4 MB, free: 12.45 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.2744, allocations: 7.938 kB / 430.4 MB, free: 12.44 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.134e-05/0.2745, allocations: 0 / 430.4 MB, free: 12.44 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.001708/0.2762, allocations: 1.275 MB / 431.7 MB, free: 11.11 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.174e-05/0.2762, allocations: 8.031 kB / 431.7 MB, free: 11.1 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002973/0.2765, allocations: 123.6 kB / 431.8 MB, free: 10.98 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001115/0.2777, allocations: 0.8521 MB / 432.7 MB, free: 10.07 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.67e-05/0.2777, allocations: 16.56 kB / 432.7 MB, free: 10.06 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.562e-05/0.2778, allocations: 27.94 kB / 432.7 MB, free: 10.03 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004847/0.2782, allocations: 311.6 kB / 433 MB, free: 9.715 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.205e-05/0.2783, allocations: 4 kB / 433 MB, free: 9.711 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.907e-05/0.2783, allocations: 8 kB / 433 MB, free: 9.703 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.221e-05/0.2783, allocations: 12 kB / 433.1 MB, free: 9.691 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004404/0.2788, allocations: 234.1 kB / 433.3 MB, free: 9.461 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001541/0.2803, allocations: 1.19 MB / 434.5 MB, free: 8.199 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003299/0.2807, allocations: 190.7 kB / 434.7 MB, free: 8.004 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003012/0.281, allocations: 229.2 kB / 434.9 MB, free: 7.773 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007514/0.2885, allocations: 8.867 MB / 443.7 MB, free: 13.44 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.216e-05/0.2885, allocations: 34.56 kB / 443.8 MB, free: 13.4 MB / 366.1 MB Notification: Performance of pre-optimization done (n=23): time 3.226e-06/0.2886, allocations: 0 / 443.8 MB, free: 13.4 MB / 366.1 MB Notification: Performance of matching and sorting (n=23): time 0.001502/0.2901, allocations: 0.6768 MB / 444.5 MB, free: 12.7 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.976e-05/0.2901, allocations: 81.11 kB / 444.5 MB, free: 12.6 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000806/0.2909, allocations: 0.8026 MB / 445.3 MB, free: 11.78 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.348e-05/0.291, allocations: 29.7 kB / 445.4 MB, free: 11.74 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003014/0.2913, allocations: 436.7 kB / 445.8 MB, free: 11.31 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.525e-05/0.2913, allocations: 74.86 kB / 445.9 MB, free: 11.23 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.772e-05/0.2914, allocations: 61.83 kB / 445.9 MB, free: 11.17 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.52e-05/0.2915, allocations: 317.9 kB / 446.2 MB, free: 10.85 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001395/0.2917, allocations: 68.2 kB / 446.3 MB, free: 10.79 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001694/0.2919, allocations: 145.9 kB / 446.4 MB, free: 10.61 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003163/0.2922, allocations: 228.5 kB / 446.7 MB, free: 10.36 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.2922, allocations: 7.938 kB / 446.7 MB, free: 10.35 MB / 366.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0005531/0.2928, allocations: 416 kB / 447.1 MB, free: 9.934 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.659e-05/0.2928, allocations: 6.656 kB / 447.1 MB, free: 9.93 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.662e-05/0.2928, allocations: 12 kB / 447.1 MB, free: 9.918 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003418/0.2932, allocations: 141.1 kB / 447.2 MB, free: 9.777 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001536/0.2933, allocations: 39.91 kB / 447.3 MB, free: 9.738 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005962/0.2939, allocations: 0.7045 MB / 448 MB, free: 9.008 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002153/0.2942, allocations: 27.69 kB / 448 MB, free: 8.98 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.239e-05/0.2942, allocations: 23.98 kB / 448 MB, free: 8.957 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.0002067/0.2944, allocations: 197.7 kB / 448.2 MB, free: 8.754 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001076/0.2945, allocations: 98.88 kB / 448.3 MB, free: 8.656 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007248/0.2953, allocations: 421.6 kB / 448.7 MB, free: 8.238 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.911e-06/0.2953, allocations: 4 kB / 448.7 MB, free: 8.234 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.2953, allocations: 0 / 448.7 MB, free: 8.234 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.546e-06/0.2953, allocations: 0 / 448.7 MB, free: 8.234 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005322/0.2958, allocations: 0.5112 MB / 449.3 MB, free: 7.676 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.008e-05/0.2959, allocations: 12 kB / 449.3 MB, free: 7.664 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001087/0.296, allocations: 19.97 kB / 449.3 MB, free: 7.645 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000266/0.2963, allocations: 144.1 kB / 449.4 MB, free: 7.504 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.204e-05/0.2963, allocations: 11.94 kB / 449.4 MB, free: 7.492 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005316/0.2968, allocations: 0.7006 MB / 450.1 MB, free: 6.766 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.2968, allocations: 0 / 450.1 MB, free: 6.766 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005208/0.2974, allocations: 448.6 kB / 450.6 MB, free: 6.309 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001813/0.2976, allocations: 175.8 kB / 450.7 MB, free: 6.117 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.678e-05/0.2976, allocations: 4 kB / 450.7 MB, free: 6.113 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001937/0.2978, allocations: 4 kB / 450.8 MB, free: 6.109 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.721e-05/0.2979, allocations: 11.98 kB / 450.8 MB, free: 6.098 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.128e-05/0.2979, allocations: 15.98 kB / 450.8 MB, free: 6.082 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005426/0.2985, allocations: 0.5423 MB / 451.3 MB, free: 5.531 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2985, allocations: 0 / 451.3 MB, free: 5.531 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005176/0.299, allocations: 199.7 kB / 451.5 MB, free: 5.336 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.0004568/0.2995, allocations: 303.3 kB / 451.8 MB, free: 5.027 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005337/0.3, allocations: 280.2 kB / 452.1 MB, free: 4.742 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.3, allocations: 4 kB / 452.1 MB, free: 4.738 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002788/0.3003, allocations: 179.3 kB / 452.3 MB, free: 4.551 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006624/0.301, allocations: 156.2 kB / 452.4 MB, free: 4.395 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001914/0.3029, allocations: 1.222 MB / 453.6 MB, free: 3.145 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004911/0.3034, allocations: 0.9374 MB / 454.6 MB, free: 2.18 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002562/0.3037, allocations: 106.7 kB / 454.7 MB, free: 2.07 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.134e-05/0.3037, allocations: 51.44 kB / 454.7 MB, free: 2.02 MB / 366.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3037, allocations: 0 / 454.7 MB, free: 2.02 MB / 366.1 MB Notification: Performance of Templates: time 0.01676/0.3205, allocations: 9.159 MB / 463.9 MB, free: 8.93 MB / 382.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit.makefile (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit.sim & ./Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches