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.001354/0.001354, allocations: 109.8 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001485/0.001486, allocations: 211.9 kB / 19.25 MB, free: 3.895 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.345/1.345, allocations: 227.4 MB / 247.4 MB, free: 10.59 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001171/0.001172, allocations: 64.27 kB / 307.6 MB, free: 0.6484 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08446/0.08565, allocations: 50.53 MB / 358.1 MB, free: 14.11 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.00586/0.09155, allocations: 5.297 MB / 363.4 MB, free: 8.793 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1574/0.249, allocations: 9.103 MB / 372.5 MB, free: 9.062 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005556/0.2496, allocations: 19.34 kB / 372.6 MB, free: 9.062 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000987/0.2506, allocations: 388.8 kB / 372.9 MB, free: 9.059 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002267/0.2529, allocations: 0.8338 MB / 373.8 MB, free: 9.043 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001597/0.2545, allocations: 0.6005 MB / 374.4 MB, free: 9.027 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002583/0.2571, allocations: 1.701 MB / 376.1 MB, free: 8.785 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002664/0.2574, allocations: 168.6 kB / 376.2 MB, free: 8.734 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004076/0.2578, allocations: 311.1 kB / 376.5 MB, free: 8.695 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003651/0.2582, allocations: 319.5 kB / 376.9 MB, free: 8.578 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.197e-05/0.2582, allocations: 34.25 kB / 376.9 MB, free: 8.574 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001442/0.2597, allocations: 0.6588 MB / 377.6 MB, free: 8.555 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.486e-05/0.2598, allocations: 102.9 kB / 377.7 MB, free: 8.516 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002975/0.2601, allocations: 407.9 kB / 378.1 MB, free: 8.363 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001415/0.2615, allocations: 1.197 MB / 379.2 MB, free: 8.145 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.2615, allocations: 0 / 379.2 MB, free: 8.145 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.2615, allocations: 0 / 379.2 MB, free: 8.145 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.264e-05/0.2616, allocations: 1.656 kB / 379.3 MB, free: 8.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.001639/0.2632, allocations: 1.279 MB / 380.5 MB, free: 7.316 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.711e-05/0.2633, allocations: 10.25 kB / 380.5 MB, free: 7.316 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002767/0.2635, allocations: 123 kB / 380.7 MB, free: 7.262 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001034/0.2646, allocations: 0.8515 MB / 381.5 MB, free: 6.891 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.933e-05/0.2646, allocations: 18.31 kB / 381.5 MB, free: 6.891 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.04e-05/0.2647, allocations: 32.12 kB / 381.6 MB, free: 6.883 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004753/0.2652, allocations: 309.7 kB / 381.9 MB, free: 6.746 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.055e-05/0.2652, allocations: 0 / 381.9 MB, free: 6.746 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.085e-05/0.2652, allocations: 11.08 kB / 381.9 MB, free: 6.738 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.177e-05/0.2652, allocations: 6.984 kB / 381.9 MB, free: 6.738 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004039/0.2656, allocations: 236.3 kB / 382.1 MB, free: 6.656 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001608/0.2673, allocations: 1.186 MB / 383.3 MB, free: 5.934 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003586/0.2676, allocations: 203.2 kB / 383.5 MB, free: 5.832 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002943/0.2679, allocations: 223.2 kB / 383.7 MB, free: 5.73 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00754/0.2755, allocations: 8.885 MB / 392.6 MB, free: 13.56 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.899e-05/0.2755, allocations: 36 kB / 392.6 MB, free: 13.52 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 1.923e-06/0.2756, allocations: 0 / 392.6 MB, free: 13.52 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.001602/0.2772, allocations: 0.6564 MB / 393.3 MB, free: 13.21 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.152e-05/0.2772, allocations: 83.56 kB / 393.4 MB, free: 13.11 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009354/0.2782, allocations: 0.7936 MB / 394.2 MB, free: 12.79 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.843e-05/0.2782, allocations: 34.77 kB / 394.2 MB, free: 12.75 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003419/0.2786, allocations: 443.2 kB / 394.6 MB, free: 12.39 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.187e-05/0.2786, allocations: 76.81 kB / 394.7 MB, free: 12.34 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001045/0.2787, allocations: 62.7 kB / 394.8 MB, free: 12.3 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001093/0.2789, allocations: 320 kB / 395.1 MB, free: 11.99 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001542/0.279, allocations: 70.27 kB / 395.1 MB, free: 11.96 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001897/0.2792, allocations: 151.6 kB / 395.3 MB, free: 11.84 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003503/0.2796, allocations: 229.9 kB / 395.5 MB, free: 11.68 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.611e-06/0.2796, allocations: 5.406 kB / 395.5 MB, free: 11.68 MB / 318.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0006311/0.2802, allocations: 405.9 kB / 395.9 MB, free: 11.49 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.708e-05/0.2803, allocations: 10.53 kB / 395.9 MB, free: 11.49 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.865e-05/0.2803, allocations: 14.34 kB / 395.9 MB, free: 11.49 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000366/0.2807, allocations: 140.9 kB / 396.1 MB, free: 11.45 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001667/0.2808, allocations: 30.34 kB / 396.1 MB, free: 11.45 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006179/0.2815, allocations: 0.7079 MB / 396.8 MB, free: 10.86 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003075/0.2818, allocations: 32.91 kB / 396.9 MB, free: 10.83 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.509e-05/0.2818, allocations: 14.67 kB / 396.9 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.0002546/0.2821, allocations: 198.2 kB / 397.1 MB, free: 10.66 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001238/0.2822, allocations: 102.6 kB / 397.2 MB, free: 10.61 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00082/0.2831, allocations: 416.7 kB / 397.6 MB, free: 10.4 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.224e-06/0.2831, allocations: 9.438 kB / 397.6 MB, free: 10.39 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.2831, allocations: 1.688 kB / 397.6 MB, free: 10.39 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.431e-06/0.2831, allocations: 3.984 kB / 397.6 MB, free: 10.39 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006564/0.2838, allocations: 0.5095 MB / 398.1 MB, free: 9.98 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.444e-05/0.2838, allocations: 11 kB / 398.1 MB, free: 9.98 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001221/0.2839, allocations: 22.27 kB / 398.1 MB, free: 9.973 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002693/0.2842, allocations: 138 kB / 398.3 MB, free: 9.918 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.813e-05/0.2842, allocations: 4.406 kB / 398.3 MB, free: 9.918 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005717/0.2848, allocations: 0.7055 MB / 399 MB, free: 9.305 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.2848, allocations: 0 / 399 MB, free: 9.305 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000569/0.2854, allocations: 467.1 kB / 399.4 MB, free: 9.004 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001858/0.2856, allocations: 171.4 kB / 399.6 MB, free: 8.844 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.161e-05/0.2857, allocations: 5.375 kB / 399.6 MB, free: 8.84 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002142/0.2859, allocations: 6.75 kB / 399.6 MB, free: 8.836 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.844e-05/0.286, allocations: 16.22 kB / 399.6 MB, free: 8.828 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.136e-05/0.286, allocations: 8.25 kB / 399.6 MB, free: 8.828 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006064/0.2866, allocations: 0.5412 MB / 400.2 MB, free: 8.508 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2866, allocations: 0 / 400.2 MB, free: 8.508 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006428/0.2873, allocations: 198.8 kB / 400.4 MB, free: 8.473 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.0005776/0.2879, allocations: 293.4 kB / 400.7 MB, free: 8.332 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0006023/0.2885, allocations: 276.7 kB / 400.9 MB, free: 8.18 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.2885, allocations: 0 / 400.9 MB, free: 8.18 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003022/0.2888, allocations: 187 kB / 401.1 MB, free: 8.059 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008659/0.2897, allocations: 181.9 kB / 401.3 MB, free: 7.953 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002017/0.2917, allocations: 1.261 MB / 402.5 MB, free: 7.195 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000466/0.2922, allocations: 0.942 MB / 403.5 MB, free: 6.383 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.068e-05/0.2923, allocations: 51.69 kB / 403.5 MB, free: 6.375 MB / 318.1 MB Notification: Performance of SimCode: time 3.51e-07/0.2923, allocations: 0 / 403.5 MB, free: 6.375 MB / 318.1 MB Notification: Performance of Templates: time 0.01908/0.3114, allocations: 14.37 MB / 417.9 MB, free: 9.496 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/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