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.001509/0.001509, allocations: 118.2 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001724/0.001725, allocations: 197.2 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.394/1.394, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001143/0.001143, allocations: 55.91 kB / 358.7 MB, free: 12.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2778/0.279, allocations: 50.54 MB / 409.2 MB, free: 1.594 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.006319/0.2853, allocations: 5.291 MB / 414.5 MB, free: 12.28 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01043/0.2958, allocations: 9.119 MB / 423.6 MB, free: 3.125 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005864/0.2964, allocations: 39.69 kB / 423.7 MB, free: 3.086 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009292/0.2974, allocations: 386.7 kB / 424.1 MB, free: 2.707 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002262/0.2997, allocations: 0.8302 MB / 424.9 MB, free: 1.871 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001562/0.3012, allocations: 0.5987 MB / 425.5 MB, free: 1.27 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002428/0.3037, allocations: 1.713 MB / 427.2 MB, free: 15.55 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002864/0.304, allocations: 171 kB / 427.4 MB, free: 15.37 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004277/0.3044, allocations: 314.5 kB / 427.7 MB, free: 15.06 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003929/0.3048, allocations: 322 kB / 428 MB, free: 14.74 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.254e-05/0.3049, allocations: 32 kB / 428 MB, free: 14.71 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001541/0.3064, allocations: 0.6633 MB / 428.7 MB, free: 14.05 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.266e-05/0.3066, allocations: 99.33 kB / 428.8 MB, free: 13.95 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003671/0.3069, allocations: 405.5 kB / 429.2 MB, free: 13.55 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001436/0.3084, allocations: 1.215 MB / 430.4 MB, free: 12.33 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.3084, allocations: 0 / 430.4 MB, free: 12.33 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.3084, allocations: 0 / 430.4 MB, free: 12.33 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.274e-05/0.3084, allocations: 0 / 430.4 MB, free: 12.33 MB / 350.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.001861/0.3103, allocations: 1.279 MB / 431.7 MB, free: 11 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.333e-05/0.3103, allocations: 8.031 kB / 431.7 MB, free: 10.99 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002934/0.3106, allocations: 127.5 kB / 431.8 MB, free: 10.87 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00121/0.3119, allocations: 0.8481 MB / 432.7 MB, free: 9.965 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.962e-05/0.3119, allocations: 16.56 kB / 432.7 MB, free: 9.949 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.167e-05/0.3119, allocations: 27.98 kB / 432.7 MB, free: 9.922 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005303/0.3125, allocations: 311.6 kB / 433 MB, free: 9.605 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.211e-05/0.3125, allocations: 3.938 kB / 433 MB, free: 9.602 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.441e-05/0.3125, allocations: 12 kB / 433 MB, free: 9.59 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.261e-05/0.3126, allocations: 8 kB / 433 MB, free: 9.582 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004155/0.313, allocations: 234.1 kB / 433.2 MB, free: 9.352 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001708/0.3147, allocations: 1.19 MB / 434.4 MB, free: 8.09 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003805/0.3151, allocations: 198.5 kB / 434.6 MB, free: 7.887 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003206/0.3154, allocations: 229.3 kB / 434.9 MB, free: 7.656 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008354/0.3238, allocations: 8.874 MB / 443.7 MB, free: 13.32 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.943e-05/0.3238, allocations: 38.5 kB / 443.8 MB, free: 13.27 MB / 366.1 MB Notification: Performance of pre-optimization done (n=23): time 1.964e-06/0.3239, allocations: 0 / 443.8 MB, free: 13.27 MB / 366.1 MB Notification: Performance of matching and sorting (n=23): time 0.001588/0.3255, allocations: 0.6611 MB / 444.4 MB, free: 12.58 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.776e-05/0.3255, allocations: 81.11 kB / 444.5 MB, free: 12.48 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009303/0.3265, allocations: 0.7947 MB / 445.3 MB, free: 11.67 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.584e-05/0.3265, allocations: 33.7 kB / 445.3 MB, free: 11.63 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003448/0.3268, allocations: 436.7 kB / 445.8 MB, free: 11.2 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.737e-05/0.3269, allocations: 82.84 kB / 445.8 MB, free: 11.12 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.124e-05/0.327, allocations: 57.84 kB / 445.9 MB, free: 11.05 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001084/0.3271, allocations: 325.8 kB / 446.2 MB, free: 10.73 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001375/0.3273, allocations: 72.2 kB / 446.3 MB, free: 10.66 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001809/0.3275, allocations: 141.9 kB / 446.4 MB, free: 10.49 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003202/0.3278, allocations: 228.5 kB / 446.7 MB, free: 10.23 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.779e-06/0.3278, allocations: 4 kB / 446.7 MB, free: 10.23 MB / 366.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0005789/0.3284, allocations: 407.9 kB / 447.1 MB, free: 9.824 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.746e-05/0.3284, allocations: 12.28 kB / 447.1 MB, free: 9.812 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.941e-05/0.3284, allocations: 12 kB / 447.1 MB, free: 9.801 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003517/0.3288, allocations: 136.8 kB / 447.2 MB, free: 9.664 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001993/0.329, allocations: 35.97 kB / 447.2 MB, free: 9.629 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006581/0.3297, allocations: 0.7151 MB / 448 MB, free: 8.891 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002516/0.33, allocations: 27.67 kB / 448 MB, free: 8.863 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.51e-05/0.33, allocations: 16 kB / 448 MB, free: 8.848 MB / 366.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.0002428/0.3302, allocations: 197.7 kB / 448.2 MB, free: 8.645 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000108/0.3304, allocations: 102.8 kB / 448.3 MB, free: 8.543 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000762/0.3311, allocations: 413.7 kB / 448.7 MB, free: 8.133 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.795e-06/0.3311, allocations: 7.984 kB / 448.7 MB, free: 8.125 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.087e-06/0.3312, allocations: 0 / 448.7 MB, free: 8.125 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.32e-06/0.3312, allocations: 3.984 kB / 448.7 MB, free: 8.121 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005619/0.3317, allocations: 0.5073 MB / 449.2 MB, free: 7.566 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.022e-05/0.3318, allocations: 16 kB / 449.2 MB, free: 7.551 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001253/0.3319, allocations: 23.91 kB / 449.3 MB, free: 7.527 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002502/0.3322, allocations: 128.8 kB / 449.4 MB, free: 7.398 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.309e-05/0.3322, allocations: 7.938 kB / 449.4 MB, free: 7.391 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005745/0.3328, allocations: 0.7122 MB / 450.1 MB, free: 6.652 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.3328, allocations: 0 / 450.1 MB, free: 6.652 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005511/0.3334, allocations: 452.5 kB / 450.5 MB, free: 6.191 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002069/0.3336, allocations: 167.8 kB / 450.7 MB, free: 6.008 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.372e-05/0.3337, allocations: 8.062 kB / 450.7 MB, free: 6 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002301/0.3339, allocations: 11.98 kB / 450.7 MB, free: 5.988 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.195e-05/0.334, allocations: 11.98 kB / 450.7 MB, free: 5.977 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.906e-05/0.334, allocations: 8 kB / 450.8 MB, free: 5.969 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005907/0.3346, allocations: 0.5423 MB / 451.3 MB, free: 5.418 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3346, allocations: 0 / 451.3 MB, free: 5.418 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005481/0.3351, allocations: 199.7 kB / 451.5 MB, free: 5.223 MB / 366.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.0004746/0.3356, allocations: 302.9 kB / 451.8 MB, free: 4.918 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005464/0.3362, allocations: 287.6 kB / 452.1 MB, free: 4.625 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.3362, allocations: 0 / 452.1 MB, free: 4.625 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002909/0.3365, allocations: 175.3 kB / 452.2 MB, free: 4.441 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007461/0.3372, allocations: 176.7 kB / 452.4 MB, free: 4.266 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001753/0.339, allocations: 1.203 MB / 453.6 MB, free: 3.035 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005119/0.3395, allocations: 0.9413 MB / 454.6 MB, free: 2.066 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002863/0.3398, allocations: 106.7 kB / 454.7 MB, free: 1.957 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.471e-05/0.3399, allocations: 51.44 kB / 454.7 MB, free: 1.906 MB / 366.1 MB Notification: Performance of SimCode: time 8.32e-07/0.3399, allocations: 0 / 454.7 MB, free: 1.906 MB / 366.1 MB Notification: Performance of Templates: time 0.0167/0.3566, allocations: 9.159 MB / 463.9 MB, free: 8.812 MB / 382.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