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/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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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/Complex trunk/package.mo): time 0.001119/0.001119, allocations: 197 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.225/1.225, allocations: 225.4 MB / 240.1 MB, free: 15.14 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008129/0.0008129, allocations: 83.75 kB / 292.1 MB, free: 5.949 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1761/0.1761, allocations: 45.15 MB / 389.3 MB, free: 11.89 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 2.947e-05/2.969e-05, allocations: 4 kB / 460.4 MB, free: 70.06 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1118/0.1119, allocations: 63.24 MB / 0.5114 GB, free: 6.84 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3976/0.5096, allocations: 86.92 MB / 0.5962 GB, free: 7.031 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001957/0.5098, allocations: 60.22 kB / 0.5963 GB, free: 7 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002367/0.5122, allocations: 1.002 MB / 0.5973 GB, free: 6.121 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.5122, allocations: 0 / 0.5973 GB, free: 6.121 MB / 394.7 MB Notification: Performance of Transformations before backend: time 7.655e-06/0.5122, allocations: 0 / 0.5973 GB, free: 6.121 MB / 394.7 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.0002959/0.5125, allocations: 330 kB / 0.5976 GB, free: 5.758 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.162e-05/0.5126, allocations: 11.97 kB / 0.5976 GB, free: 5.746 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.581e-05/0.5126, allocations: 7.906 kB / 0.5976 GB, free: 5.738 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001755/0.5128, allocations: 174.6 kB / 0.5978 GB, free: 5.531 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.558e-06/0.5128, allocations: 8 kB / 0.5978 GB, free: 5.523 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.123e-05/0.5128, allocations: 7.688 kB / 0.5978 GB, free: 5.52 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001209/0.513, allocations: 52.81 kB / 0.5978 GB, free: 5.469 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.639e-06/0.513, allocations: 0 / 0.5978 GB, free: 5.469 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.242e-05/0.513, allocations: 0 / 0.5978 GB, free: 5.469 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.218e-06/0.513, allocations: 0 / 0.5978 GB, free: 5.469 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.252e-05/0.5131, allocations: 11.5 kB / 0.5979 GB, free: 5.461 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000529/0.5136, allocations: 295.1 kB / 0.5981 GB, free: 5.137 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.208e-05/0.5137, allocations: 26.08 kB / 0.5982 GB, free: 5.105 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.883e-05/0.5137, allocations: 8.922 kB / 0.5982 GB, free: 5.094 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.103e-06/0.5137, allocations: 2.734 kB / 0.5982 GB, free: 5.094 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.55e-05/0.5138, allocations: 51.03 kB / 0.5982 GB, free: 5.035 MB / 394.7 MB Notification: Performance of pre-optimization done (n=3): time 1.242e-06/0.5138, allocations: 4 kB / 0.5982 GB, free: 5.031 MB / 394.7 MB Notification: Performance of matching and sorting (n=3): time 0.0001322/0.5139, allocations: 53.12 kB / 0.5983 GB, free: 4.977 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.298e-05/0.514, allocations: 55.39 kB / 0.5983 GB, free: 4.91 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.38e-05/0.5141, allocations: 108.3 kB / 0.5984 GB, free: 4.801 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.594e-05/0.5141, allocations: 25.7 kB / 0.5985 GB, free: 4.77 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.181e-05/0.5142, allocations: 91.69 kB / 0.5985 GB, free: 4.68 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.434e-05/0.5142, allocations: 11.41 kB / 0.5986 GB, free: 4.672 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.545e-06/0.5142, allocations: 0 / 0.5986 GB, free: 4.672 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001423/0.5143, allocations: 322.3 kB / 0.5989 GB, free: 4.352 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.359e-05/0.5144, allocations: 0 / 0.5989 GB, free: 4.352 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.435e-05/0.5144, allocations: 21.53 kB / 0.5989 GB, free: 4.328 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.441e-05/0.5144, allocations: 7.984 kB / 0.5989 GB, free: 4.32 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.5144, allocations: 0 / 0.5989 GB, free: 4.32 MB / 394.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.369e-05/0.5145, allocations: 64.41 kB / 0.5989 GB, free: 4.258 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.43e-05/0.5145, allocations: 4 kB / 0.599 GB, free: 4.254 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.344e-06/0.5146, allocations: 0.625 kB / 0.599 GB, free: 4.254 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.31e-05/0.5146, allocations: 4.031 kB / 0.599 GB, free: 4.25 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.926e-05/0.5146, allocations: 4 kB / 0.599 GB, free: 4.246 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.358e-06/0.5146, allocations: 3.953 kB / 0.599 GB, free: 4.242 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.631e-05/0.5147, allocations: 4 kB / 0.599 GB, free: 4.238 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.43e-06/0.5147, allocations: 0 / 0.599 GB, free: 4.238 MB / 394.7 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 ($whenCondition1,greaterEqualThreshold.y) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.131e-05/0.5148, allocations: 114.1 kB / 0.5991 GB, free: 4.125 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.065e-05/0.5148, allocations: 4.125 kB / 0.5991 GB, free: 4.121 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.101e-05/0.5148, allocations: 12.02 kB / 0.5991 GB, free: 4.098 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-06/0.5148, allocations: 3.938 kB / 0.5991 GB, free: 4.094 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.197e-06/0.5148, allocations: 4 kB / 0.5991 GB, free: 4.09 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.468e-06/0.5148, allocations: 3.953 kB / 0.5991 GB, free: 4.086 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002901/0.5151, allocations: 293.1 kB / 0.5994 GB, free: 3.758 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.941e-06/0.5152, allocations: 7.984 kB / 0.5994 GB, free: 3.75 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.311e-05/0.5152, allocations: 4 kB / 0.5994 GB, free: 3.746 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.308e-06/0.5152, allocations: 0 / 0.5994 GB, free: 3.746 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.456e-06/0.5152, allocations: 3.938 kB / 0.5994 GB, free: 3.742 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.637e-06/0.5152, allocations: 3.953 kB / 0.5994 GB, free: 3.738 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.5152, allocations: 384 / 0.5994 GB, free: 3.738 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001459/0.5154, allocations: 146.2 kB / 0.5995 GB, free: 3.586 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.392e-05/0.5154, allocations: 85.05 kB / 0.5996 GB, free: 3.484 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.318e-05/0.5155, allocations: 0 / 0.5996 GB, free: 3.484 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.288e-05/0.5155, allocations: 3.938 kB / 0.5996 GB, free: 3.48 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.661e-05/0.5156, allocations: 11.94 kB / 0.5996 GB, free: 3.469 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.601e-06/0.5156, allocations: 3.375 kB / 0.5996 GB, free: 3.469 MB / 394.7 MB Notification: Performance of sorting global known variables: time 4.814e-05/0.5156, allocations: 86.78 kB / 0.5997 GB, free: 3.387 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.5156, allocations: 8.062 kB / 0.5997 GB, free: 3.379 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0001867/0.5158, allocations: 8 kB / 0.5997 GB, free: 3.371 MB / 394.7 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001279/0.516, allocations: 99.17 kB / 0.5998 GB, free: 3.266 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 8.281e-05/0.5161, allocations: 15.69 kB / 0.5998 GB, free: 3.254 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.5161, allocations: 0 / 0.5998 GB, free: 3.254 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 1.934e-05/0.5161, allocations: 11.56 kB / 0.5999 GB, free: 3.246 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001792/0.5163, allocations: 7.562 kB / 0.5999 GB, free: 3.242 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000234/0.5165, allocations: 98.48 kB / 0.6 GB, free: 3.129 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002427/0.5168, allocations: 0.6848 MB / 0.6006 GB, free: 2.418 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 2.302e-05/0.5168, allocations: 7.984 kB / 0.6006 GB, free: 2.41 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.501e-05/0.5168, allocations: 7.438 kB / 0.6006 GB, free: 2.402 MB / 394.7 MB Notification: Performance of SimCode: time 3e-07/0.5168, allocations: 0 / 0.6006 GB, free: 2.402 MB / 394.7 MB Notification: Performance of Templates: time 0.002202/0.519, allocations: 466 kB / 0.6011 GB, free: 1.957 MB / 394.7 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/SelfResettingIntegrator/SelfResettingIntegrator.csv","../files/ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches