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.001213/0.001213, allocations: 115.9 kB / 18.41 MB, free: 4.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001366/0.001366, allocations: 203.5 kB / 19.36 MB, free: 3.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.372/1.372, allocations: 227.4 MB / 247.5 MB, free: 10.36 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00134/0.00134, allocations: 68.28 kB / 308.4 MB, free: 15.89 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1024/0.1038, allocations: 50.53 MB / 358.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.006108/0.11, allocations: 5.294 MB / 364.2 MB, free: 8.031 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1874/0.2974, allocations: 9.109 MB / 373.3 MB, free: 9.719 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008911/0.2983, allocations: 36.84 kB / 373.3 MB, free: 9.719 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00136/0.2997, allocations: 394.9 kB / 373.7 MB, free: 9.711 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003834/0.3036, allocations: 0.8309 MB / 374.6 MB, free: 9.699 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002368/0.306, allocations: 0.6039 MB / 375.2 MB, free: 9.609 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003651/0.3096, allocations: 1.717 MB / 376.9 MB, free: 9.324 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002979/0.3099, allocations: 161.5 kB / 377 MB, free: 9.277 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004804/0.3104, allocations: 310.4 kB / 377.3 MB, free: 9.227 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003668/0.3108, allocations: 319.8 kB / 377.6 MB, free: 9.109 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.865e-05/0.3109, allocations: 33.56 kB / 377.7 MB, free: 9.105 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001776/0.3127, allocations: 0.6651 MB / 378.3 MB, free: 9.086 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.479e-05/0.3128, allocations: 101.6 kB / 378.4 MB, free: 9.047 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003901/0.3132, allocations: 402.2 kB / 378.8 MB, free: 8.895 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001794/0.315, allocations: 1.211 MB / 380.1 MB, free: 8.676 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.76e-06/0.315, allocations: 1.531 kB / 380.1 MB, free: 8.676 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.315, allocations: 0 / 380.1 MB, free: 8.676 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.433e-05/0.315, allocations: 0 / 380.1 MB, free: 8.676 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.001963/0.317, allocations: 1.283 MB / 381.3 MB, free: 7.844 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.401e-05/0.317, allocations: 9.625 kB / 381.3 MB, free: 7.844 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002956/0.3173, allocations: 127.7 kB / 381.5 MB, free: 7.789 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001371/0.3187, allocations: 0.8473 MB / 382.3 MB, free: 7.297 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.759e-05/0.3188, allocations: 18.56 kB / 382.3 MB, free: 7.289 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.083e-05/0.3188, allocations: 32.56 kB / 382.4 MB, free: 7.273 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005415/0.3194, allocations: 305.8 kB / 382.7 MB, free: 7.129 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.23e-05/0.3194, allocations: 3.938 kB / 382.7 MB, free: 7.125 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.118e-05/0.3195, allocations: 11.22 kB / 382.7 MB, free: 7.117 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.446e-05/0.3195, allocations: 7.562 kB / 382.7 MB, free: 7.117 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004148/0.3199, allocations: 230.7 kB / 382.9 MB, free: 7.039 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001739/0.3216, allocations: 1.182 MB / 384.1 MB, free: 6.312 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003757/0.322, allocations: 214.4 kB / 384.3 MB, free: 6.207 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003059/0.3223, allocations: 223.3 kB / 384.5 MB, free: 6.105 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00938/0.3317, allocations: 8.877 MB / 393.4 MB, free: 13.94 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.975e-05/0.3318, allocations: 38.84 kB / 393.4 MB, free: 13.9 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 2.004e-06/0.3318, allocations: 0 / 393.4 MB, free: 13.9 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.00167/0.3335, allocations: 0.6522 MB / 394.1 MB, free: 13.59 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.257e-05/0.3336, allocations: 83.34 kB / 394.2 MB, free: 13.49 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001184/0.3347, allocations: 0.7935 MB / 395 MB, free: 13.16 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.961e-05/0.3348, allocations: 31.23 kB / 395 MB, free: 13.13 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004058/0.3352, allocations: 449.4 kB / 395.4 MB, free: 12.77 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.181e-05/0.3353, allocations: 78.05 kB / 395.5 MB, free: 12.71 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001155/0.3354, allocations: 65.86 kB / 395.6 MB, free: 12.68 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001406/0.3356, allocations: 319.1 kB / 395.9 MB, free: 12.36 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001645/0.3357, allocations: 64.08 kB / 395.9 MB, free: 12.34 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002179/0.336, allocations: 148.6 kB / 396.1 MB, free: 12.21 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004064/0.3364, allocations: 232 kB / 396.3 MB, free: 12.04 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.491e-06/0.3364, allocations: 4.906 kB / 396.3 MB, free: 12.04 MB / 318.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0007695/0.3372, allocations: 403 kB / 396.7 MB, free: 11.83 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.306e-05/0.3372, allocations: 6.094 kB / 396.7 MB, free: 11.83 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.51e-05/0.3372, allocations: 17.06 kB / 396.7 MB, free: 11.83 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004119/0.3377, allocations: 141.7 kB / 396.9 MB, free: 11.77 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00016/0.3378, allocations: 37.27 kB / 396.9 MB, free: 11.76 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000623/0.3385, allocations: 0.7038 MB / 397.6 MB, free: 11.15 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003357/0.3388, allocations: 33.91 kB / 397.7 MB, free: 11.13 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.778e-05/0.3389, allocations: 11.75 kB / 397.7 MB, free: 11.13 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.0002369/0.3391, allocations: 202.4 kB / 397.9 MB, free: 10.96 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001246/0.3392, allocations: 106.6 kB / 398 MB, free: 10.9 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007837/0.34, allocations: 410.6 kB / 398.4 MB, free: 10.67 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.436e-06/0.34, allocations: 6.188 kB / 398.4 MB, free: 10.66 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.3401, allocations: 0.875 kB / 398.4 MB, free: 10.66 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.428e-06/0.3401, allocations: 4 kB / 398.4 MB, free: 10.66 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006876/0.3408, allocations: 0.5137 MB / 398.9 MB, free: 10.25 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.196e-05/0.3408, allocations: 11 kB / 398.9 MB, free: 10.25 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001158/0.3409, allocations: 20.3 kB / 398.9 MB, free: 10.24 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002908/0.3412, allocations: 136.6 kB / 399.1 MB, free: 10.19 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.358e-05/0.3412, allocations: 14.62 kB / 399.1 MB, free: 10.18 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000603/0.3419, allocations: 0.6989 MB / 399.8 MB, free: 9.57 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.636e-06/0.3419, allocations: 3.984 kB / 399.8 MB, free: 9.566 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006108/0.3425, allocations: 463.9 kB / 400.2 MB, free: 9.266 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002351/0.3427, allocations: 171 kB / 400.4 MB, free: 9.105 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.195e-05/0.3428, allocations: 1.469 kB / 400.4 MB, free: 9.105 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002098/0.343, allocations: 6.531 kB / 400.4 MB, free: 9.102 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.829e-05/0.3431, allocations: 16.92 kB / 400.4 MB, free: 9.094 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.409e-05/0.3431, allocations: 15.27 kB / 400.4 MB, free: 9.086 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006554/0.3438, allocations: 0.5412 MB / 401 MB, free: 8.766 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3438, allocations: 3.938 kB / 401 MB, free: 8.762 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006995/0.3445, allocations: 195.5 kB / 401.2 MB, free: 8.73 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.0005401/0.3451, allocations: 298.1 kB / 401.5 MB, free: 8.59 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0005965/0.3457, allocations: 276.9 kB / 401.7 MB, free: 8.438 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.3457, allocations: 1.562 kB / 401.7 MB, free: 8.438 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002958/0.346, allocations: 189.7 kB / 401.9 MB, free: 8.312 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007471/0.3468, allocations: 164.1 kB / 402.1 MB, free: 8.227 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00181/0.3486, allocations: 1.208 MB / 403.3 MB, free: 7.52 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005518/0.3491, allocations: 0.9346 MB / 404.2 MB, free: 6.715 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000259/0.3494, allocations: 110.7 kB / 404.3 MB, free: 6.652 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.872e-05/0.3495, allocations: 55.17 kB / 404.4 MB, free: 6.641 MB / 318.1 MB Notification: Performance of SimCode: time 2.41e-07/0.3495, allocations: 0 / 404.4 MB, free: 6.641 MB / 318.1 MB Notification: Performance of Templates: time 0.01763/0.3671, allocations: 9.107 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 cvode -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