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.001698/0.001698, allocations: 116.3 kB / 18.45 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002419/0.00242, allocations: 210 kB / 19.4 MB, free: 3.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.311/2.311, allocations: 227.4 MB / 247.6 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001931/0.001931, allocations: 55.91 kB / 359.4 MB, free: 12.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3949/0.3968, allocations: 50.54 MB / 409.9 MB, free: 1.625 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.009444/0.4063, allocations: 5.3 MB / 415.2 MB, free: 12.3 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01925/0.4256, allocations: 9.115 MB / 424.3 MB, free: 3.152 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001222/0.4269, allocations: 35.69 kB / 424.4 MB, free: 3.117 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001669/0.4287, allocations: 394.7 kB / 424.7 MB, free: 2.73 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004407/0.4331, allocations: 0.8302 MB / 425.6 MB, free: 1.895 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003183/0.4363, allocations: 0.5909 MB / 426.2 MB, free: 1.301 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00473/0.4411, allocations: 1.717 MB / 427.9 MB, free: 15.58 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007333/0.4419, allocations: 163 kB / 428 MB, free: 15.4 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001139/0.4431, allocations: 322.5 kB / 428.4 MB, free: 15.09 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001116/0.4443, allocations: 321.9 kB / 428.7 MB, free: 14.77 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001868/0.4445, allocations: 28 kB / 428.7 MB, free: 14.74 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003683/0.4482, allocations: 0.6634 MB / 429.4 MB, free: 14.08 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002532/0.4485, allocations: 103.3 kB / 429.5 MB, free: 13.98 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009758/0.4495, allocations: 405.5 kB / 429.9 MB, free: 13.58 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003894/0.4534, allocations: 1.215 MB / 431.1 MB, free: 12.36 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.845e-06/0.4535, allocations: 0 / 431.1 MB, free: 12.36 MB / 350.1 MB Notification: Performance of FrontEnd: time 7.664e-06/0.4535, allocations: 0 / 431.1 MB, free: 12.36 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.31e-05/0.4536, allocations: 3.938 kB / 431.1 MB, free: 12.36 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.003955/0.4576, allocations: 1.267 MB / 432.3 MB, free: 11.04 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.132e-05/0.4576, allocations: 12.03 kB / 432.4 MB, free: 11.02 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004935/0.4581, allocations: 131.6 kB / 432.5 MB, free: 10.89 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002199/0.4604, allocations: 0.8482 MB / 433.3 MB, free: 9.992 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.836e-05/0.4604, allocations: 24.44 kB / 433.4 MB, free: 9.969 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.577e-05/0.4605, allocations: 27.98 kB / 433.4 MB, free: 9.941 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007914/0.4613, allocations: 303.7 kB / 433.7 MB, free: 9.633 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.707e-05/0.4614, allocations: 0 / 433.7 MB, free: 9.633 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.424e-05/0.4614, allocations: 16 kB / 433.7 MB, free: 9.617 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.044e-05/0.4615, allocations: 7.984 kB / 433.7 MB, free: 9.609 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006236/0.4621, allocations: 238.1 kB / 433.9 MB, free: 9.375 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002738/0.4648, allocations: 1.19 MB / 435.1 MB, free: 8.113 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005064/0.4654, allocations: 190.6 kB / 435.3 MB, free: 7.918 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000452/0.4658, allocations: 233.2 kB / 435.5 MB, free: 7.684 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01365/0.4795, allocations: 8.863 MB / 444.4 MB, free: 13.36 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.832e-05/0.4796, allocations: 42.56 kB / 444.4 MB, free: 13.3 MB / 366.1 MB Notification: Performance of pre-optimization done (n=23): time 4.198e-06/0.4796, allocations: 3.938 kB / 444.5 MB, free: 13.3 MB / 366.1 MB Notification: Performance of matching and sorting (n=23): time 0.002446/0.4821, allocations: 0.662 MB / 445.1 MB, free: 12.61 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.755e-05/0.4822, allocations: 85.11 kB / 445.2 MB, free: 12.51 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001438/0.4836, allocations: 0.7947 MB / 446 MB, free: 11.7 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.17e-05/0.4837, allocations: 29.7 kB / 446 MB, free: 11.66 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000496/0.4842, allocations: 436.7 kB / 446.4 MB, free: 11.23 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000109/0.4843, allocations: 78.84 kB / 446.5 MB, free: 11.15 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001297/0.4845, allocations: 61.84 kB / 446.6 MB, free: 11.08 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001487/0.4846, allocations: 317.9 kB / 446.9 MB, free: 10.77 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002212/0.4849, allocations: 72.2 kB / 447 MB, free: 10.7 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002694/0.4852, allocations: 145.9 kB / 447.1 MB, free: 10.52 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005079/0.4857, allocations: 237.8 kB / 447.3 MB, free: 10.26 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.489e-06/0.4857, allocations: 0 / 447.3 MB, free: 10.26 MB / 366.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0009989/0.4867, allocations: 404 kB / 447.7 MB, free: 9.855 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.099e-05/0.4868, allocations: 8 kB / 447.7 MB, free: 9.848 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.159e-05/0.4868, allocations: 12 kB / 447.8 MB, free: 9.836 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005619/0.4874, allocations: 143.9 kB / 447.9 MB, free: 9.695 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002548/0.4877, allocations: 39.91 kB / 447.9 MB, free: 9.656 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00099/0.4887, allocations: 0.7067 MB / 448.6 MB, free: 8.926 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004453/0.4891, allocations: 31.67 kB / 448.7 MB, free: 8.895 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.286e-05/0.4892, allocations: 16 kB / 448.7 MB, free: 8.879 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.0003836/0.4896, allocations: 197.7 kB / 448.9 MB, free: 8.676 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002298/0.4898, allocations: 98.88 kB / 449 MB, free: 8.578 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001153/0.491, allocations: 427.2 kB / 449.4 MB, free: 8.152 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.857e-06/0.491, allocations: 4 kB / 449.4 MB, free: 8.148 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.246e-06/0.491, allocations: 3.984 kB / 449.4 MB, free: 8.145 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.721e-06/0.491, allocations: 0 / 449.4 MB, free: 8.145 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009375/0.492, allocations: 0.5073 MB / 449.9 MB, free: 7.59 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.634e-05/0.492, allocations: 16 kB / 449.9 MB, free: 7.574 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001722/0.4922, allocations: 19.97 kB / 449.9 MB, free: 7.555 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004249/0.4927, allocations: 132.8 kB / 450.1 MB, free: 7.422 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.316e-05/0.4927, allocations: 7.938 kB / 450.1 MB, free: 7.414 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008863/0.4936, allocations: 0.7084 MB / 450.8 MB, free: 6.68 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.394e-06/0.4936, allocations: 0 / 450.8 MB, free: 6.68 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008625/0.4945, allocations: 444.5 kB / 451.2 MB, free: 6.227 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003491/0.4949, allocations: 171.8 kB / 451.4 MB, free: 6.039 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001295/0.495, allocations: 4 kB / 451.4 MB, free: 6.035 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003489/0.4954, allocations: 11.98 kB / 451.4 MB, free: 6.023 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.589e-05/0.4954, allocations: 16.05 kB / 451.4 MB, free: 6.008 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.359e-05/0.4955, allocations: 11.94 kB / 451.4 MB, free: 5.996 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001051/0.4965, allocations: 0.5423 MB / 452 MB, free: 5.445 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.1e-07/0.4966, allocations: 0 / 452 MB, free: 5.445 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000917/0.4975, allocations: 199.7 kB / 452.2 MB, free: 5.25 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.0007704/0.4983, allocations: 295.3 kB / 452.5 MB, free: 4.949 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008891/0.4992, allocations: 287.8 kB / 452.7 MB, free: 4.656 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.077e-06/0.4992, allocations: 0 / 452.7 MB, free: 4.656 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004384/0.4996, allocations: 182 kB / 452.9 MB, free: 4.469 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001243/0.5009, allocations: 167.8 kB / 453.1 MB, free: 4.305 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003002/0.5039, allocations: 1.253 MB / 454.3 MB, free: 3.02 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007289/0.5047, allocations: 0.9374 MB / 455.3 MB, free: 2.055 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001441/0.5049, allocations: 51.44 kB / 455.3 MB, free: 2.004 MB / 366.1 MB Notification: Performance of SimCode: time 7.91e-07/0.5049, allocations: 0 / 455.3 MB, free: 2.004 MB / 366.1 MB Notification: Performance of Templates: time 0.02997/0.5348, allocations: 14.59 MB / 469.9 MB, free: 3.438 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/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