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.001193/0.001193, allocations: 115.9 kB / 18.41 MB, free: 4.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001225/0.001225, allocations: 203.5 kB / 19.36 MB, free: 3.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.312/1.312, allocations: 227.4 MB / 247.5 MB, free: 10.36 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2047/0.2047, allocations: 46.1 MB / 344.9 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001329/0.00133, allocations: 80.44 kB / 419 MB, free: 19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1168/0.1182, allocations: 62.45 MB / 481.5 MB, free: 4.512 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.002219/0.1205, allocations: 0.8027 MB / 482.3 MB, free: 3.711 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002079/0.1207, allocations: 43.83 kB / 482.3 MB, free: 3.668 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.8e-05/0.1208, allocations: 4 kB / 482.3 MB, free: 3.664 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001115/0.1209, allocations: 7.938 kB / 482.3 MB, free: 3.656 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 1.842e-05/0.1209, allocations: 3.938 kB / 482.3 MB, free: 3.652 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001265/0.1211, allocations: 19.97 kB / 482.3 MB, free: 3.633 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001094/0.1212, allocations: 39.84 kB / 482.4 MB, free: 3.594 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001089/0.1213, allocations: 15.98 kB / 482.4 MB, free: 3.578 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.376e-05/0.1213, allocations: 11.94 kB / 482.4 MB, free: 3.566 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.647e-05/0.1214, allocations: 15.92 kB / 482.4 MB, free: 3.551 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.829e-05/0.1214, allocations: 4 kB / 482.4 MB, free: 3.547 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.939e-06/0.1214, allocations: 4 kB / 482.4 MB, free: 3.543 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.948e-05/0.1214, allocations: 8 kB / 482.4 MB, free: 3.535 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.248e-05/0.1215, allocations: 15.88 kB / 482.5 MB, free: 3.52 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 9.423e-05/0.1216, allocations: 39.81 kB / 482.5 MB, free: 3.48 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.1216, allocations: 3.938 kB / 482.5 MB, free: 3.477 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.1216, allocations: 0 / 482.5 MB, free: 3.477 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.759e-06/0.1216, allocations: 0 / 482.5 MB, free: 3.477 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.0004291/0.122, allocations: 351.4 kB / 482.8 MB, free: 3.082 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.712e-05/0.1221, allocations: 8.031 kB / 482.9 MB, free: 3.074 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.639e-05/0.1221, allocations: 8.844 kB / 482.9 MB, free: 3.066 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002064/0.1223, allocations: 184.3 kB / 483 MB, free: 2.848 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.175e-05/0.1223, allocations: 4.359 kB / 483 MB, free: 2.844 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.448e-05/0.1224, allocations: 4.375 kB / 483 MB, free: 2.84 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001202/0.1225, allocations: 50.23 kB / 483.1 MB, free: 2.785 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.825e-06/0.1225, allocations: 4.188 kB / 483.1 MB, free: 2.781 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.212e-05/0.1225, allocations: 7.938 kB / 483.1 MB, free: 2.773 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.824e-06/0.1225, allocations: 0 / 483.1 MB, free: 2.773 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.762e-05/0.1226, allocations: 15.98 kB / 483.1 MB, free: 2.758 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005225/0.1231, allocations: 296.6 kB / 483.4 MB, free: 2.418 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.676e-05/0.1232, allocations: 26.58 kB / 483.4 MB, free: 2.383 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.821e-05/0.1232, allocations: 4.859 kB / 483.4 MB, free: 2.375 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.184e-05/0.1232, allocations: 0 / 483.4 MB, free: 2.375 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.208e-05/0.1233, allocations: 59.31 kB / 483.5 MB, free: 2.305 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 1.042e-06/0.1233, allocations: 0 / 483.5 MB, free: 2.305 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.000148/0.1235, allocations: 53.69 kB / 483.6 MB, free: 2.246 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.171e-05/0.1235, allocations: 55.41 kB / 483.6 MB, free: 2.18 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001124/0.1237, allocations: 113.8 kB / 483.7 MB, free: 2.059 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.442e-05/0.1237, allocations: 25.7 kB / 483.7 MB, free: 2.027 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.493e-05/0.1237, allocations: 96.03 kB / 483.8 MB, free: 1.93 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.319e-05/0.1238, allocations: 3.906 kB / 483.8 MB, free: 1.926 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.16e-05/0.1238, allocations: 17.72 kB / 483.9 MB, free: 1.902 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001033/0.1239, allocations: 322.7 kB / 484.2 MB, free: 1.578 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.022e-05/0.1239, allocations: 15.94 kB / 484.2 MB, free: 1.562 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.693e-05/0.124, allocations: 21.72 kB / 484.2 MB, free: 1.535 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.995e-05/0.124, allocations: 21.72 kB / 484.2 MB, free: 1.508 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.124, allocations: 3.984 kB / 484.2 MB, free: 1.504 MB / 350.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.432e-05/0.1241, allocations: 50.02 kB / 484.3 MB, free: 1.449 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.49e-05/0.1241, allocations: 8 kB / 484.3 MB, free: 1.441 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.819e-06/0.1241, allocations: 32 / 484.3 MB, free: 1.441 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.462e-05/0.1242, allocations: 4 kB / 484.3 MB, free: 1.438 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.322e-05/0.1242, allocations: 11.92 kB / 484.3 MB, free: 1.426 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.511e-06/0.1242, allocations: 0 / 484.3 MB, free: 1.426 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.102e-05/0.1242, allocations: 8 kB / 484.3 MB, free: 1.418 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.572e-06/0.1243, allocations: 3.938 kB / 484.3 MB, free: 1.414 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 7.384e-05/0.1243, allocations: 109.8 kB / 484.4 MB, free: 1.297 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.079e-05/0.1243, allocations: 4.234 kB / 484.4 MB, free: 1.293 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.137e-05/0.1244, allocations: 11.91 kB / 484.4 MB, free: 1.277 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.723e-06/0.1244, allocations: 4 kB / 484.4 MB, free: 1.273 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.009e-05/0.1244, allocations: 7.969 kB / 484.5 MB, free: 1.266 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.465e-06/0.1244, allocations: 3.938 kB / 484.5 MB, free: 1.262 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000274/0.1247, allocations: 294.6 kB / 484.7 MB, free: 0.918 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.1247, allocations: 0 / 484.7 MB, free: 0.918 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.917e-05/0.1247, allocations: 0 / 484.7 MB, free: 0.918 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.1247, allocations: 0 / 484.7 MB, free: 0.918 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.172e-05/0.1248, allocations: 7.984 kB / 484.8 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.206e-06/0.1248, allocations: 3.938 kB / 484.8 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.1248, allocations: 0 / 484.8 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001379/0.1249, allocations: 155.4 kB / 484.9 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.897e-05/0.125, allocations: 77.11 kB / 485 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.612e-05/0.125, allocations: 4.031 kB / 485 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.933e-05/0.1251, allocations: 7.938 kB / 485 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.269e-05/0.1251, allocations: 3.984 kB / 485 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.438e-06/0.1251, allocations: 0 / 485 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.052e-05/0.1252, allocations: 95.27 kB / 485.1 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1252, allocations: 4.062 kB / 485.1 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000219/0.1254, allocations: 11.84 kB / 485.1 MB, free: 0.5195 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 0.000109/0.1255, allocations: 91.25 kB / 485.2 MB, free: 432 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.106e-05/0.1256, allocations: 23.88 kB / 485.2 MB, free: 408 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.1256, allocations: 0 / 485.2 MB, free: 408 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.066e-05/0.1256, allocations: 11.98 kB / 485.2 MB, free: 396 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002645/0.1259, allocations: 4.281 kB / 485.2 MB, free: 392 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002991/0.1262, allocations: 141.5 kB / 485.4 MB, free: 224 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002528/0.1265, allocations: 0.6846 MB / 486.1 MB, free: 15.51 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 2.26e-05/0.1265, allocations: 11.98 kB / 486.1 MB, free: 15.5 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.153e-05/0.1265, allocations: 11.44 kB / 486.1 MB, free: 15.48 MB / 366.1 MB Notification: Performance of SimCode: time 3.2e-07/0.1265, allocations: 0 / 486.1 MB, free: 15.48 MB / 366.1 MB Notification: Performance of Templates: time 0.002653/0.1292, allocations: 0.4958 MB / 486.6 MB, free: 14.99 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 cvode -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