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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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=2000,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=2000,variableFilter="time|J2.D.v|RC.v|J1.D.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001552/0.001551, allocations: 104.4 kB / 17.74 MB, free: 5.352 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001702/0.001702, allocations: 183.1 kB / 18.66 MB, free: 4.438 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.326/1.326, allocations: 222.9 MB / 242.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009725/0.0009726, allocations: 47.92 kB / 352 MB, free: 3.262 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2439/0.2449, allocations: 49.44 MB / 401.4 MB, free: 8.965 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.005527/0.2505, allocations: 5.29 MB / 406.7 MB, free: 3.719 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009896/0.2604, allocations: 9.069 MB / 415.8 MB, free: 10.61 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007045/0.2611, allocations: 39.69 kB / 415.8 MB, free: 10.57 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009488/0.2621, allocations: 385.4 kB / 416.2 MB, free: 10.19 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002405/0.2646, allocations: 0.8263 MB / 417 MB, free: 9.355 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001686/0.2663, allocations: 0.5987 MB / 417.6 MB, free: 8.754 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002531/0.2688, allocations: 1.697 MB / 419.3 MB, free: 7.051 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002921/0.2691, allocations: 155.1 kB / 419.4 MB, free: 6.887 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004193/0.2696, allocations: 314.5 kB / 419.7 MB, free: 6.578 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003831/0.27, allocations: 322 kB / 420.1 MB, free: 6.262 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.349e-05/0.27, allocations: 28 kB / 420.1 MB, free: 6.234 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001535/0.2716, allocations: 0.6477 MB / 420.7 MB, free: 5.586 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001128/0.2717, allocations: 99.33 kB / 420.8 MB, free: 5.488 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003671/0.2721, allocations: 417.5 kB / 421.2 MB, free: 5.078 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001565/0.2736, allocations: 1.191 MB / 422.4 MB, free: 3.883 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.621e-06/0.2737, allocations: 0 / 422.4 MB, free: 3.883 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.2737, allocations: 0 / 422.4 MB, free: 3.883 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.068e-05/0.2737, allocations: 0 / 422.4 MB, free: 3.883 MB / 334.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.001728/0.2754, allocations: 1.286 MB / 423.7 MB, free: 2.547 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.145e-05/0.2755, allocations: 11.97 kB / 423.7 MB, free: 2.535 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001513/0.2756, allocations: 115.5 kB / 423.8 MB, free: 2.422 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001126/0.2768, allocations: 0.8521 MB / 424.7 MB, free: 1.516 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.655e-05/0.2768, allocations: 16.56 kB / 424.7 MB, free: 1.5 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.156e-05/0.2769, allocations: 27.91 kB / 424.7 MB, free: 1.473 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004922/0.2774, allocations: 315.6 kB / 425 MB, free: 1.152 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.07e-05/0.2774, allocations: 0 / 425 MB, free: 1.152 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.735e-05/0.2774, allocations: 8 kB / 425.1 MB, free: 1.145 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.487e-05/0.2774, allocations: 12 kB / 425.1 MB, free: 1.133 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003825/0.2778, allocations: 230.1 kB / 425.3 MB, free: 0.9102 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001665/0.2795, allocations: 1.183 MB / 426.5 MB, free: 15.65 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003433/0.2799, allocations: 202.6 kB / 426.7 MB, free: 15.45 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003025/0.2802, allocations: 226 kB / 426.9 MB, free: 15.22 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008056/0.2882, allocations: 8.557 MB / 435.5 MB, free: 5.273 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.228e-05/0.2883, allocations: 38.56 kB / 435.5 MB, free: 5.227 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 2.565e-06/0.2883, allocations: 4 kB / 435.5 MB, free: 5.223 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.001574/0.2899, allocations: 0.6543 MB / 436.1 MB, free: 4.539 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.694e-05/0.29, allocations: 77.11 kB / 436.2 MB, free: 4.445 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008785/0.2909, allocations: 0.8025 MB / 437 MB, free: 3.625 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.758e-05/0.2909, allocations: 33.64 kB / 437.1 MB, free: 3.586 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003301/0.2912, allocations: 436.7 kB / 437.5 MB, free: 3.152 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.839e-05/0.2913, allocations: 78.84 kB / 437.6 MB, free: 3.074 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.788e-05/0.2914, allocations: 57.84 kB / 437.6 MB, free: 3.012 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001151/0.2915, allocations: 325.9 kB / 437.9 MB, free: 2.688 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001475/0.2917, allocations: 68.2 kB / 438 MB, free: 2.621 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001873/0.2919, allocations: 150.4 kB / 438.1 MB, free: 2.441 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003307/0.2922, allocations: 230.1 kB / 438.4 MB, free: 2.188 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.2922, allocations: 0 / 438.4 MB, free: 2.188 MB / 350.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0006144/0.2928, allocations: 411.7 kB / 438.8 MB, free: 1.777 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.633e-05/0.2929, allocations: 8.219 kB / 438.8 MB, free: 1.77 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.231e-05/0.2929, allocations: 23.98 kB / 438.8 MB, free: 1.746 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003523/0.2933, allocations: 136.8 kB / 438.9 MB, free: 1.609 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001619/0.2934, allocations: 31.97 kB / 439 MB, free: 1.578 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005978/0.294, allocations: 0.7151 MB / 439.7 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002308/0.2943, allocations: 27.86 kB / 439.7 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.513e-05/0.2943, allocations: 16 kB / 439.7 MB, free: 0.7969 MB / 350.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.000224/0.2946, allocations: 197.7 kB / 439.9 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001077/0.2947, allocations: 102.8 kB / 440 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007121/0.2954, allocations: 411.4 kB / 440.4 MB, free: 84 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.709e-06/0.2954, allocations: 0 / 440.4 MB, free: 84 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.61e-06/0.2954, allocations: 0 / 440.4 MB, free: 84 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.659e-06/0.2954, allocations: 0 / 440.4 MB, free: 84 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005888/0.296, allocations: 0.5111 MB / 440.9 MB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.341e-05/0.2961, allocations: 15.98 kB / 441 MB, free: 15.51 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001133/0.2962, allocations: 23.92 kB / 441 MB, free: 15.48 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000249/0.2964, allocations: 136.7 kB / 441.1 MB, free: 15.35 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.036e-05/0.2965, allocations: 11.92 kB / 441.1 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005346/0.297, allocations: 0.6995 MB / 441.8 MB, free: 14.61 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.297, allocations: 0 / 441.8 MB, free: 14.61 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005362/0.2976, allocations: 455.8 kB / 442.3 MB, free: 14.15 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002608/0.2978, allocations: 163.8 kB / 442.4 MB, free: 13.97 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.873e-05/0.2979, allocations: 11.98 kB / 442.4 MB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001973/0.2981, allocations: 12.06 kB / 442.4 MB, free: 13.95 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.327e-05/0.2982, allocations: 15.92 kB / 442.5 MB, free: 13.93 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.018e-05/0.2982, allocations: 8 kB / 442.5 MB, free: 13.92 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005746/0.2988, allocations: 0.5383 MB / 443 MB, free: 13.38 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2988, allocations: 0 / 443 MB, free: 13.38 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005427/0.2993, allocations: 199.8 kB / 443.2 MB, free: 13.18 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.0005204/0.2999, allocations: 300.7 kB / 443.5 MB, free: 12.88 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005457/0.3004, allocations: 285.4 kB / 443.8 MB, free: 12.59 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.3004, allocations: 0 / 443.8 MB, free: 12.59 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002776/0.3007, allocations: 183.3 kB / 444 MB, free: 12.39 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006964/0.3014, allocations: 163.4 kB / 444.1 MB, free: 12.23 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001821/0.3033, allocations: 1.258 MB / 445.4 MB, free: 10.94 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004694/0.3037, allocations: 0.9413 MB / 446.3 MB, free: 9.969 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.672e-05/0.3038, allocations: 51.44 kB / 446.4 MB, free: 9.918 MB / 366.1 MB Notification: Performance of SimCode: time 4.91e-07/0.3038, allocations: 0 / 446.4 MB, free: 9.918 MB / 366.1 MB Notification: Performance of Templates: time 0.0186/0.3225, allocations: 14.52 MB / 460.9 MB, free: 11.41 MB / 382.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.makefile (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) 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) Reference file matches