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.001061/0.001061, allocations: 92.72 kB / 16.98 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001254/0.001254, allocations: 198.8 kB / 17.89 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.263/1.263, allocations: 227.2 MB / 245.9 MB, free: 10.36 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003082/0.0003083, allocations: 4 kB / 306.6 MB, free: 1.438 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09109/0.09142, allocations: 51.49 MB / 358.1 MB, free: 13.95 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.004293/0.09575, allocations: 4.246 MB / 362.3 MB, free: 9.684 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01002/0.1058, allocations: 7.834 MB / 370.1 MB, free: 1.824 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001066/0.1069, allocations: 19.88 kB / 370.2 MB, free: 1.805 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001157/0.1081, allocations: 318.6 kB / 370.5 MB, free: 1.492 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002518/0.1107, allocations: 0.7517 MB / 371.2 MB, free: 0.7383 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001619/0.1123, allocations: 466.7 kB / 371.7 MB, free: 288 kB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1567/0.269, allocations: 1.619 MB / 373.3 MB, free: 9.324 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002634/0.2693, allocations: 142.6 kB / 373.4 MB, free: 9.277 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003787/0.2697, allocations: 278.3 kB / 373.7 MB, free: 9.277 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003293/0.2701, allocations: 291.4 kB / 374 MB, free: 9.273 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.949e-05/0.2701, allocations: 17.47 kB / 374 MB, free: 9.273 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001642/0.2718, allocations: 0.6219 MB / 374.6 MB, free: 9.273 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001067/0.2719, allocations: 82.94 kB / 374.7 MB, free: 9.273 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001902/0.2721, allocations: 199.9 kB / 374.9 MB, free: 9.242 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008814/0.273, allocations: 0.8492 MB / 375.8 MB, free: 9.148 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.315e-06/0.273, allocations: 9.422 kB / 375.8 MB, free: 9.145 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.273, allocations: 0 / 375.8 MB, free: 9.145 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.067e-06/0.273, allocations: 0 / 375.8 MB, free: 9.145 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.001426/0.2744, allocations: 1.148 MB / 376.9 MB, free: 8.367 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.034e-05/0.2745, allocations: 9.625 kB / 376.9 MB, free: 8.367 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002469/0.2747, allocations: 126.4 kB / 377.1 MB, free: 8.312 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001075/0.2758, allocations: 0.8139 MB / 377.9 MB, free: 7.992 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.542e-05/0.2758, allocations: 17.84 kB / 377.9 MB, free: 7.992 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.666e-05/0.2759, allocations: 23.83 kB / 377.9 MB, free: 7.992 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004479/0.2763, allocations: 309.2 kB / 378.2 MB, free: 7.934 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.387e-06/0.2764, allocations: 0 / 378.2 MB, free: 7.934 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.652e-05/0.2764, allocations: 12.16 kB / 378.2 MB, free: 7.93 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.14e-05/0.2764, allocations: 9.859 kB / 378.2 MB, free: 7.93 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003933/0.2768, allocations: 234 kB / 378.5 MB, free: 7.93 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001563/0.2784, allocations: 1.191 MB / 379.6 MB, free: 7.508 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003128/0.2787, allocations: 204.4 kB / 379.8 MB, free: 7.48 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006982/0.2857, allocations: 8.942 MB / 388.8 MB, free: 15.79 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.801e-05/0.2857, allocations: 39.73 kB / 388.8 MB, free: 15.75 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 1.673e-06/0.2857, allocations: 0 / 388.8 MB, free: 15.75 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.001507/0.2873, allocations: 0.6511 MB / 389.5 MB, free: 15.54 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.191e-05/0.2873, allocations: 78.48 kB / 389.6 MB, free: 15.45 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008947/0.2882, allocations: 0.7892 MB / 390.3 MB, free: 15.3 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.571e-05/0.2882, allocations: 29.23 kB / 390.4 MB, free: 15.27 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002705/0.2885, allocations: 445.6 kB / 390.8 MB, free: 15.14 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.333e-05/0.2886, allocations: 76.45 kB / 390.9 MB, free: 15.09 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.289e-05/0.2886, allocations: 11.14 kB / 390.9 MB, free: 15.09 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.804e-05/0.2887, allocations: 319.1 kB / 391.2 MB, free: 14.79 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001398/0.2888, allocations: 65.97 kB / 391.3 MB, free: 14.79 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001732/0.289, allocations: 144.2 kB / 391.4 MB, free: 14.7 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001542/0.2892, allocations: 91.47 kB / 391.5 MB, free: 14.69 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.2892, allocations: 0.9688 kB / 391.5 MB, free: 14.69 MB / 318.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0005686/0.2898, allocations: 414 kB / 391.9 MB, free: 14.59 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.588e-05/0.2898, allocations: 6.219 kB / 391.9 MB, free: 14.59 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.679e-05/0.2898, allocations: 14.34 kB / 391.9 MB, free: 14.59 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003181/0.2902, allocations: 140.8 kB / 392.1 MB, free: 14.58 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001664/0.2903, allocations: 40.19 kB / 392.1 MB, free: 14.58 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005623/0.2909, allocations: 0.7115 MB / 392.8 MB, free: 14.05 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002535/0.2912, allocations: 33.09 kB / 392.8 MB, free: 14.03 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.241e-05/0.2912, allocations: 12.41 kB / 392.9 MB, free: 14.03 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 11} Notification: Performance of prepare postOptimizeDAE: time 0.0002258/0.2914, allocations: 197 kB / 393.1 MB, free: 13.91 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001124/0.2916, allocations: 106 kB / 393.2 MB, free: 13.86 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007801/0.2924, allocations: 415.2 kB / 393.6 MB, free: 13.77 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.44e-06/0.2924, allocations: 5.234 kB / 393.6 MB, free: 13.77 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.2924, allocations: 0 / 393.6 MB, free: 13.77 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.2924, allocations: 5.234 kB / 393.6 MB, free: 13.77 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005538/0.2929, allocations: 0.5052 MB / 394.1 MB, free: 13.57 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.01e-05/0.293, allocations: 11.84 kB / 394.1 MB, free: 13.57 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001194/0.2931, allocations: 31.53 kB / 394.1 MB, free: 13.57 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002441/0.2934, allocations: 128.6 kB / 394.2 MB, free: 13.56 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.846e-05/0.2934, allocations: 9.156 kB / 394.3 MB, free: 13.56 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005076/0.2939, allocations: 0.701 MB / 395 MB, free: 13.04 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.2939, allocations: 0 / 395 MB, free: 13.04 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005214/0.2944, allocations: 460.8 kB / 395.4 MB, free: 12.84 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001992/0.2946, allocations: 174.4 kB / 395.6 MB, free: 12.69 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.362e-05/0.2947, allocations: 14.12 kB / 395.6 MB, free: 12.68 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002109/0.295, allocations: 4.781 kB / 395.6 MB, free: 12.68 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.95e-05/0.295, allocations: 14.08 kB / 395.6 MB, free: 12.68 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.096e-05/0.295, allocations: 10.53 kB / 395.6 MB, free: 12.68 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005836/0.2956, allocations: 0.5307 MB / 396.1 MB, free: 12.57 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2956, allocations: 3.875 kB / 396.2 MB, free: 12.57 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006826/0.2963, allocations: 194 kB / 396.3 MB, free: 12.55 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004433/0.2968, allocations: 291.8 kB / 396.6 MB, free: 12.44 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0005434/0.2973, allocations: 272.3 kB / 396.9 MB, free: 12.38 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.2973, allocations: 0 / 396.9 MB, free: 12.38 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000274/0.2976, allocations: 183.7 kB / 397.1 MB, free: 12.31 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006057/0.2982, allocations: 160.7 kB / 397.2 MB, free: 12.29 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001745/0.3, allocations: 1.39 MB / 398.6 MB, free: 11.56 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004402/0.3004, allocations: 0.9612 MB / 399.6 MB, free: 10.85 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000351/0.3008, allocations: 111.3 kB / 399.7 MB, free: 10.81 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.004e-05/0.3009, allocations: 49.34 kB / 399.7 MB, free: 10.8 MB / 318.1 MB Notification: Performance of SimCode: time 9.61e-07/0.3009, allocations: 0 / 399.7 MB, free: 10.8 MB / 318.1 MB Notification: Performance of Templates: time 0.0148/0.3157, allocations: 8.186 MB / 407.9 MB, free: 5.688 MB / 318.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","../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches