Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.Blocks.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator") translateModel(ModelicaTest.Blocks.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008176/0.0008178, allocations: 98.53 kB / 18.01 MB, free: 5.73 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001115/0.001115, allocations: 206.5 kB / 18.94 MB, free: 4.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.305/1.305, allocations: 227.7 MB / 247.5 MB, free: 11.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1863/0.1863, allocations: 46.18 MB / 345.9 MB, free: 11.36 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002411/0.0002411, allocations: 8 kB / 420.2 MB, free: 19.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09343/0.09369, allocations: 63.56 MB / 483.7 MB, free: 4.164 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.0009402/0.09466, allocations: 0.5372 MB / 484.3 MB, free: 3.629 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001617/0.09483, allocations: 47.88 kB / 484.3 MB, free: 3.582 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.969e-05/0.0949, allocations: 4 kB / 484.3 MB, free: 3.578 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 8.74e-05/0.095, allocations: 7.938 kB / 484.3 MB, free: 3.57 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 1.658e-05/0.09503, allocations: 3.938 kB / 484.3 MB, free: 3.566 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 9.353e-05/0.09512, allocations: 11.98 kB / 484.3 MB, free: 3.555 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 9.569e-05/0.09523, allocations: 39.91 kB / 484.4 MB, free: 3.516 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.762e-05/0.09532, allocations: 15.97 kB / 484.4 MB, free: 3.5 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.84e-05/0.09535, allocations: 11.94 kB / 484.4 MB, free: 3.488 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.516e-05/0.09539, allocations: 11.88 kB / 484.4 MB, free: 3.477 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.102e-05/0.09541, allocations: 0 / 484.4 MB, free: 3.477 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.785e-06/0.09542, allocations: 0 / 484.4 MB, free: 3.477 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.718e-05/0.09544, allocations: 7.984 kB / 484.4 MB, free: 3.469 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.58e-05/0.09549, allocations: 41.58 kB / 484.5 MB, free: 3.422 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 5.782e-05/0.09555, allocations: 27.95 kB / 484.5 MB, free: 3.395 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.09556, allocations: 0 / 484.5 MB, free: 3.395 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.09557, allocations: 3.938 kB / 484.5 MB, free: 3.391 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.426e-06/0.09557, allocations: 0 / 484.5 MB, free: 3.391 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0003626/0.09594, allocations: 339.7 kB / 484.8 MB, free: 3.008 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.798e-05/0.09599, allocations: 8.875 kB / 484.8 MB, free: 3 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.979e-05/0.09602, allocations: 4.938 kB / 484.8 MB, free: 2.996 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001493/0.09618, allocations: 172.3 kB / 485 MB, free: 2.789 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.11e-05/0.0962, allocations: 12.38 kB / 485 MB, free: 2.777 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.96e-05/0.09622, allocations: 4.359 kB / 485 MB, free: 2.773 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001029/0.09633, allocations: 54.19 kB / 485.1 MB, free: 2.715 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.61e-06/0.09634, allocations: 192 / 485.1 MB, free: 2.715 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.168e-05/0.09636, allocations: 3.938 kB / 485.1 MB, free: 2.711 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.943e-06/0.09637, allocations: 4 kB / 485.1 MB, free: 2.707 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.854e-05/0.09642, allocations: 12 kB / 485.1 MB, free: 2.695 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004344/0.09686, allocations: 300.6 kB / 485.4 MB, free: 2.352 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.678e-05/0.09692, allocations: 22.58 kB / 485.4 MB, free: 2.32 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.701e-05/0.09695, allocations: 8.859 kB / 485.4 MB, free: 2.309 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.454e-06/0.09696, allocations: 0 / 485.4 MB, free: 2.309 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.939e-05/0.09706, allocations: 51.47 kB / 485.5 MB, free: 2.246 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 1.272e-06/0.09707, allocations: 4 kB / 485.5 MB, free: 2.242 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001277/0.0972, allocations: 57.72 kB / 485.5 MB, free: 2.18 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.762e-05/0.09724, allocations: 51.41 kB / 485.6 MB, free: 2.117 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.722e-05/0.09733, allocations: 117.8 kB / 485.7 MB, free: 1.992 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.298e-05/0.09735, allocations: 29.64 kB / 485.7 MB, free: 1.957 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.819e-05/0.0974, allocations: 88.14 kB / 485.8 MB, free: 1.867 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.186e-05/0.09742, allocations: 7.906 kB / 485.8 MB, free: 1.859 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.812e-05/0.09745, allocations: 13.72 kB / 485.8 MB, free: 1.84 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.697e-05/0.09756, allocations: 322.8 kB / 486.1 MB, free: 1.516 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.514e-05/0.09758, allocations: 8 kB / 486.2 MB, free: 1.508 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.467e-05/0.09761, allocations: 21.7 kB / 486.2 MB, free: 1.48 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.791e-05/0.09765, allocations: 29.64 kB / 486.2 MB, free: 1.445 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.09766, allocations: 0 / 486.2 MB, free: 1.445 MB / 350.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.234e-05/0.09775, allocations: 53.55 kB / 486.3 MB, free: 1.387 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.341e-05/0.09777, allocations: 10.86 kB / 486.3 MB, free: 1.379 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.871e-06/0.09778, allocations: 4 kB / 486.3 MB, free: 1.375 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.388e-06/0.09779, allocations: 4.031 kB / 486.3 MB, free: 1.371 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.095e-05/0.09783, allocations: 4 kB / 486.3 MB, free: 1.367 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.718e-06/0.09784, allocations: 3.938 kB / 486.3 MB, free: 1.363 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.848e-05/0.09787, allocations: 4 kB / 486.3 MB, free: 1.359 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.973e-06/0.09789, allocations: 7.938 kB / 486.3 MB, free: 1.352 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 (greaterEqualThreshold.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.197e-05/0.09795, allocations: 105.8 kB / 486.4 MB, free: 1.238 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.103e-05/0.09797, allocations: 7.906 kB / 486.4 MB, free: 1.23 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.084e-05/0.098, allocations: 11.89 kB / 486.4 MB, free: 1.215 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.647e-06/0.09801, allocations: 8 kB / 486.4 MB, free: 1.207 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.076e-06/0.09801, allocations: 0 / 486.4 MB, free: 1.207 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.436e-06/0.09802, allocations: 4 kB / 486.4 MB, free: 1.203 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000265/0.09829, allocations: 298.5 kB / 486.7 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.0983, allocations: 0 / 486.7 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.983e-05/0.09834, allocations: 3.984 kB / 486.7 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.09835, allocations: 0 / 486.7 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.032e-06/0.09836, allocations: 0 / 486.7 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.465e-06/0.09837, allocations: 7.938 kB / 486.7 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.09837, allocations: 4 kB / 486.7 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001276/0.09851, allocations: 151.4 kB / 486.9 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.188e-05/0.09855, allocations: 77.11 kB / 487 MB, free: 0.582 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.3e-05/0.09857, allocations: 4 kB / 487 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.776e-05/0.09863, allocations: 11.95 kB / 487 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.294e-05/0.09866, allocations: 0 / 487 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.552e-06/0.09867, allocations: 4 kB / 487 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.716e-05/0.09873, allocations: 99.27 kB / 487.1 MB, free: 476 kB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.09873, allocations: 0 / 487.1 MB, free: 476 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002161/0.09895, allocations: 7.938 kB / 487.1 MB, free: 468 kB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (integrator.y) * Number of discrete variables: 2 (greaterEqualThreshold.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 8.258e-05/0.09904, allocations: 91.25 kB / 487.2 MB, free: 368 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 6.703e-05/0.09911, allocations: 24.16 kB / 487.2 MB, free: 344 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.09912, allocations: 0 / 487.2 MB, free: 344 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 1.727e-05/0.09914, allocations: 8.094 kB / 487.2 MB, free: 336 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002541/0.0994, allocations: 8.094 kB / 487.2 MB, free: 328 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002861/0.0997, allocations: 186.9 kB / 487.4 MB, free: 108 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002392/0.09995, allocations: 0.6809 MB / 488.1 MB, free: 15.4 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.985e-05/0.09998, allocations: 11.44 kB / 488.1 MB, free: 15.39 MB / 366.1 MB Notification: Performance of SimCode: time 3.41e-07/0.09998, allocations: 3.938 kB / 488.1 MB, free: 15.38 MB / 366.1 MB Notification: Performance of Templates: time 0.001816/0.1018, allocations: 0.7109 MB / 488.8 MB, free: 14.67 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/SelfResettingIntegrator/SelfResettingIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches