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.001025/0.001025, allocations: 201.5 kB / 17.08 MB, free: 5.062 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.178/1.178, allocations: 227.2 MB / 245 MB, free: 7.465 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008649/0.0008649, allocations: 101.9 kB / 297.3 MB, free: 6.164 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2767/0.2767, allocations: 45.23 MB / 394.7 MB, free: 31.63 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002322/0.0002322, allocations: 4.219 kB / 468.4 MB, free: 7.738 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2613/0.2616, allocations: 63.24 MB / 0.5192 GB, free: 43.62 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09042/0.3521, allocations: 86.99 MB / 0.6041 GB, free: 2.645 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001873/0.3523, allocations: 63.97 kB / 0.6042 GB, free: 2.582 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002352/0.3546, allocations: 0.9958 MB / 0.6052 GB, free: 1.594 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.3547, allocations: 0 / 0.6052 GB, free: 1.594 MB / 410.7 MB Notification: Performance of Transformations before backend: time 8.165e-06/0.3547, allocations: 0 / 0.6052 GB, free: 1.594 MB / 410.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.0003071/0.355, allocations: 349.5 kB / 0.6055 GB, free: 1.207 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.522e-05/0.355, allocations: 12.25 kB / 0.6055 GB, free: 1.195 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.106e-05/0.3551, allocations: 0 / 0.6055 GB, free: 1.195 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00016/0.3552, allocations: 194.8 kB / 0.6057 GB, free: 0.9648 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.397e-06/0.3553, allocations: 0.7812 kB / 0.6057 GB, free: 0.9648 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.75e-05/0.3553, allocations: 4 kB / 0.6057 GB, free: 0.9609 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.753e-05/0.3554, allocations: 46.22 kB / 0.6057 GB, free: 0.9102 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.662e-06/0.3554, allocations: 0.5938 kB / 0.6057 GB, free: 0.9102 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.159e-05/0.3554, allocations: 11.94 kB / 0.6058 GB, free: 0.8984 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.987e-06/0.3554, allocations: 1.594 kB / 0.6058 GB, free: 0.8984 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.33e-05/0.3555, allocations: 15.98 kB / 0.6058 GB, free: 0.8828 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004514/0.3559, allocations: 289.9 kB / 0.606 GB, free: 0.5508 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.319e-05/0.356, allocations: 23.64 kB / 0.6061 GB, free: 0.5195 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.611e-06/0.356, allocations: 0.8125 kB / 0.6061 GB, free: 0.5195 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.183e-05/0.3561, allocations: 56.16 kB / 0.6061 GB, free: 464 kB / 410.7 MB Notification: Performance of pre-optimization done (n=3): time 1.242e-06/0.3561, allocations: 2.438 kB / 0.6061 GB, free: 464 kB / 410.7 MB Notification: Performance of matching and sorting (n=3): time 0.0001244/0.3563, allocations: 49.64 kB / 0.6062 GB, free: 408 kB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.842e-05/0.3563, allocations: 51.41 kB / 0.6062 GB, free: 344 kB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.017e-05/0.3564, allocations: 109.2 kB / 0.6063 GB, free: 224 kB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.344e-05/0.3564, allocations: 25.7 kB / 0.6064 GB, free: 192 kB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.895e-05/0.3564, allocations: 97.2 kB / 0.6064 GB, free: 92 kB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.535e-05/0.3565, allocations: 11.95 kB / 0.6065 GB, free: 80 kB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.007e-05/0.3565, allocations: 4 kB / 0.6065 GB, free: 76 kB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001315/0.3566, allocations: 315.3 kB / 0.6068 GB, free: 15.76 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.677e-05/0.3566, allocations: 11.75 kB / 0.6068 GB, free: 15.75 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.703e-05/0.3567, allocations: 21.7 kB / 0.6068 GB, free: 15.72 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.389e-05/0.3567, allocations: 8.281 kB / 0.6068 GB, free: 15.71 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.3567, allocations: 0 / 0.6068 GB, free: 15.71 MB / 426.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.982e-05/0.3568, allocations: 57.61 kB / 0.6069 GB, free: 15.65 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.303e-05/0.3568, allocations: 4 kB / 0.6069 GB, free: 15.65 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.807e-06/0.3568, allocations: 0 / 0.6069 GB, free: 15.65 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.101e-05/0.3568, allocations: 4.031 kB / 0.6069 GB, free: 15.64 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.254e-05/0.3569, allocations: 4 kB / 0.6069 GB, free: 15.64 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.602e-06/0.3569, allocations: 3.953 kB / 0.6069 GB, free: 15.64 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.068e-05/0.3569, allocations: 8 kB / 0.6069 GB, free: 15.63 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.428e-06/0.3569, allocations: 0 / 0.6069 GB, free: 15.63 MB / 426.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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.5e-05/0.357, allocations: 111.6 kB / 0.607 GB, free: 15.51 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.334e-05/0.357, allocations: 3.906 kB / 0.607 GB, free: 15.51 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.459e-05/0.3571, allocations: 19.83 kB / 0.607 GB, free: 15.49 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.834e-06/0.3571, allocations: 0 / 0.607 GB, free: 15.49 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.366e-06/0.3571, allocations: 4.375 kB / 0.607 GB, free: 15.48 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.068e-06/0.3571, allocations: 3.953 kB / 0.607 GB, free: 15.48 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002685/0.3574, allocations: 298.5 kB / 0.6073 GB, free: 15.13 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.3574, allocations: 0 / 0.6073 GB, free: 15.13 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.051e-05/0.3574, allocations: 7.938 kB / 0.6073 GB, free: 15.12 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.345e-06/0.3574, allocations: 0 / 0.6073 GB, free: 15.12 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.623e-06/0.3574, allocations: 0 / 0.6073 GB, free: 15.12 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.266e-06/0.3574, allocations: 3.953 kB / 0.6073 GB, free: 15.12 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.3574, allocations: 0 / 0.6073 GB, free: 15.12 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000125/0.3576, allocations: 155.4 kB / 0.6075 GB, free: 14.95 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.177e-05/0.3576, allocations: 81.14 kB / 0.6075 GB, free: 14.86 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.599e-05/0.3577, allocations: 7.984 kB / 0.6075 GB, free: 14.85 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.784e-05/0.3577, allocations: 4 kB / 0.6075 GB, free: 14.84 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.489e-05/0.3577, allocations: 7.953 kB / 0.6076 GB, free: 14.84 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.379e-06/0.3578, allocations: 0 / 0.6076 GB, free: 14.84 MB / 426.7 MB Notification: Performance of sorting global known variables: time 4.384e-05/0.3578, allocations: 91.27 kB / 0.6076 GB, free: 14.75 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3578, allocations: 4.062 kB / 0.6076 GB, free: 14.74 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0002027/0.358, allocations: 12 kB / 0.6077 GB, free: 14.73 MB / 426.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 () * 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 (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.0001024/0.3581, allocations: 92.28 kB / 0.6077 GB, free: 14.63 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 6.907e-05/0.3582, allocations: 15.98 kB / 0.6078 GB, free: 14.62 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.382e-06/0.3582, allocations: 3.938 kB / 0.6078 GB, free: 14.61 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 1.775e-05/0.3582, allocations: 12 kB / 0.6078 GB, free: 14.6 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001743/0.3584, allocations: 7.984 kB / 0.6078 GB, free: 14.59 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002698/0.3587, allocations: 155.9 kB / 0.6079 GB, free: 14.42 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000225/0.3589, allocations: 0.6887 MB / 0.6086 GB, free: 13.7 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 2.03e-05/0.359, allocations: 4 kB / 0.6086 GB, free: 13.7 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.277e-05/0.359, allocations: 11.44 kB / 0.6086 GB, free: 13.69 MB / 426.7 MB Notification: Performance of SimCode: time 2.1e-07/0.359, allocations: 0 / 0.6086 GB, free: 13.69 MB / 426.7 MB Notification: Performance of Templates: time 0.002115/0.3611, allocations: 461.9 kB / 0.6091 GB, free: 13.24 MB / 426.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