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.00122/0.00122, allocations: 110.9 kB / 18.41 MB, free: 4.562 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001421/0.001421, allocations: 200.5 kB / 19.36 MB, free: 3.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.23/1.23, allocations: 227.4 MB / 247.5 MB, free: 10.42 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1883/0.1883, allocations: 46.1 MB / 344.9 MB, free: 11.54 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00129/0.00129, allocations: 72.45 kB / 419 MB, free: 19.06 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09006/0.09137, allocations: 62.44 MB / 481.5 MB, free: 4.582 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.001957/0.09336, allocations: 0.8051 MB / 482.3 MB, free: 3.781 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001718/0.09354, allocations: 55.8 kB / 482.3 MB, free: 3.727 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.946e-05/0.0936, allocations: 0 / 482.3 MB, free: 3.727 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.157e-05/0.09371, allocations: 11.88 kB / 482.3 MB, free: 3.715 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 1.359e-05/0.09373, allocations: 0 / 482.3 MB, free: 3.715 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 9.313e-05/0.09383, allocations: 19.92 kB / 482.3 MB, free: 3.695 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 9.115e-05/0.09393, allocations: 39.91 kB / 482.4 MB, free: 3.656 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.86e-05/0.09402, allocations: 15.98 kB / 482.4 MB, free: 3.641 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.056e-05/0.09405, allocations: 15.92 kB / 482.4 MB, free: 3.625 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.439e-05/0.09409, allocations: 7.938 kB / 482.4 MB, free: 3.617 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.291e-05/0.09411, allocations: 7.984 kB / 482.4 MB, free: 3.609 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.002e-05/0.09412, allocations: 4 kB / 482.4 MB, free: 3.605 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.756e-05/0.09414, allocations: 7.984 kB / 482.4 MB, free: 3.598 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.945e-05/0.09418, allocations: 23.81 kB / 482.5 MB, free: 3.574 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 7.536e-05/0.09426, allocations: 31.84 kB / 482.5 MB, free: 3.543 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.09427, allocations: 3.938 kB / 482.5 MB, free: 3.539 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.09427, allocations: 0 / 482.5 MB, free: 3.539 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.727e-06/0.09428, allocations: 4 kB / 482.5 MB, free: 3.535 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.0003496/0.09464, allocations: 347.4 kB / 482.8 MB, free: 3.145 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.028e-05/0.09467, allocations: 12.03 kB / 482.9 MB, free: 3.133 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.885e-05/0.09471, allocations: 4.844 kB / 482.9 MB, free: 3.129 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000174/0.09489, allocations: 184.3 kB / 483 MB, free: 2.91 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.727e-06/0.0949, allocations: 4.375 kB / 483 MB, free: 2.906 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.804e-05/0.09493, allocations: 4.375 kB / 483 MB, free: 2.902 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.328e-05/0.09502, allocations: 58.17 kB / 483.1 MB, free: 2.84 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.581e-06/0.09503, allocations: 192 / 483.1 MB, free: 2.84 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.446e-06/0.09505, allocations: 3.938 kB / 483.1 MB, free: 2.836 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.757e-06/0.09506, allocations: 0 / 483.1 MB, free: 2.836 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.781e-05/0.0951, allocations: 15.98 kB / 483.1 MB, free: 2.82 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004098/0.09551, allocations: 300.6 kB / 483.4 MB, free: 2.477 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.154e-05/0.09557, allocations: 22.56 kB / 483.4 MB, free: 2.445 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.695e-05/0.0956, allocations: 12.92 kB / 483.5 MB, free: 2.43 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.555e-06/0.09561, allocations: 0 / 483.5 MB, free: 2.43 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.227e-05/0.09568, allocations: 51.31 kB / 483.5 MB, free: 2.367 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 1.172e-06/0.09569, allocations: 0 / 483.5 MB, free: 2.367 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001215/0.09581, allocations: 57.62 kB / 483.6 MB, free: 2.305 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.622e-05/0.09585, allocations: 51.41 kB / 483.6 MB, free: 2.242 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.314e-05/0.09593, allocations: 113.8 kB / 483.7 MB, free: 2.121 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.957e-05/0.09595, allocations: 29.7 kB / 483.8 MB, free: 2.086 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.011e-05/0.096, allocations: 88.05 kB / 483.8 MB, free: 1.996 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.149e-05/0.09601, allocations: 15.91 kB / 483.9 MB, free: 1.98 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.537e-05/0.09604, allocations: 13.72 kB / 483.9 MB, free: 1.961 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.216e-05/0.09614, allocations: 322.8 kB / 484.2 MB, free: 1.637 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.471e-05/0.09616, allocations: 8 kB / 484.2 MB, free: 1.629 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.068e-05/0.0962, allocations: 21.7 kB / 484.2 MB, free: 1.602 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.279e-05/0.09624, allocations: 25.66 kB / 484.2 MB, free: 1.57 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.09624, allocations: 0 / 484.2 MB, free: 1.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.189e-05/0.09632, allocations: 58.28 kB / 484.3 MB, free: 1.508 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.012e-05/0.09633, allocations: 4 kB / 484.3 MB, free: 1.504 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.366e-06/0.09634, allocations: 0 / 484.3 MB, free: 1.504 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.205e-05/0.09636, allocations: 12.06 kB / 484.3 MB, free: 1.492 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.699e-05/0.09639, allocations: 3.938 kB / 484.3 MB, free: 1.488 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.612e-06/0.0964, allocations: 4 kB / 484.3 MB, free: 1.484 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.466e-05/0.09643, allocations: 0 / 484.3 MB, free: 1.484 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.35e-06/0.09644, allocations: 3.938 kB / 484.3 MB, free: 1.48 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.487e-05/0.09651, allocations: 117.8 kB / 484.4 MB, free: 1.355 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.282e-05/0.09653, allocations: 7.906 kB / 484.4 MB, free: 1.348 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.802e-05/0.09655, allocations: 3.906 kB / 484.4 MB, free: 1.34 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.162e-06/0.09656, allocations: 0 / 484.4 MB, free: 1.34 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.796e-06/0.09657, allocations: 4 kB / 484.4 MB, free: 1.336 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.783e-06/0.09657, allocations: 0 / 484.4 MB, free: 1.336 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002366/0.09682, allocations: 306.5 kB / 484.7 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.09683, allocations: 0 / 484.7 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.29e-05/0.09687, allocations: 8 kB / 484.8 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.543e-06/0.09688, allocations: 0 / 484.8 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.122e-06/0.09689, allocations: 0 / 484.8 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.015e-06/0.09689, allocations: 3.938 kB / 484.8 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.42e-07/0.0969, allocations: 0 / 484.8 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001196/0.09702, allocations: 155.4 kB / 484.9 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.237e-05/0.09706, allocations: 85.12 kB / 485 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.055e-05/0.09708, allocations: 0 / 485 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.444e-05/0.09714, allocations: 3.938 kB / 485 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.032e-05/0.09716, allocations: 8 kB / 485 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.677e-06/0.09717, allocations: 0 / 485 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.858e-05/0.09722, allocations: 91.27 kB / 485.1 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.463e-06/0.09723, allocations: 0 / 485.1 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002096/0.09745, allocations: 23.84 kB / 485.1 MB, free: 0.5742 MB / 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 6.575e-05/0.09752, allocations: 91.25 kB / 485.2 MB, free: 488 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 7.145e-05/0.09759, allocations: 19.98 kB / 485.2 MB, free: 468 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.0976, allocations: 3.938 kB / 485.2 MB, free: 464 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 1.62e-05/0.09762, allocations: 8 kB / 485.2 MB, free: 456 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002339/0.09786, allocations: 12.27 kB / 485.3 MB, free: 444 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002469/0.09812, allocations: 133.4 kB / 485.4 MB, free: 284 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002154/0.09834, allocations: 0.6924 MB / 486.1 MB, free: 15.56 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 1.532e-05/0.09837, allocations: 0 / 486.1 MB, free: 15.56 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.732e-05/0.09839, allocations: 11.44 kB / 486.1 MB, free: 15.55 MB / 366.1 MB Notification: Performance of SimCode: time 2e-07/0.0984, allocations: 0 / 486.1 MB, free: 15.55 MB / 366.1 MB Notification: Performance of Templates: time 0.002117/0.1005, allocations: 0.4958 MB / 486.6 MB, free: 15.05 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 -s gbode -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