Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008225/0.0008226, allocations: 98.16 kB / 16.3 MB, free: 5.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008258/0.0008258, allocations: 180.7 kB / 17.19 MB, free: 5.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.235/1.235, allocations: 223.2 MB / 241.1 MB, free: 368 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002323/0.0002323, allocations: 11.94 kB / 300.7 MB, free: 6.477 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08615/0.0864, allocations: 50.4 MB / 351.1 MB, free: 4.059 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.004044/0.09048, allocations: 4.237 MB / 355.4 MB, free: 15.8 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00807/0.09857, allocations: 7.795 MB / 363.2 MB, free: 7.984 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004748/0.09907, allocations: 19.88 kB / 363.2 MB, free: 7.965 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006714/0.09976, allocations: 318.5 kB / 363.5 MB, free: 7.652 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001637/0.1014, allocations: 0.744 MB / 364.2 MB, free: 6.906 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001106/0.1025, allocations: 466.7 kB / 364.7 MB, free: 6.449 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002266/0.1048, allocations: 1.615 MB / 366.3 MB, free: 4.832 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002334/0.1051, allocations: 131.1 kB / 366.4 MB, free: 4.688 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002998/0.1054, allocations: 286.6 kB / 366.7 MB, free: 4.406 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000311/0.1057, allocations: 290.3 kB / 367 MB, free: 4.121 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.153e-05/0.1057, allocations: 16 kB / 367 MB, free: 4.105 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00115/0.1069, allocations: 0.6089 MB / 367.6 MB, free: 3.496 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.905e-05/0.107, allocations: 83.39 kB / 367.7 MB, free: 3.414 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001381/0.1071, allocations: 193.2 kB / 367.9 MB, free: 3.219 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000786/0.1079, allocations: 0.853 MB / 368.7 MB, free: 2.363 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.625e-06/0.1079, allocations: 0 / 368.7 MB, free: 2.363 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.1079, allocations: 0 / 368.7 MB, free: 2.363 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.125e-06/0.108, allocations: 0 / 368.7 MB, free: 2.363 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.001588/0.1095, allocations: 1.143 MB / 369.9 MB, free: 1.168 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.578e-05/0.1096, allocations: 8.031 kB / 369.9 MB, free: 1.16 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001238/0.1097, allocations: 110.7 kB / 370 MB, free: 1.051 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00113/0.1109, allocations: 0.809 MB / 370.8 MB, free: 192 kB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.709e-05/0.1109, allocations: 20.5 kB / 370.8 MB, free: 172 kB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.899e-05/0.1109, allocations: 24 kB / 370.9 MB, free: 148 kB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.148/0.2589, allocations: 307.7 kB / 371.2 MB, free: 25.47 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.599e-05/0.259, allocations: 3.094 kB / 371.2 MB, free: 25.47 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.434e-05/0.259, allocations: 10.75 kB / 371.2 MB, free: 25.47 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.781e-05/0.259, allocations: 8.031 kB / 371.2 MB, free: 25.47 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004647/0.2595, allocations: 235 kB / 371.4 MB, free: 25.47 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00176/0.2613, allocations: 1.197 MB / 372.6 MB, free: 25.08 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003271/0.2616, allocations: 199 kB / 372.8 MB, free: 25.06 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006765/0.2684, allocations: 8.618 MB / 381.4 MB, free: 17.57 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.633e-05/0.2684, allocations: 35.97 kB / 381.5 MB, free: 17.53 MB / 302.1 MB Notification: Performance of pre-optimization done (n=23): time 2.014e-06/0.2684, allocations: 3.688 kB / 381.5 MB, free: 17.53 MB / 302.1 MB Notification: Performance of matching and sorting (n=23): time 0.001436/0.2699, allocations: 0.6493 MB / 382.1 MB, free: 17.24 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.563e-05/0.2699, allocations: 79.66 kB / 382.2 MB, free: 17.15 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008229/0.2708, allocations: 0.7912 MB / 383 MB, free: 16.82 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.746e-05/0.2708, allocations: 26.83 kB / 383 MB, free: 16.79 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000254/0.271, allocations: 443.8 kB / 383.4 MB, free: 16.44 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.496e-05/0.2711, allocations: 86.55 kB / 383.5 MB, free: 16.38 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.19e-05/0.2711, allocations: 4.906 kB / 383.5 MB, free: 16.37 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 3.943e-05/0.2712, allocations: 319.6 kB / 383.8 MB, free: 16.06 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001348/0.2713, allocations: 66.05 kB / 383.9 MB, free: 16.04 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001568/0.2715, allocations: 143.2 kB / 384 MB, free: 15.93 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001561/0.2716, allocations: 96.89 kB / 384.1 MB, free: 15.88 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.604e-06/0.2716, allocations: 0 / 384.1 MB, free: 15.88 MB / 302.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0005327/0.2722, allocations: 412.2 kB / 384.5 MB, free: 15.69 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.713e-05/0.2722, allocations: 13.03 kB / 384.6 MB, free: 15.69 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.797e-05/0.2722, allocations: 14.53 kB / 384.6 MB, free: 15.69 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003293/0.2726, allocations: 136.9 kB / 384.7 MB, free: 15.66 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001701/0.2728, allocations: 41.69 kB / 384.7 MB, free: 15.65 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004856/0.2732, allocations: 0.7038 MB / 385.4 MB, free: 15.06 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002399/0.2735, allocations: 30.75 kB / 385.5 MB, free: 15.04 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.358e-05/0.2735, allocations: 17.69 kB / 385.5 MB, free: 15.04 MB / 302.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.0001886/0.2737, allocations: 195.6 kB / 385.7 MB, free: 14.87 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.378e-05/0.2738, allocations: 104.5 kB / 385.8 MB, free: 14.82 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007726/0.2746, allocations: 428.7 kB / 386.2 MB, free: 14.62 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.661e-06/0.2746, allocations: 2.688 kB / 386.2 MB, free: 14.62 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.319e-06/0.2746, allocations: 3.938 kB / 386.2 MB, free: 14.62 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.937e-06/0.2746, allocations: 4.75 kB / 386.2 MB, free: 14.62 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005488/0.2752, allocations: 0.5061 MB / 386.7 MB, free: 14.3 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.902e-05/0.2752, allocations: 11.7 kB / 386.7 MB, free: 14.3 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001178/0.2753, allocations: 22.2 kB / 386.8 MB, free: 14.3 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002542/0.2756, allocations: 134.9 kB / 386.9 MB, free: 14.27 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.039e-05/0.2756, allocations: 9.453 kB / 386.9 MB, free: 14.27 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004347/0.2761, allocations: 0.7025 MB / 387.6 MB, free: 13.67 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.2761, allocations: 0.7969 kB / 387.6 MB, free: 13.67 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000479/0.2766, allocations: 454 kB / 388 MB, free: 13.4 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001666/0.2768, allocations: 170.8 kB / 388.2 MB, free: 13.25 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.12e-05/0.2769, allocations: 5.719 kB / 388.2 MB, free: 13.25 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002183/0.2771, allocations: 3.984 kB / 388.2 MB, free: 13.25 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.149e-05/0.2771, allocations: 25.92 kB / 388.2 MB, free: 13.23 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.975e-05/0.2772, allocations: 8.703 kB / 388.3 MB, free: 13.23 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005759/0.2777, allocations: 0.533 MB / 388.8 MB, free: 13 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.2778, allocations: 6.625 kB / 388.8 MB, free: 12.99 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005471/0.2783, allocations: 195.4 kB / 389 MB, free: 12.97 MB / 302.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.0003868/0.2787, allocations: 279 kB / 389.3 MB, free: 12.87 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000534/0.2792, allocations: 277.4 kB / 389.5 MB, free: 12.74 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.2793, allocations: 4 kB / 389.5 MB, free: 12.74 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002605/0.2795, allocations: 184.2 kB / 389.7 MB, free: 12.64 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005852/0.2801, allocations: 151.5 kB / 389.9 MB, free: 12.58 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001617/0.2817, allocations: 1.389 MB / 391.2 MB, free: 11.77 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003771/0.2821, allocations: 0.9571 MB / 392.2 MB, free: 11.06 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003479/0.2825, allocations: 115.9 kB / 392.3 MB, free: 11.02 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.88e-05/0.2826, allocations: 54.17 kB / 392.4 MB, free: 11.01 MB / 302.1 MB Notification: Performance of SimCode: time 2.61e-07/0.2826, allocations: 0 / 392.4 MB, free: 11.01 MB / 302.1 MB Notification: Performance of Templates: time 0.01335/0.2959, allocations: 8.149 MB / 400.5 MB, free: 6.797 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.sim & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches