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.001657/0.001657, allocations: 112.3 kB / 17.74 MB, free: 5.293 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.001951/0.001951, allocations: 187 kB / 18.67 MB, free: 4.375 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.345/1.345, allocations: 222.9 MB / 242.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001076/0.001077, allocations: 55.91 kB / 352 MB, free: 3.242 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2275/0.2286, allocations: 49.43 MB / 401.4 MB, free: 8.734 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.005549/0.2342, allocations: 5.286 MB / 406.7 MB, free: 3.562 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01063/0.2448, allocations: 9.065 MB / 415.7 MB, free: 10.46 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000791/0.2457, allocations: 43.62 kB / 415.8 MB, free: 10.41 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001055/0.2467, allocations: 389.5 kB / 416.2 MB, free: 10.03 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00264/0.2494, allocations: 0.8341 MB / 417 MB, free: 9.191 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00173/0.2512, allocations: 0.5831 MB / 417.6 MB, free: 8.605 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002641/0.2538, allocations: 1.701 MB / 419.3 MB, free: 6.898 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003174/0.2542, allocations: 163 kB / 419.4 MB, free: 6.727 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005399/0.2547, allocations: 310.5 kB / 419.8 MB, free: 6.422 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005356/0.2553, allocations: 318 kB / 420.1 MB, free: 6.109 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001016/0.2554, allocations: 28 kB / 420.1 MB, free: 6.082 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001718/0.2571, allocations: 0.6478 MB / 420.7 MB, free: 5.434 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001097/0.2572, allocations: 107.3 kB / 420.8 MB, free: 5.328 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004859/0.2577, allocations: 405.5 kB / 421.2 MB, free: 4.93 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001788/0.2595, allocations: 1.199 MB / 422.4 MB, free: 3.727 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.2595, allocations: 0 / 422.4 MB, free: 3.727 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.482e-06/0.2596, allocations: 0 / 422.4 MB, free: 3.727 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.414e-05/0.2596, allocations: 0 / 422.4 MB, free: 3.727 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.002066/0.2617, allocations: 1.283 MB / 423.7 MB, free: 2.391 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.639e-05/0.2617, allocations: 8.031 kB / 423.7 MB, free: 2.383 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001706/0.2619, allocations: 115.5 kB / 423.8 MB, free: 2.27 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001199/0.2631, allocations: 0.8444 MB / 424.7 MB, free: 1.371 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.068e-05/0.2631, allocations: 16.56 kB / 424.7 MB, free: 1.355 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.517e-05/0.2632, allocations: 31.84 kB / 424.7 MB, free: 1.324 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005383/0.2637, allocations: 311.7 kB / 425 MB, free: 1.008 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.939e-06/0.2638, allocations: 0 / 425 MB, free: 1.008 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.434e-05/0.2638, allocations: 16 kB / 425.1 MB, free: 0.9922 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.299e-05/0.2638, allocations: 11.94 kB / 425.1 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004451/0.2643, allocations: 234.1 kB / 425.3 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001822/0.2661, allocations: 1.183 MB / 426.5 MB, free: 15.5 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003599/0.2665, allocations: 198.7 kB / 426.7 MB, free: 15.3 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003185/0.2668, allocations: 233.9 kB / 426.9 MB, free: 15.06 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008111/0.2749, allocations: 8.561 MB / 435.5 MB, free: 5.109 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.824e-05/0.275, allocations: 30.56 kB / 435.5 MB, free: 5.07 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.933e-06/0.275, allocations: 4 kB / 435.5 MB, free: 5.066 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.001546/0.2766, allocations: 0.6582 MB / 436.2 MB, free: 4.379 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.711e-05/0.2766, allocations: 77.11 kB / 436.2 MB, free: 4.285 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009265/0.2775, allocations: 0.8064 MB / 437 MB, free: 3.461 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.473e-05/0.2776, allocations: 25.7 kB / 437.1 MB, free: 3.43 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003377/0.2779, allocations: 440.7 kB / 437.5 MB, free: 2.992 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.713e-05/0.278, allocations: 74.84 kB / 437.6 MB, free: 2.918 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.304e-05/0.2781, allocations: 65.84 kB / 437.6 MB, free: 2.848 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001029/0.2782, allocations: 321.9 kB / 437.9 MB, free: 2.527 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001344/0.2783, allocations: 64.2 kB / 438 MB, free: 2.465 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001841/0.2785, allocations: 154.4 kB / 438.2 MB, free: 2.281 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003348/0.2789, allocations: 234 kB / 438.4 MB, free: 2.023 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.2789, allocations: 0 / 438.4 MB, free: 2.023 MB / 350.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0005928/0.2795, allocations: 412 kB / 438.8 MB, free: 1.613 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.562e-05/0.2795, allocations: 12 kB / 438.8 MB, free: 1.602 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.933e-05/0.2796, allocations: 16 kB / 438.8 MB, free: 1.586 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003403/0.2799, allocations: 136.8 kB / 438.9 MB, free: 1.449 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001676/0.2801, allocations: 35.91 kB / 439 MB, free: 1.414 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006021/0.2807, allocations: 0.7075 MB / 439.7 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002398/0.2809, allocations: 23.88 kB / 439.7 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.539e-05/0.281, allocations: 19.98 kB / 439.7 MB, free: 0.6406 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.0002323/0.2812, allocations: 197.7 kB / 439.9 MB, free: 448 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001338/0.2814, allocations: 102.8 kB / 440 MB, free: 344 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007547/0.2821, allocations: 411.4 kB / 440.4 MB, free: 15.93 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.12e-06/0.2821, allocations: 0 / 440.4 MB, free: 15.93 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.2822, allocations: 0 / 440.4 MB, free: 15.93 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.661e-06/0.2822, allocations: 3.984 kB / 440.4 MB, free: 15.92 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005663/0.2827, allocations: 0.5034 MB / 440.9 MB, free: 15.37 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.036e-05/0.2828, allocations: 16 kB / 440.9 MB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001241/0.2829, allocations: 19.97 kB / 441 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003094/0.2832, allocations: 143.7 kB / 441.1 MB, free: 15.2 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.181e-05/0.2832, allocations: 11.94 kB / 441.1 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005605/0.2838, allocations: 0.7006 MB / 441.8 MB, free: 14.46 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.2838, allocations: 0 / 441.8 MB, free: 14.46 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005422/0.2844, allocations: 450.3 kB / 442.3 MB, free: 14 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001697/0.2846, allocations: 171.8 kB / 442.4 MB, free: 13.81 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.114e-05/0.2846, allocations: 12 kB / 442.4 MB, free: 13.8 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002188/0.2849, allocations: 7.984 kB / 442.4 MB, free: 13.79 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.771e-05/0.2849, allocations: 19.92 kB / 442.5 MB, free: 13.77 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.852e-05/0.285, allocations: 8 kB / 442.5 MB, free: 13.77 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005936/0.2855, allocations: 0.5383 MB / 443 MB, free: 13.22 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.2856, allocations: 0 / 443 MB, free: 13.22 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005538/0.2861, allocations: 199.8 kB / 443.2 MB, free: 13.02 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.0004988/0.2866, allocations: 303.1 kB / 443.5 MB, free: 12.71 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005539/0.2872, allocations: 279.1 kB / 443.8 MB, free: 12.43 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.2872, allocations: 0 / 443.8 MB, free: 12.43 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002826/0.2875, allocations: 183.3 kB / 444 MB, free: 12.24 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000726/0.2882, allocations: 156.8 kB / 444.1 MB, free: 12.08 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00175/0.29, allocations: 1.261 MB / 445.4 MB, free: 10.78 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004222/0.2904, allocations: 0.9413 MB / 446.3 MB, free: 9.812 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.594e-05/0.2905, allocations: 51.44 kB / 446.4 MB, free: 9.762 MB / 366.1 MB Notification: Performance of SimCode: time 3.21e-07/0.2905, allocations: 0 / 446.4 MB, free: 9.762 MB / 366.1 MB Notification: Performance of Templates: time 0.01731/0.3078, allocations: 14.41 MB / 460.8 MB, free: 11.38 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