Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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.1.0-beta.om_Modelica.Electrical.Spice3.Examples.CascodeCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001519/0.001519, allocations: 114.6 kB / 18.46 MB, free: 4.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001627/0.001627, allocations: 211.7 kB / 19.41 MB, free: 3.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.402/1.402, allocations: 227.7 MB / 247.9 MB, free: 10.19 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001888/0.001888, allocations: 67.89 kB / 359.7 MB, free: 12.79 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2195/0.2214, allocations: 50.54 MB / 410.2 MB, free: 1.48 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.006046/0.2275, allocations: 5.304 MB / 415.5 MB, free: 12.16 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01043/0.2379, allocations: 9.134 MB / 424.6 MB, free: 2.984 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000405/0.2383, allocations: 35.69 kB / 424.7 MB, free: 2.949 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008464/0.2391, allocations: 405.4 kB / 425.1 MB, free: 2.551 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001836/0.241, allocations: 0.8419 MB / 425.9 MB, free: 1.703 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001294/0.2423, allocations: 0.5987 MB / 426.5 MB, free: 1.102 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002341/0.2446, allocations: 1.728 MB / 428.2 MB, free: 15.37 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002172/0.2448, allocations: 99.05 kB / 428.3 MB, free: 15.25 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003729/0.2452, allocations: 310.6 kB / 428.6 MB, free: 14.95 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003847/0.2456, allocations: 325.9 kB / 429 MB, free: 14.63 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.878e-05/0.2457, allocations: 32 kB / 429 MB, free: 14.6 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001277/0.2469, allocations: 0.6633 MB / 429.6 MB, free: 13.93 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.765e-05/0.247, allocations: 103.3 kB / 429.7 MB, free: 13.83 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003723/0.2474, allocations: 405.5 kB / 430.1 MB, free: 13.43 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001545/0.2489, allocations: 1.218 MB / 431.4 MB, free: 12.21 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.2489, allocations: 0 / 431.4 MB, free: 12.21 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.2489, allocations: 0 / 431.4 MB, free: 12.21 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.072e-05/0.249, allocations: 3.938 kB / 431.4 MB, free: 12.21 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.002041/0.251, allocations: 1.313 MB / 432.7 MB, free: 10.84 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.701e-05/0.251, allocations: 12.03 kB / 432.7 MB, free: 10.83 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003033/0.2513, allocations: 140.1 kB / 432.8 MB, free: 10.69 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00129/0.2526, allocations: 0.8569 MB / 433.7 MB, free: 9.781 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.002e-05/0.2526, allocations: 24.5 kB / 433.7 MB, free: 9.758 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.97e-05/0.2527, allocations: 24 kB / 433.7 MB, free: 9.734 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005456/0.2533, allocations: 307.7 kB / 434 MB, free: 9.422 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.126e-05/0.2533, allocations: 0 / 434 MB, free: 9.422 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.404e-05/0.2533, allocations: 15.98 kB / 434 MB, free: 9.406 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.638e-06/0.2533, allocations: 4 kB / 434.1 MB, free: 9.402 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004587/0.2538, allocations: 230.1 kB / 434.3 MB, free: 9.176 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001901/0.2557, allocations: 1.194 MB / 435.5 MB, free: 7.91 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003726/0.256, allocations: 182.6 kB / 435.7 MB, free: 7.723 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000326/0.2564, allocations: 193.2 kB / 435.8 MB, free: 7.527 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00951/0.2659, allocations: 8.874 MB / 444.7 MB, free: 13.19 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.459e-05/0.2659, allocations: 34.56 kB / 444.7 MB, free: 13.14 MB / 366.1 MB Notification: Performance of pre-optimization done (n=23): time 2.054e-06/0.2659, allocations: 3.938 kB / 444.8 MB, free: 13.14 MB / 366.1 MB Notification: Performance of matching and sorting (n=23): time 0.001603/0.2675, allocations: 0.6587 MB / 445.4 MB, free: 12.45 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.085e-05/0.2676, allocations: 85.09 kB / 445.5 MB, free: 12.35 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009319/0.2685, allocations: 0.7909 MB / 446.3 MB, free: 11.54 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.84e-05/0.2685, allocations: 29.7 kB / 446.3 MB, free: 11.51 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003785/0.2689, allocations: 449 kB / 446.8 MB, free: 11.06 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.837e-05/0.269, allocations: 87.28 kB / 446.8 MB, free: 10.98 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.195e-05/0.2691, allocations: 53.94 kB / 446.9 MB, free: 10.92 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001275/0.2692, allocations: 317.9 kB / 447.2 MB, free: 10.6 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001454/0.2694, allocations: 68.2 kB / 447.3 MB, free: 10.54 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002107/0.2696, allocations: 154.3 kB / 447.4 MB, free: 10.35 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003442/0.2699, allocations: 228.1 kB / 447.6 MB, free: 10.1 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.446e-06/0.2699, allocations: 0 / 447.6 MB, free: 10.1 MB / 366.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0006199/0.2705, allocations: 409.6 kB / 448 MB, free: 9.691 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.815e-05/0.2705, allocations: 11.98 kB / 448.1 MB, free: 9.68 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.839e-05/0.2706, allocations: 12 kB / 448.1 MB, free: 9.668 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003456/0.2709, allocations: 139.8 kB / 448.2 MB, free: 9.531 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001656/0.2711, allocations: 40.06 kB / 448.2 MB, free: 9.492 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000676/0.2718, allocations: 0.7162 MB / 449 MB, free: 8.75 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002372/0.272, allocations: 27.78 kB / 449 MB, free: 8.723 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.299e-05/0.272, allocations: 12 kB / 449 MB, free: 8.711 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.0002423/0.2723, allocations: 195.3 kB / 449.2 MB, free: 8.512 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001296/0.2724, allocations: 111.3 kB / 449.3 MB, free: 8.402 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007655/0.2732, allocations: 399.3 kB / 449.7 MB, free: 8.004 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.342e-06/0.2732, allocations: 4 kB / 449.7 MB, free: 8 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.527e-06/0.2732, allocations: 0 / 449.7 MB, free: 8 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.829e-06/0.2732, allocations: 7.984 kB / 449.7 MB, free: 7.992 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006334/0.2738, allocations: 0.5151 MB / 450.2 MB, free: 7.43 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.367e-05/0.2738, allocations: 15.94 kB / 450.2 MB, free: 7.414 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001207/0.274, allocations: 15.98 kB / 450.2 MB, free: 7.398 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002813/0.2742, allocations: 136.7 kB / 450.4 MB, free: 7.262 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.139e-05/0.2743, allocations: 15.94 kB / 450.4 MB, free: 7.246 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006328/0.2749, allocations: 0.7007 MB / 451.1 MB, free: 6.52 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.223e-06/0.2749, allocations: 0 / 451.1 MB, free: 6.52 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005827/0.2755, allocations: 451.3 kB / 451.5 MB, free: 6.062 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002262/0.2757, allocations: 180.4 kB / 451.7 MB, free: 5.867 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.321e-05/0.2758, allocations: 4 kB / 451.7 MB, free: 5.863 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002087/0.276, allocations: 7.938 kB / 451.7 MB, free: 5.855 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.542e-05/0.276, allocations: 11.98 kB / 451.7 MB, free: 5.844 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.231e-05/0.2761, allocations: 12 kB / 451.7 MB, free: 5.832 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000647/0.2767, allocations: 0.5422 MB / 452.3 MB, free: 5.281 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2767, allocations: 0 / 452.3 MB, free: 5.281 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006048/0.2773, allocations: 199.6 kB / 452.5 MB, free: 5.086 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.0004997/0.2778, allocations: 299.2 kB / 452.8 MB, free: 4.781 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005753/0.2784, allocations: 271.6 kB / 453 MB, free: 4.504 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.963e-06/0.2784, allocations: 0 / 453 MB, free: 4.504 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002962/0.2787, allocations: 163.9 kB / 453.2 MB, free: 4.332 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007475/0.2794, allocations: 166.1 kB / 453.4 MB, free: 4.168 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001893/0.2813, allocations: 1.253 MB / 454.6 MB, free: 2.883 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005367/0.2819, allocations: 0.9335 MB / 455.5 MB, free: 1.922 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002748/0.2821, allocations: 110.7 kB / 455.7 MB, free: 1.809 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.534e-05/0.2822, allocations: 51.44 kB / 455.7 MB, free: 1.758 MB / 366.1 MB Notification: Performance of SimCode: time 3.4e-07/0.2822, allocations: 0 / 455.7 MB, free: 1.758 MB / 366.1 MB Notification: Performance of Templates: time 0.01774/0.3, allocations: 9.194 MB / 464.9 MB, free: 8.648 MB / 382.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.CascodeCircuit.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.CascodeCircuit.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.CascodeCircuit -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.CascodeCircuit_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/CascodeCircuit/CascodeCircuit.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.CascodeCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches