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.001285/0.001285, allocations: 105.8 kB / 18.3 MB, free: 4.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001231/0.001231, allocations: 211.8 kB / 19.25 MB, free: 3.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.525/1.525, allocations: 227.4 MB / 247.4 MB, free: 10.63 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2171/0.2171, allocations: 46.1 MB / 344.8 MB, free: 11.62 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001438/0.001438, allocations: 75.48 kB / 418.2 MB, free: 19.78 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1415/0.143, allocations: 62.44 MB / 480.7 MB, free: 5.305 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.002289/0.1453, allocations: 0.8098 MB / 481.5 MB, free: 4.496 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002098/0.1455, allocations: 43.83 kB / 481.5 MB, free: 4.453 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.998e-05/0.1456, allocations: 4 kB / 481.5 MB, free: 4.449 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001113/0.1457, allocations: 3.938 kB / 481.6 MB, free: 4.445 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 1.865e-05/0.1457, allocations: 3.938 kB / 481.6 MB, free: 4.441 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000122/0.1459, allocations: 23.95 kB / 481.6 MB, free: 4.418 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001057/0.146, allocations: 43.86 kB / 481.6 MB, free: 4.375 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001243/0.1461, allocations: 19.92 kB / 481.6 MB, free: 4.355 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.604e-05/0.1462, allocations: 11.98 kB / 481.7 MB, free: 4.344 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.329e-05/0.1462, allocations: 11.88 kB / 481.7 MB, free: 4.332 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.592e-05/0.1462, allocations: 4 kB / 481.7 MB, free: 4.328 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.273e-05/0.1462, allocations: 4 kB / 481.7 MB, free: 4.324 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.074e-05/0.1463, allocations: 7.984 kB / 481.7 MB, free: 4.316 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.285e-05/0.1463, allocations: 15.88 kB / 481.7 MB, free: 4.301 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000101/0.1464, allocations: 35.89 kB / 481.7 MB, free: 4.266 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.508e-06/0.1464, allocations: 0 / 481.7 MB, free: 4.266 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.1464, allocations: 4 kB / 481.7 MB, free: 4.262 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.68e-06/0.1464, allocations: 0 / 481.7 MB, free: 4.262 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.0004479/0.1469, allocations: 347.7 kB / 482.1 MB, free: 3.871 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.83e-05/0.1469, allocations: 11.97 kB / 482.1 MB, free: 3.859 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.497e-05/0.147, allocations: 8.844 kB / 482.1 MB, free: 3.852 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001838/0.1472, allocations: 176.4 kB / 482.3 MB, free: 3.641 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.916e-06/0.1472, allocations: 4.375 kB / 482.3 MB, free: 3.637 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.442e-05/0.1472, allocations: 4.375 kB / 482.3 MB, free: 3.633 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001158/0.1473, allocations: 54.19 kB / 482.3 MB, free: 3.574 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.051e-05/0.1474, allocations: 4.188 kB / 482.3 MB, free: 3.57 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.185e-05/0.1474, allocations: 3.938 kB / 482.3 MB, free: 3.566 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.821e-06/0.1474, allocations: 0 / 482.3 MB, free: 3.566 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.336e-05/0.1474, allocations: 19.92 kB / 482.4 MB, free: 3.547 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000492/0.1479, allocations: 288.7 kB / 482.6 MB, free: 3.215 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.248e-05/0.148, allocations: 30.58 kB / 482.7 MB, free: 3.176 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.817e-05/0.148, allocations: 8.844 kB / 482.7 MB, free: 3.164 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.717e-06/0.148, allocations: 3.938 kB / 482.7 MB, free: 3.16 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001065/0.1482, allocations: 51.39 kB / 482.7 MB, free: 3.098 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 1.212e-06/0.1482, allocations: 0 / 482.7 MB, free: 3.098 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001824/0.1483, allocations: 45.69 kB / 482.8 MB, free: 3.047 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.524e-05/0.1484, allocations: 55.41 kB / 482.8 MB, free: 2.98 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001129/0.1485, allocations: 125.8 kB / 483 MB, free: 2.848 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.365e-05/0.1485, allocations: 26.08 kB / 483 MB, free: 2.816 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.144e-05/0.1486, allocations: 92.05 kB / 483.1 MB, free: 2.723 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.449e-05/0.1486, allocations: 7.906 kB / 483.1 MB, free: 2.715 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.166e-05/0.1486, allocations: 17.7 kB / 483.1 MB, free: 2.691 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001312/0.1488, allocations: 322.7 kB / 483.4 MB, free: 2.367 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.594e-05/0.1488, allocations: 8 kB / 483.4 MB, free: 2.359 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.73e-05/0.1488, allocations: 21.7 kB / 483.4 MB, free: 2.332 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.84e-05/0.1489, allocations: 29.98 kB / 483.5 MB, free: 2.297 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.1489, allocations: 0 / 483.5 MB, free: 2.297 MB / 350.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.547e-05/0.149, allocations: 53.62 kB / 483.5 MB, free: 2.238 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.397e-05/0.149, allocations: 8 kB / 483.5 MB, free: 2.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.128e-06/0.149, allocations: 0 / 483.5 MB, free: 2.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.473e-05/0.149, allocations: 0 / 483.5 MB, free: 2.23 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.944e-05/0.1491, allocations: 4 kB / 483.5 MB, free: 2.227 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.49e-06/0.1491, allocations: 0 / 483.5 MB, free: 2.227 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.876e-05/0.1491, allocations: 8.031 kB / 483.5 MB, free: 2.219 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.32e-06/0.1491, allocations: 3.938 kB / 483.5 MB, free: 2.215 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 9.859e-05/0.1492, allocations: 125.8 kB / 483.7 MB, free: 2.082 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.041e-05/0.1492, allocations: 3.906 kB / 483.7 MB, free: 2.078 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.611e-05/0.1493, allocations: 7.906 kB / 483.7 MB, free: 2.066 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.975e-06/0.1493, allocations: 0 / 483.7 MB, free: 2.066 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.1493, allocations: 3.938 kB / 483.7 MB, free: 2.062 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.284e-06/0.1493, allocations: 0 / 483.7 MB, free: 2.062 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002834/0.1496, allocations: 306.5 kB / 484 MB, free: 1.707 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.213e-06/0.1496, allocations: 0 / 484 MB, free: 1.707 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.709e-05/0.1496, allocations: 0 / 484 MB, free: 1.707 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.238e-06/0.1496, allocations: 0 / 484 MB, free: 1.707 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.546e-06/0.1496, allocations: 7.938 kB / 484 MB, free: 1.699 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.685e-06/0.1496, allocations: 3.938 kB / 484 MB, free: 1.695 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.1496, allocations: 0 / 484 MB, free: 1.695 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001526/0.1498, allocations: 147.5 kB / 484.1 MB, free: 1.535 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.198e-05/0.1499, allocations: 85.16 kB / 484.2 MB, free: 1.434 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.494e-05/0.1499, allocations: 4.031 kB / 484.2 MB, free: 1.43 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.552e-05/0.1499, allocations: 3.938 kB / 484.2 MB, free: 1.426 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.791e-05/0.15, allocations: 0 / 484.2 MB, free: 1.426 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.146e-06/0.15, allocations: 0 / 484.2 MB, free: 1.426 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.554e-05/0.15, allocations: 99.27 kB / 484.3 MB, free: 1.328 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1501, allocations: 288 / 484.3 MB, free: 1.328 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002121/0.1503, allocations: 11.84 kB / 484.3 MB, free: 1.316 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.0001024/0.1504, allocations: 99.12 kB / 484.4 MB, free: 1.211 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.656e-05/0.1505, allocations: 23.98 kB / 484.5 MB, free: 1.188 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.1505, allocations: 0 / 484.5 MB, free: 1.188 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 1.566e-05/0.1505, allocations: 4 kB / 484.5 MB, free: 1.184 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002589/0.1508, allocations: 14.33 kB / 484.5 MB, free: 1.172 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003276/0.1511, allocations: 167.1 kB / 484.6 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002825/0.1514, allocations: 0.6924 MB / 485.3 MB, free: 264 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.139e-05/0.1514, allocations: 7.438 kB / 485.3 MB, free: 256 kB / 350.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1514, allocations: 0 / 485.3 MB, free: 256 kB / 350.1 MB Notification: Performance of Templates: time 0.002164/0.1536, allocations: 0.7291 MB / 486.1 MB, free: 15.52 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 -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