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.001467/0.001467, allocations: 117.7 kB / 18.45 MB, free: 4.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001794/0.001794, allocations: 204.8 kB / 19.4 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.437/1.437, allocations: 227.4 MB / 247.6 MB, free: 10.47 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2178/0.2178, allocations: 46.1 MB / 345 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001408/0.001408, allocations: 71.88 kB / 482 MB, free: 4.082 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4485/0.45, allocations: 62.44 MB / 0.5316 GB, free: 13.61 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.002172/0.4522, allocations: 0.8167 MB / 0.5324 GB, free: 13 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002104/0.4524, allocations: 46.91 kB / 0.5325 GB, free: 12.96 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.347e-05/0.4525, allocations: 0 / 0.5325 GB, free: 12.96 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000125/0.4526, allocations: 7.5 kB / 0.5325 GB, free: 12.96 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 1.805e-05/0.4527, allocations: 3.938 kB / 0.5325 GB, free: 12.95 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001265/0.4528, allocations: 23.5 kB / 0.5325 GB, free: 12.93 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001131/0.4529, allocations: 41.89 kB / 0.5326 GB, free: 12.91 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001086/0.453, allocations: 22.53 kB / 0.5326 GB, free: 12.89 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.825e-05/0.4531, allocations: 8.125 kB / 0.5326 GB, free: 12.89 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.398e-05/0.4531, allocations: 18.61 kB / 0.5326 GB, free: 12.87 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.448e-05/0.4531, allocations: 2.75 kB / 0.5326 GB, free: 12.87 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.139e-05/0.4532, allocations: 2.75 kB / 0.5326 GB, free: 12.87 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.491e-05/0.4532, allocations: 9.359 kB / 0.5326 GB, free: 12.86 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.106e-05/0.4532, allocations: 16 kB / 0.5326 GB, free: 12.85 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001124/0.4533, allocations: 35.98 kB / 0.5327 GB, free: 12.82 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/0.4533, allocations: 1.344 kB / 0.5327 GB, free: 12.82 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.4534, allocations: 4 kB / 0.5327 GB, free: 12.82 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.062e-06/0.4534, allocations: 0 / 0.5327 GB, free: 12.82 MB / 398.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.0004407/0.4538, allocations: 353.6 kB / 0.533 GB, free: 12.44 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.966e-05/0.4539, allocations: 9.406 kB / 0.533 GB, free: 12.44 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.59e-05/0.4539, allocations: 8.031 kB / 0.533 GB, free: 12.44 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002022/0.4541, allocations: 179.3 kB / 0.5332 GB, free: 12.23 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.255e-05/0.4541, allocations: 1.562 kB / 0.5332 GB, free: 12.23 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.165e-05/0.4542, allocations: 3 kB / 0.5332 GB, free: 12.23 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001108/0.4543, allocations: 54.78 kB / 0.5333 GB, free: 12.18 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.254e-06/0.4543, allocations: 192 / 0.5333 GB, free: 12.18 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.119e-05/0.4543, allocations: 3.938 kB / 0.5333 GB, free: 12.18 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.041e-06/0.4543, allocations: 1.344 kB / 0.5333 GB, free: 12.18 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.606e-05/0.4544, allocations: 19.73 kB / 0.5333 GB, free: 12.17 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005023/0.4549, allocations: 290.9 kB / 0.5336 GB, free: 11.86 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.863e-05/0.4549, allocations: 28.14 kB / 0.5336 GB, free: 11.83 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.718e-05/0.455, allocations: 11.55 kB / 0.5336 GB, free: 11.82 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.027e-05/0.455, allocations: 1.312 kB / 0.5336 GB, free: 11.82 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.811e-05/0.4551, allocations: 50.25 kB / 0.5336 GB, free: 11.76 MB / 398.1 MB Notification: Performance of pre-optimization done (n=3): time 1.103e-06/0.4551, allocations: 0 / 0.5336 GB, free: 11.76 MB / 398.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001394/0.4552, allocations: 46.41 kB / 0.5337 GB, free: 11.72 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.205e-05/0.4553, allocations: 52.97 kB / 0.5337 GB, free: 11.66 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.835e-05/0.4554, allocations: 123.5 kB / 0.5339 GB, free: 11.54 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.592e-05/0.4554, allocations: 30.08 kB / 0.5339 GB, free: 11.51 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.628e-05/0.4555, allocations: 94.53 kB / 0.534 GB, free: 11.41 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.596e-05/0.4555, allocations: 9.125 kB / 0.534 GB, free: 11.41 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.31e-05/0.4555, allocations: 17.62 kB / 0.534 GB, free: 11.39 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001198/0.4556, allocations: 324.2 kB / 0.5343 GB, free: 11.06 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.004e-05/0.4557, allocations: 7.312 kB / 0.5343 GB, free: 11.06 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.592e-05/0.4557, allocations: 18.27 kB / 0.5343 GB, free: 11.04 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.929e-05/0.4557, allocations: 30.62 kB / 0.5344 GB, free: 11.01 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.4558, allocations: 0 / 0.5344 GB, free: 11.01 MB / 398.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 9.736e-05/0.4559, allocations: 53.44 kB / 0.5344 GB, free: 10.97 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.572e-05/0.4559, allocations: 8.406 kB / 0.5344 GB, free: 10.96 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.238e-06/0.4559, allocations: 1.156 kB / 0.5344 GB, free: 10.96 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.338e-05/0.4559, allocations: 1.031 kB / 0.5344 GB, free: 10.96 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.365e-05/0.4559, allocations: 7.516 kB / 0.5344 GB, free: 10.96 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.723e-06/0.456, allocations: 3.984 kB / 0.5344 GB, free: 10.96 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.653e-05/0.456, allocations: 6.062 kB / 0.5344 GB, free: 10.95 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.368e-06/0.456, allocations: 6.188 kB / 0.5345 GB, free: 10.95 MB / 398.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 8.071e-05/0.4561, allocations: 116 kB / 0.5346 GB, free: 10.83 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.242e-05/0.4561, allocations: 6.188 kB / 0.5346 GB, free: 10.82 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.479e-05/0.4561, allocations: 9 kB / 0.5346 GB, free: 10.81 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.855e-06/0.4562, allocations: 5.219 kB / 0.5346 GB, free: 10.81 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.611e-06/0.4562, allocations: 3.984 kB / 0.5346 GB, free: 10.8 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.018e-06/0.4562, allocations: 1.188 kB / 0.5346 GB, free: 10.8 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002961/0.4565, allocations: 300.9 kB / 0.5349 GB, free: 10.48 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.4565, allocations: 0 / 0.5349 GB, free: 10.48 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.106e-05/0.4565, allocations: 6.531 kB / 0.5349 GB, free: 10.47 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.512e-06/0.4565, allocations: 0 / 0.5349 GB, free: 10.47 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.012e-05/0.4565, allocations: 3.984 kB / 0.5349 GB, free: 10.47 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.845e-06/0.4566, allocations: 5.375 kB / 0.5349 GB, free: 10.46 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.92e-07/0.4566, allocations: 0 / 0.5349 GB, free: 10.46 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001457/0.4567, allocations: 148 kB / 0.535 GB, free: 10.32 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.538e-05/0.4568, allocations: 82.2 kB / 0.5351 GB, free: 10.22 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.179e-05/0.4568, allocations: 1.125 kB / 0.5351 GB, free: 10.22 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.802e-05/0.4568, allocations: 5 kB / 0.5351 GB, free: 10.22 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.012e-05/0.4569, allocations: 6.172 kB / 0.5351 GB, free: 10.21 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.779e-06/0.4569, allocations: 1.219 kB / 0.5351 GB, free: 10.21 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.856e-05/0.457, allocations: 95.52 kB / 0.5352 GB, free: 10.13 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.457, allocations: 288 / 0.5352 GB, free: 10.13 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002177/0.4572, allocations: 9.906 kB / 0.5352 GB, free: 10.12 MB / 398.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 0.0001079/0.4573, allocations: 102.3 kB / 0.5353 GB, free: 10.03 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 8.437e-05/0.4574, allocations: 19.89 kB / 0.5353 GB, free: 10.02 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.4574, allocations: 0 / 0.5353 GB, free: 10.02 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 2.237e-05/0.4574, allocations: 13.45 kB / 0.5354 GB, free: 10.01 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002413/0.4577, allocations: 4.812 kB / 0.5354 GB, free: 10.01 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002872/0.458, allocations: 163.9 kB / 0.5355 GB, free: 9.848 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000262/0.4582, allocations: 0.6844 MB / 0.5362 GB, free: 9.145 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.075e-05/0.4583, allocations: 15.28 kB / 0.5362 GB, free: 9.133 MB / 398.1 MB Notification: Performance of SimCode: time 2.2e-07/0.4583, allocations: 0 / 0.5362 GB, free: 9.133 MB / 398.1 MB Notification: Performance of Templates: time 0.002294/0.4606, allocations: 0.7265 MB / 0.5369 GB, free: 8.77 MB / 398.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