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.001047/0.001047, allocations: 115.8 kB / 18.4 MB, free: 4.754 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001194/0.001194, allocations: 203.4 kB / 19.35 MB, free: 3.809 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.328/1.328, allocations: 227.4 MB / 247.5 MB, free: 10.37 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001181/0.001181, allocations: 55.94 kB / 308.4 MB, free: 15.91 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08525/0.08645, allocations: 50.54 MB / 358.9 MB, free: 13.36 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.006049/0.09254, allocations: 5.298 MB / 364.2 MB, free: 8.039 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1606/0.2532, allocations: 9.101 MB / 373.3 MB, free: 9.73 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005747/0.2538, allocations: 39 kB / 373.3 MB, free: 9.73 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001005/0.2549, allocations: 390.5 kB / 373.7 MB, free: 9.723 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00244/0.2573, allocations: 0.8276 MB / 374.5 MB, free: 9.715 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002245/0.2596, allocations: 0.6022 MB / 375.1 MB, free: 9.629 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00325/0.2629, allocations: 1.72 MB / 376.9 MB, free: 9.344 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002825/0.2632, allocations: 165.2 kB / 377 MB, free: 9.297 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004634/0.2636, allocations: 306.8 kB / 377.3 MB, free: 9.242 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003407/0.264, allocations: 323 kB / 377.6 MB, free: 9.121 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.445e-05/0.264, allocations: 35.25 kB / 377.7 MB, free: 9.117 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001786/0.2658, allocations: 0.6623 MB / 378.3 MB, free: 9.098 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.978e-05/0.2659, allocations: 101.3 kB / 378.4 MB, free: 9.059 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000339/0.2663, allocations: 409 kB / 378.8 MB, free: 8.906 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001518/0.2678, allocations: 1.211 MB / 380 MB, free: 8.688 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.301e-06/0.2678, allocations: 0 / 380 MB, free: 8.688 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.2678, allocations: 0 / 380 MB, free: 8.688 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.228e-05/0.2679, allocations: 1 kB / 380 MB, free: 8.688 MB / 302.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.002007/0.2699, allocations: 1.278 MB / 381.3 MB, free: 7.859 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.974e-05/0.2699, allocations: 11.16 kB / 381.3 MB, free: 7.859 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002699/0.2702, allocations: 124.1 kB / 381.5 MB, free: 7.805 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001324/0.2715, allocations: 0.8513 MB / 382.3 MB, free: 7.32 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.731e-05/0.2716, allocations: 19.53 kB / 382.3 MB, free: 7.312 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.861e-05/0.2716, allocations: 32.06 kB / 382.4 MB, free: 7.297 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005471/0.2722, allocations: 310.1 kB / 382.7 MB, free: 7.148 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.272e-05/0.2722, allocations: 0 / 382.7 MB, free: 7.148 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.885e-05/0.2722, allocations: 9.375 kB / 382.7 MB, free: 7.141 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.25e-05/0.2723, allocations: 8.234 kB / 382.7 MB, free: 7.141 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004089/0.2727, allocations: 236.8 kB / 382.9 MB, free: 7.059 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001671/0.2744, allocations: 1.182 MB / 384.1 MB, free: 6.332 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003414/0.2747, allocations: 204.5 kB / 384.3 MB, free: 6.23 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003375/0.2751, allocations: 220.7 kB / 384.5 MB, free: 6.129 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008061/0.2831, allocations: 8.886 MB / 393.4 MB, free: 13.96 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.294e-05/0.2832, allocations: 36.42 kB / 393.4 MB, free: 13.92 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 2.134e-06/0.2832, allocations: 2.25 kB / 393.4 MB, free: 13.92 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.001671/0.2849, allocations: 0.649 MB / 394.1 MB, free: 13.61 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.629e-05/0.285, allocations: 88.3 kB / 394.2 MB, free: 13.51 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009841/0.2859, allocations: 0.8 MB / 395 MB, free: 13.18 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.48e-05/0.286, allocations: 26.61 kB / 395 MB, free: 13.15 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003316/0.2863, allocations: 444.4 kB / 395.4 MB, free: 12.79 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.201e-05/0.2864, allocations: 82.77 kB / 395.5 MB, free: 12.73 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.898e-05/0.2865, allocations: 61.41 kB / 395.6 MB, free: 12.69 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001018/0.2866, allocations: 316.6 kB / 395.9 MB, free: 12.38 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001387/0.2868, allocations: 64.05 kB / 395.9 MB, free: 12.35 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001897/0.287, allocations: 153.1 kB / 396.1 MB, free: 12.21 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003413/0.2873, allocations: 226 kB / 396.3 MB, free: 12.05 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.088e-06/0.2873, allocations: 4.812 kB / 396.3 MB, free: 12.05 MB / 318.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0006017/0.2879, allocations: 405.5 kB / 396.7 MB, free: 11.84 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.827e-05/0.288, allocations: 6.531 kB / 396.7 MB, free: 11.84 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.81e-05/0.288, allocations: 13.25 kB / 396.7 MB, free: 11.84 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003638/0.2884, allocations: 142.3 kB / 396.9 MB, free: 11.79 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001622/0.2885, allocations: 40.91 kB / 396.9 MB, free: 11.77 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000611/0.2891, allocations: 0.6953 MB / 397.6 MB, free: 11.17 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003207/0.2895, allocations: 32.84 kB / 397.6 MB, free: 11.14 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.03e-05/0.2895, allocations: 20.67 kB / 397.7 MB, free: 11.14 MB / 318.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.0002344/0.2898, allocations: 201.8 kB / 397.8 MB, free: 10.96 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001208/0.2899, allocations: 102.2 kB / 397.9 MB, free: 10.91 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007693/0.2907, allocations: 402.5 kB / 398.3 MB, free: 10.68 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.593e-06/0.2907, allocations: 14.56 kB / 398.4 MB, free: 10.67 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.2907, allocations: 0 / 398.4 MB, free: 10.67 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.152e-06/0.2907, allocations: 9.359 kB / 398.4 MB, free: 10.66 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006542/0.2914, allocations: 0.5052 MB / 398.9 MB, free: 10.26 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.473e-05/0.2914, allocations: 16.22 kB / 398.9 MB, free: 10.25 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001148/0.2915, allocations: 20.62 kB / 398.9 MB, free: 10.25 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002764/0.2918, allocations: 134.2 kB / 399 MB, free: 10.2 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.204e-05/0.2919, allocations: 15.5 kB / 399.1 MB, free: 10.19 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005709/0.2924, allocations: 0.7023 MB / 399.8 MB, free: 9.578 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.2924, allocations: 0 / 399.8 MB, free: 9.578 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000565/0.293, allocations: 469 kB / 400.2 MB, free: 9.273 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002184/0.2932, allocations: 171.4 kB / 400.4 MB, free: 9.113 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.11e-05/0.2933, allocations: 5.25 kB / 400.4 MB, free: 9.109 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002154/0.2935, allocations: 6.484 kB / 400.4 MB, free: 9.105 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.03e-05/0.2936, allocations: 16.67 kB / 400.4 MB, free: 9.098 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.073e-05/0.2936, allocations: 7.469 kB / 400.4 MB, free: 9.098 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006009/0.2942, allocations: 0.5421 MB / 401 MB, free: 8.777 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2942, allocations: 0 / 401 MB, free: 8.777 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006564/0.2949, allocations: 193.9 kB / 401.1 MB, free: 8.746 MB / 318.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.0004956/0.2954, allocations: 301 kB / 401.4 MB, free: 8.602 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0005569/0.296, allocations: 272.5 kB / 401.7 MB, free: 8.453 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.296, allocations: 0 / 401.7 MB, free: 8.453 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002908/0.2963, allocations: 187.4 kB / 401.9 MB, free: 8.332 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007551/0.2971, allocations: 180.5 kB / 402.1 MB, free: 8.234 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00177/0.2988, allocations: 1.204 MB / 403.3 MB, free: 7.527 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004757/0.2993, allocations: 0.9435 MB / 404.2 MB, free: 6.715 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002631/0.2996, allocations: 108.2 kB / 404.3 MB, free: 6.652 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.65e-05/0.2997, allocations: 51.5 kB / 404.4 MB, free: 6.645 MB / 318.1 MB Notification: Performance of SimCode: time 2.5e-07/0.2997, allocations: 0 / 404.4 MB, free: 6.645 MB / 318.1 MB Notification: Performance of Templates: time 0.01578/0.3155, allocations: 9.102 MB / 413.5 MB, free: 14.84 MB / 334.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 -s gbode -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/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_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches