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.001389/0.001389, allocations: 104.5 kB / 17.85 MB, free: 5.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001505/0.001505, allocations: 205.8 kB / 18.79 MB, free: 4.727 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.348/1.348, allocations: 227.4 MB / 246.9 MB, free: 10.73 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2097/0.2097, allocations: 46.11 MB / 344.3 MB, free: 11.81 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00207/0.00207, allocations: 71.89 kB / 417.5 MB, free: 20.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1254/0.1274, allocations: 62.44 MB / 479.9 MB, free: 5.75 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.00207/0.1296, allocations: 0.8683 MB / 480.8 MB, free: 4.879 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001761/0.1298, allocations: 55.81 kB / 480.9 MB, free: 4.824 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.954e-05/0.1298, allocations: 4 kB / 480.9 MB, free: 4.82 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001034/0.13, allocations: 7.922 kB / 480.9 MB, free: 4.812 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 1.414e-05/0.13, allocations: 0 / 480.9 MB, free: 4.812 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 9.993e-05/0.1301, allocations: 12 kB / 480.9 MB, free: 4.801 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 8.837e-05/0.1302, allocations: 35.91 kB / 480.9 MB, free: 4.766 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.945e-05/0.1303, allocations: 12 kB / 480.9 MB, free: 4.754 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.876e-05/0.1303, allocations: 7.938 kB / 480.9 MB, free: 4.746 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.934e-05/0.1304, allocations: 19.86 kB / 481 MB, free: 4.727 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.71e-05/0.1304, allocations: 8 kB / 481 MB, free: 4.719 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.518e-06/0.1304, allocations: 0 / 481 MB, free: 4.719 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.923e-05/0.1304, allocations: 11.97 kB / 481 MB, free: 4.707 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.02e-05/0.1305, allocations: 15.88 kB / 481 MB, free: 4.691 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 6.591e-05/0.1305, allocations: 23.97 kB / 481 MB, free: 4.668 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.1305, allocations: 0 / 481 MB, free: 4.668 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.82e-07/0.1305, allocations: 0 / 481 MB, free: 4.668 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.547e-06/0.1306, allocations: 0 / 481 MB, free: 4.668 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.0004214/0.131, allocations: 351.7 kB / 481.4 MB, free: 4.273 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.283e-05/0.131, allocations: 12.88 kB / 481.4 MB, free: 4.262 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.433e-05/0.1311, allocations: 8.844 kB / 481.4 MB, free: 4.254 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001533/0.1312, allocations: 172.4 kB / 481.5 MB, free: 4.047 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.989e-06/0.1312, allocations: 4.359 kB / 481.5 MB, free: 4.043 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.787e-05/0.1313, allocations: 4.375 kB / 481.6 MB, free: 4.039 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001102/0.1314, allocations: 50.25 kB / 481.6 MB, free: 3.984 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.382e-06/0.1314, allocations: 192 / 481.6 MB, free: 3.984 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.042e-05/0.1314, allocations: 3.938 kB / 481.6 MB, free: 3.98 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.997e-06/0.1314, allocations: 0 / 481.6 MB, free: 3.98 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.348e-05/0.1315, allocations: 19.92 kB / 481.6 MB, free: 3.961 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004607/0.1319, allocations: 296.7 kB / 481.9 MB, free: 3.621 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.242e-05/0.132, allocations: 30.5 kB / 481.9 MB, free: 3.582 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.973e-05/0.132, allocations: 8.922 kB / 482 MB, free: 3.57 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.733e-06/0.132, allocations: 0 / 482 MB, free: 3.57 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001067/0.1321, allocations: 55.31 kB / 482 MB, free: 3.504 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 1.212e-06/0.1322, allocations: 4 kB / 482 MB, free: 3.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001361/0.1323, allocations: 45.69 kB / 482.1 MB, free: 3.449 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.138e-05/0.1323, allocations: 55.34 kB / 482.1 MB, free: 3.383 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.46e-05/0.1324, allocations: 117.8 kB / 482.2 MB, free: 3.258 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.647e-05/0.1325, allocations: 37.64 kB / 482.3 MB, free: 3.215 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.471e-05/0.1325, allocations: 92.03 kB / 482.3 MB, free: 3.121 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.248e-05/0.1325, allocations: 7.906 kB / 482.4 MB, free: 3.113 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.848e-05/0.1326, allocations: 21.72 kB / 482.4 MB, free: 3.086 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.942e-05/0.1327, allocations: 318.8 kB / 482.7 MB, free: 2.766 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.922e-05/0.1327, allocations: 8 kB / 482.7 MB, free: 2.758 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.332e-05/0.1327, allocations: 13.72 kB / 482.7 MB, free: 2.738 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.867e-05/0.1328, allocations: 25.72 kB / 482.7 MB, free: 2.707 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.1328, allocations: 0 / 482.7 MB, free: 2.707 MB / 350.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.824e-05/0.1329, allocations: 53.62 kB / 482.8 MB, free: 2.648 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.208e-05/0.1329, allocations: 8.031 kB / 482.8 MB, free: 2.641 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.117e-06/0.1329, allocations: 0 / 482.8 MB, free: 2.641 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.496e-05/0.1329, allocations: 4 kB / 482.8 MB, free: 2.637 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.373e-05/0.1329, allocations: 3.984 kB / 482.8 MB, free: 2.633 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.324e-06/0.133, allocations: 4 kB / 482.8 MB, free: 2.629 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.005e-05/0.133, allocations: 0 / 482.8 MB, free: 2.629 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.173e-06/0.133, allocations: 7.875 kB / 482.8 MB, free: 2.621 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.635e-05/0.1331, allocations: 117.8 kB / 482.9 MB, free: 2.496 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.243e-05/0.1331, allocations: 7.906 kB / 482.9 MB, free: 2.488 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.178e-05/0.1331, allocations: 11.91 kB / 483 MB, free: 2.473 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.734e-06/0.1331, allocations: 0 / 483 MB, free: 2.473 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.748e-06/0.1332, allocations: 0 / 483 MB, free: 2.473 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.957e-06/0.1332, allocations: 3.984 kB / 483 MB, free: 2.469 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002787/0.1334, allocations: 298.6 kB / 483.2 MB, free: 2.121 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.1335, allocations: 0 / 483.2 MB, free: 2.121 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.368e-05/0.1335, allocations: 7.938 kB / 483.3 MB, free: 2.113 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.1335, allocations: 0 / 483.3 MB, free: 2.113 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.125e-05/0.1335, allocations: 3.984 kB / 483.3 MB, free: 2.109 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.805e-06/0.1335, allocations: 7.938 kB / 483.3 MB, free: 2.102 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.1335, allocations: 3.984 kB / 483.3 MB, free: 2.098 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001261/0.1337, allocations: 151.8 kB / 483.4 MB, free: 1.934 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.565e-05/0.1337, allocations: 81.14 kB / 483.5 MB, free: 1.836 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.28e-05/0.1337, allocations: 0 / 483.5 MB, free: 1.836 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.614e-05/0.1338, allocations: 4.312 kB / 483.5 MB, free: 1.832 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.83e-05/0.1338, allocations: 7.984 kB / 483.5 MB, free: 1.824 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.861e-06/0.1338, allocations: 0 / 483.5 MB, free: 1.824 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.967e-05/0.1339, allocations: 107.2 kB / 483.6 MB, free: 1.719 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.302e-06/0.1339, allocations: 0 / 483.6 MB, free: 1.719 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002165/0.1341, allocations: 15.78 kB / 483.6 MB, free: 1.703 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 8.794e-05/0.1342, allocations: 91.25 kB / 483.7 MB, free: 1.605 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 7.448e-05/0.1343, allocations: 16 kB / 483.7 MB, free: 1.59 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.1343, allocations: 0 / 483.7 MB, free: 1.59 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.301e-05/0.1343, allocations: 15.98 kB / 483.7 MB, free: 1.574 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002736/0.1346, allocations: 4.062 kB / 483.8 MB, free: 1.57 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003153/0.1349, allocations: 177.2 kB / 483.9 MB, free: 1.363 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002289/0.1352, allocations: 0.6848 MB / 484.6 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.894e-05/0.1352, allocations: 7.438 kB / 484.6 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1352, allocations: 0 / 484.6 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of Templates: time 0.001826/0.137, allocations: 0.7269 MB / 485.3 MB, free: 15.92 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