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.001098/0.001098, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001227/0.001228, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.306/1.306, allocations: 227.4 MB / 246.8 MB, free: 10.63 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001112/0.001112, allocations: 59.81 kB / 306.9 MB, free: 0.6641 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08909/0.09022, allocations: 50.54 MB / 357.5 MB, free: 14.12 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.005502/0.09575, allocations: 5.298 MB / 362.8 MB, free: 8.797 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1643/0.2601, allocations: 9.1 MB / 371.9 MB, free: 9.055 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005002/0.2606, allocations: 18.72 kB / 371.9 MB, free: 9.055 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008939/0.2615, allocations: 387.2 kB / 372.3 MB, free: 9.051 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002038/0.2636, allocations: 0.8347 MB / 373.1 MB, free: 9.035 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001453/0.2651, allocations: 0.6012 MB / 373.7 MB, free: 9.02 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002284/0.2673, allocations: 1.701 MB / 375.4 MB, free: 8.781 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002459/0.2676, allocations: 173.5 kB / 375.6 MB, free: 8.727 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003387/0.268, allocations: 310.2 kB / 375.9 MB, free: 8.684 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003112/0.2683, allocations: 318.8 kB / 376.2 MB, free: 8.57 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.02e-05/0.2683, allocations: 29.91 kB / 376.2 MB, free: 8.57 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001245/0.2696, allocations: 0.6609 MB / 376.9 MB, free: 8.547 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.879e-05/0.2697, allocations: 105.3 kB / 377 MB, free: 8.508 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002872/0.27, allocations: 403.9 kB / 377.4 MB, free: 8.355 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001304/0.2713, allocations: 1.201 MB / 378.6 MB, free: 8.137 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.2713, allocations: 1.625 kB / 378.6 MB, free: 8.137 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.2713, allocations: 0 / 378.6 MB, free: 8.137 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.116e-05/0.2713, allocations: 0 / 378.6 MB, free: 8.137 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.001635/0.273, allocations: 1.275 MB / 379.9 MB, free: 7.309 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.21e-05/0.273, allocations: 13.56 kB / 379.9 MB, free: 7.305 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003103/0.2733, allocations: 126.7 kB / 380 MB, free: 7.246 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001116/0.2745, allocations: 0.8512 MB / 380.8 MB, free: 6.883 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.138e-05/0.2745, allocations: 16.34 kB / 380.9 MB, free: 6.883 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.57e-05/0.2746, allocations: 29.06 kB / 380.9 MB, free: 6.879 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000506/0.2751, allocations: 311 kB / 381.2 MB, free: 6.75 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.168e-05/0.2751, allocations: 4 kB / 381.2 MB, free: 6.746 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.844e-05/0.2751, allocations: 9.281 kB / 381.2 MB, free: 6.738 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.266e-05/0.2751, allocations: 10.17 kB / 381.2 MB, free: 6.738 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004206/0.2756, allocations: 234.7 kB / 381.4 MB, free: 6.656 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00157/0.2772, allocations: 1.184 MB / 382.6 MB, free: 5.93 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000329/0.2775, allocations: 196.2 kB / 382.8 MB, free: 5.836 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002948/0.2778, allocations: 225.2 kB / 383 MB, free: 5.73 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007253/0.2851, allocations: 8.883 MB / 391.9 MB, free: 13.57 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.431e-05/0.2851, allocations: 32.06 kB / 391.9 MB, free: 13.53 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 2.284e-06/0.2851, allocations: 4 kB / 392 MB, free: 13.52 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.001561/0.2867, allocations: 0.6591 MB / 392.6 MB, free: 13.21 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.466e-05/0.2867, allocations: 87.09 kB / 392.7 MB, free: 13.11 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009007/0.2877, allocations: 0.7967 MB / 393.5 MB, free: 12.78 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.41e-05/0.2877, allocations: 26.67 kB / 393.5 MB, free: 12.75 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003597/0.2881, allocations: 446.2 kB / 394 MB, free: 12.39 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.68e-05/0.2881, allocations: 80.42 kB / 394 MB, free: 12.34 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.813e-05/0.2882, allocations: 57.38 kB / 394.1 MB, free: 12.3 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001086/0.2883, allocations: 320.9 kB / 394.4 MB, free: 11.99 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001431/0.2885, allocations: 69.52 kB / 394.5 MB, free: 11.97 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000184/0.2887, allocations: 147.8 kB / 394.6 MB, free: 11.85 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003417/0.289, allocations: 238.7 kB / 394.8 MB, free: 11.68 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.759e-06/0.289, allocations: 5.312 kB / 394.9 MB, free: 11.68 MB / 318.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0006099/0.2897, allocations: 404.3 kB / 395.2 MB, free: 11.49 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.714e-05/0.2897, allocations: 8.469 kB / 395.3 MB, free: 11.49 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.845e-05/0.2897, allocations: 14.06 kB / 395.3 MB, free: 11.49 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003418/0.2901, allocations: 145.8 kB / 395.4 MB, free: 11.45 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000167/0.2902, allocations: 33.31 kB / 395.4 MB, free: 11.45 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005958/0.2908, allocations: 0.7021 MB / 396.1 MB, free: 10.86 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000283/0.2911, allocations: 31.78 kB / 396.2 MB, free: 10.84 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.67e-05/0.2912, allocations: 16.78 kB / 396.2 MB, free: 10.83 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.0002462/0.2914, allocations: 198 kB / 396.4 MB, free: 10.66 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000123/0.2916, allocations: 108.4 kB / 396.5 MB, free: 10.61 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008098/0.2924, allocations: 409.6 kB / 396.9 MB, free: 10.4 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.504e-06/0.2924, allocations: 6.219 kB / 396.9 MB, free: 10.4 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.957e-06/0.2924, allocations: 0 / 396.9 MB, free: 10.4 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.46e-06/0.2924, allocations: 2.922 kB / 396.9 MB, free: 10.4 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006173/0.293, allocations: 0.5016 MB / 397.4 MB, free: 9.996 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-05/0.2931, allocations: 14.98 kB / 397.4 MB, free: 9.992 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001237/0.2932, allocations: 20.36 kB / 397.4 MB, free: 9.984 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002638/0.2935, allocations: 141.3 kB / 397.6 MB, free: 9.93 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.036e-05/0.2935, allocations: 8.125 kB / 397.6 MB, free: 9.926 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005707/0.2941, allocations: 0.7095 MB / 398.3 MB, free: 9.312 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.2941, allocations: 0 / 398.3 MB, free: 9.312 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006034/0.2947, allocations: 456.2 kB / 398.7 MB, free: 9.02 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001822/0.2949, allocations: 175.3 kB / 398.9 MB, free: 8.855 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.693e-05/0.295, allocations: 7.922 kB / 398.9 MB, free: 8.852 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000211/0.2952, allocations: 2.438 kB / 398.9 MB, free: 8.852 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.076e-05/0.2953, allocations: 20.86 kB / 398.9 MB, free: 8.84 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.009e-05/0.2953, allocations: 7.969 kB / 399 MB, free: 8.84 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000654/0.296, allocations: 0.5421 MB / 399.5 MB, free: 8.52 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.296, allocations: 0 / 399.5 MB, free: 8.52 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006415/0.2966, allocations: 198 kB / 399.7 MB, free: 8.484 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.0004817/0.2971, allocations: 297.4 kB / 400 MB, free: 8.34 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0005676/0.2977, allocations: 277.5 kB / 400.2 MB, free: 8.188 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.478e-06/0.2977, allocations: 1.438 kB / 400.2 MB, free: 8.188 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002859/0.298, allocations: 185.8 kB / 400.4 MB, free: 8.066 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007946/0.2988, allocations: 173.2 kB / 400.6 MB, free: 7.973 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001742/0.3005, allocations: 1.233 MB / 401.8 MB, free: 7.238 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005007/0.3011, allocations: 0.9343 MB / 402.8 MB, free: 6.434 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003859/0.3015, allocations: 110 kB / 402.9 MB, free: 6.371 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.921e-05/0.3015, allocations: 50 kB / 402.9 MB, free: 6.363 MB / 318.1 MB Notification: Performance of SimCode: time 3.3e-07/0.3015, allocations: 0 / 402.9 MB, free: 6.363 MB / 318.1 MB Notification: Performance of Templates: time 0.01695/0.3185, allocations: 9.101 MB / 412 MB, free: 14.75 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 -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