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.0007808/0.0007809, allocations: 93.22 kB / 17.35 MB, free: 6.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008729/0.0008729, allocations: 201.5 kB / 18.28 MB, free: 5.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.362/1.362, allocations: 227.7 MB / 246.8 MB, free: 11.39 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002247/0.0002247, allocations: 8 kB / 307.7 MB, free: 0.8164 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08545/0.08569, allocations: 51.51 MB / 359.3 MB, free: 13.31 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.004592/0.09032, allocations: 4.907 MB / 364.2 MB, free: 8.379 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1731/0.2634, allocations: 9.114 MB / 373.3 MB, free: 8.93 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00074/0.2642, allocations: 19.28 kB / 373.3 MB, free: 8.93 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001156/0.2654, allocations: 341.4 kB / 373.6 MB, free: 8.922 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002804/0.2682, allocations: 0.6964 MB / 374.3 MB, free: 8.914 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001987/0.2702, allocations: 487.5 kB / 374.8 MB, free: 8.895 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003106/0.2733, allocations: 1.673 MB / 376.5 MB, free: 8.637 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003049/0.2737, allocations: 152.5 kB / 376.6 MB, free: 8.586 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000607/0.2743, allocations: 288.1 kB / 376.9 MB, free: 8.574 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005837/0.2749, allocations: 308.2 kB / 377.2 MB, free: 8.469 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001148/0.275, allocations: 20.5 kB / 377.2 MB, free: 8.465 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001798/0.2768, allocations: 0.6475 MB / 377.9 MB, free: 8.441 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001017/0.2769, allocations: 90.95 kB / 378 MB, free: 8.402 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004989/0.2774, allocations: 420.6 kB / 378.4 MB, free: 8.215 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001747/0.2792, allocations: 1.164 MB / 379.5 MB, free: 7.996 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.2792, allocations: 0 / 379.5 MB, free: 7.996 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.2792, allocations: 0 / 379.5 MB, free: 7.996 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.896e-05/0.2793, allocations: 4 kB / 379.5 MB, free: 7.992 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.002168/0.2814, allocations: 1.147 MB / 380.7 MB, free: 7.211 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.204e-05/0.2815, allocations: 8.438 kB / 380.7 MB, free: 7.211 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004209/0.2819, allocations: 128.1 kB / 380.8 MB, free: 7.156 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001402/0.2833, allocations: 0.8601 MB / 381.7 MB, free: 6.781 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.469e-05/0.2834, allocations: 17.44 kB / 381.7 MB, free: 6.781 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.824e-05/0.2834, allocations: 27.64 kB / 381.7 MB, free: 6.777 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005691/0.284, allocations: 308.8 kB / 382 MB, free: 6.723 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.433e-05/0.284, allocations: 1.828 kB / 382 MB, free: 6.723 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.417e-05/0.2841, allocations: 7.656 kB / 382 MB, free: 6.723 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.575e-05/0.2841, allocations: 8.203 kB / 382 MB, free: 6.723 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004665/0.2846, allocations: 241.3 kB / 382.3 MB, free: 6.715 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001962/0.2865, allocations: 1.189 MB / 383.5 MB, free: 6.273 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003674/0.2869, allocations: 207 kB / 383.7 MB, free: 6.238 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003195/0.2873, allocations: 225.1 kB / 383.9 MB, free: 6.223 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007958/0.2952, allocations: 8.897 MB / 392.8 MB, free: 14.09 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.018e-05/0.2953, allocations: 37.8 kB / 392.8 MB, free: 14.05 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 2.895e-06/0.2953, allocations: 0 / 392.8 MB, free: 14.05 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.001769/0.2971, allocations: 0.6699 MB / 393.5 MB, free: 13.74 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.396e-05/0.2972, allocations: 86.56 kB / 393.6 MB, free: 13.64 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001206/0.2984, allocations: 0.7954 MB / 394.4 MB, free: 13.31 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.835e-05/0.2984, allocations: 32.2 kB / 394.4 MB, free: 13.27 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003752/0.2988, allocations: 449.7 kB / 394.8 MB, free: 12.92 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.164e-05/0.2989, allocations: 75.56 kB / 394.9 MB, free: 12.86 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.624e-05/0.299, allocations: 28.2 kB / 394.9 MB, free: 12.83 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001135/0.2991, allocations: 317.4 kB / 395.3 MB, free: 12.52 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001624/0.2992, allocations: 66.62 kB / 395.3 MB, free: 12.49 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002192/0.2995, allocations: 149.7 kB / 395.5 MB, free: 12.36 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003791/0.2999, allocations: 239.2 kB / 395.7 MB, free: 12.18 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.5e-06/0.2999, allocations: 4.969 kB / 395.7 MB, free: 12.18 MB / 318.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0007836/0.3007, allocations: 408 kB / 396.1 MB, free: 11.97 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.839e-05/0.3007, allocations: 5.719 kB / 396.1 MB, free: 11.97 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.994e-05/0.3007, allocations: 17.89 kB / 396.1 MB, free: 11.97 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003748/0.3011, allocations: 138.3 kB / 396.3 MB, free: 11.92 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001782/0.3013, allocations: 39.89 kB / 396.3 MB, free: 11.91 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007255/0.302, allocations: 0.7059 MB / 397 MB, free: 11.3 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003589/0.3024, allocations: 36.83 kB / 397 MB, free: 11.27 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.048e-05/0.3025, allocations: 17 kB / 397.1 MB, free: 11.27 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.0004112/0.3029, allocations: 200.3 kB / 397.3 MB, free: 11.1 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001391/0.303, allocations: 103.4 kB / 397.4 MB, free: 11.05 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008766/0.3039, allocations: 416.8 kB / 397.8 MB, free: 10.8 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.708e-06/0.3039, allocations: 8.438 kB / 397.8 MB, free: 10.8 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.686e-06/0.3039, allocations: 4.969 kB / 397.8 MB, free: 10.8 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.877e-06/0.304, allocations: 3.938 kB / 397.8 MB, free: 10.79 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007681/0.3047, allocations: 0.4982 MB / 398.3 MB, free: 10.39 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.145e-05/0.3048, allocations: 11.84 kB / 398.3 MB, free: 10.39 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001329/0.3049, allocations: 29.53 kB / 398.3 MB, free: 10.38 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002884/0.3052, allocations: 133.7 kB / 398.4 MB, free: 10.33 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.279e-05/0.3052, allocations: 8.094 kB / 398.5 MB, free: 10.33 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005965/0.3058, allocations: 0.7127 MB / 399.2 MB, free: 9.707 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.873e-06/0.3058, allocations: 1.375 kB / 399.2 MB, free: 9.707 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006485/0.3065, allocations: 460.9 kB / 399.6 MB, free: 9.41 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002452/0.3068, allocations: 171.3 kB / 399.8 MB, free: 9.25 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001327/0.3069, allocations: 6.25 kB / 399.8 MB, free: 9.246 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002485/0.3072, allocations: 8.109 kB / 399.8 MB, free: 9.242 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.268e-05/0.3072, allocations: 17.5 kB / 399.8 MB, free: 9.234 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.191e-05/0.3072, allocations: 8.25 kB / 399.8 MB, free: 9.234 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0007085/0.308, allocations: 0.5452 MB / 400.4 MB, free: 8.91 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.308, allocations: 0 / 400.4 MB, free: 8.91 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007471/0.3087, allocations: 194.9 kB / 400.6 MB, free: 8.879 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.0006269/0.3094, allocations: 298.8 kB / 400.9 MB, free: 8.734 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.000605/0.31, allocations: 271.9 kB / 401.1 MB, free: 8.59 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.31, allocations: 9.438 kB / 401.1 MB, free: 8.582 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000332/0.3103, allocations: 183.4 kB / 401.3 MB, free: 8.465 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008945/0.3112, allocations: 156.2 kB / 401.5 MB, free: 8.387 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002026/0.3133, allocations: 1.49 MB / 403 MB, free: 7.387 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004289/0.3137, allocations: 0.9378 MB / 403.9 MB, free: 6.578 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003903/0.3141, allocations: 116.6 kB / 404 MB, free: 6.512 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.666e-05/0.3142, allocations: 52.31 kB / 404.1 MB, free: 6.5 MB / 318.1 MB Notification: Performance of SimCode: time 3.71e-07/0.3142, allocations: 0 / 404.1 MB, free: 6.5 MB / 318.1 MB Notification: Performance of Templates: time 0.01718/0.3314, allocations: 8.756 MB / 412.8 MB, free: 15.27 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