Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.SelfResettingIntegrator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001738/0.001738, allocations: 113.8 kB / 19.18 MB, free: 3.762 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002327/0.002327, allocations: 208.9 kB / 22.13 MB, free: 0.8125 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.481/1.481, allocations: 230.2 MB / 255.2 MB, free: 15.23 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.226/0.226, allocations: 46.88 MB / 358.1 MB, free: 10.54 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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=5010,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.SelfResettingIntegrator") translateModel(ModelicaTest.Blocks.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5010,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.SelfResettingIntegrator") [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002203/0.002203, allocations: 79.88 kB / 0.4924 GB, free: 8.082 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1359/0.1381, allocations: 65.97 MB / 0.5568 GB, free: 5.977 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.002199/0.1403, allocations: 0.8239 MB / 0.5576 GB, free: 5.148 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002186/0.1405, allocations: 51.83 kB / 0.5576 GB, free: 5.098 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.307e-05/0.1406, allocations: 4 kB / 0.5576 GB, free: 5.094 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001214/0.1407, allocations: 3.938 kB / 0.5576 GB, free: 5.09 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 2.34e-05/0.1407, allocations: 3.938 kB / 0.5576 GB, free: 5.086 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000129/0.1408, allocations: 19.97 kB / 0.5577 GB, free: 5.066 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001202/0.141, allocations: 39.86 kB / 0.5577 GB, free: 5.027 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001198/0.1411, allocations: 19.91 kB / 0.5577 GB, free: 5.008 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.05e-05/0.1411, allocations: 15.94 kB / 0.5577 GB, free: 4.992 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.627e-05/0.1411, allocations: 11.92 kB / 0.5577 GB, free: 4.98 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 1.481e-05/0.1412, allocations: 4 kB / 0.5578 GB, free: 4.977 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.193e-05/0.1412, allocations: 4 kB / 0.5578 GB, free: 4.973 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.863e-05/0.1412, allocations: 4 kB / 0.5578 GB, free: 4.969 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 3.35e-05/0.1412, allocations: 15.88 kB / 0.5578 GB, free: 4.953 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001158/0.1413, allocations: 39.81 kB / 0.5578 GB, free: 4.914 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.012e-06/0.1414, allocations: 4 kB / 0.5578 GB, free: 4.91 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.1414, allocations: 0 / 0.5578 GB, free: 4.91 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.861e-06/0.1414, allocations: 3.938 kB / 0.5578 GB, free: 4.906 MB / 414.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.0005222/0.1419, allocations: 355.3 kB / 0.5582 GB, free: 4.508 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.978e-05/0.1419, allocations: 12.03 kB / 0.5582 GB, free: 4.496 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.096e-05/0.142, allocations: 0.9375 kB / 0.5582 GB, free: 4.496 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002596/0.1422, allocations: 180.3 kB / 0.5583 GB, free: 4.281 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.114e-05/0.1422, allocations: 384 / 0.5583 GB, free: 4.281 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.678e-05/0.1422, allocations: 4.375 kB / 0.5583 GB, free: 4.277 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001295/0.1424, allocations: 54.23 kB / 0.5584 GB, free: 4.219 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.988e-06/0.1424, allocations: 192 / 0.5584 GB, free: 4.219 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.183e-05/0.1424, allocations: 3.938 kB / 0.5584 GB, free: 4.215 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.32e-06/0.1424, allocations: 4 kB / 0.5584 GB, free: 4.211 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.906e-05/0.1425, allocations: 23.91 kB / 0.5584 GB, free: 4.188 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005295/0.143, allocations: 288.8 kB / 0.5587 GB, free: 3.855 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.07e-05/0.143, allocations: 26.52 kB / 0.5587 GB, free: 3.82 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.977e-05/0.1431, allocations: 8.922 kB / 0.5587 GB, free: 3.809 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.221e-05/0.1431, allocations: 0 / 0.5587 GB, free: 3.809 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.573e-05/0.1432, allocations: 51.41 kB / 0.5588 GB, free: 3.746 MB / 414.1 MB Notification: Performance of pre-optimization done (n=3): time 1.022e-06/0.1432, allocations: 0 / 0.5588 GB, free: 3.746 MB / 414.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001561/0.1433, allocations: 57.62 kB / 0.5588 GB, free: 3.684 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.929e-05/0.1434, allocations: 55.34 kB / 0.5589 GB, free: 3.617 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.514e-05/0.1435, allocations: 113.8 kB / 0.559 GB, free: 3.496 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.685e-05/0.1435, allocations: 29.7 kB / 0.559 GB, free: 3.461 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.548e-05/0.1435, allocations: 100.4 kB / 0.5591 GB, free: 3.359 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.367e-05/0.1435, allocations: 7.953 kB / 0.5591 GB, free: 3.352 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.248e-05/0.1436, allocations: 17.72 kB / 0.5592 GB, free: 3.328 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001435/0.1437, allocations: 326.7 kB / 0.5595 GB, free: 3 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.955e-05/0.1437, allocations: 11.94 kB / 0.5595 GB, free: 2.988 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.517e-05/0.1438, allocations: 13.72 kB / 0.5595 GB, free: 2.969 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.662e-05/0.1438, allocations: 25.72 kB / 0.5595 GB, free: 2.938 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.1438, allocations: 11.92 kB / 0.5595 GB, free: 2.926 MB / 414.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.648e-05/0.1439, allocations: 45.7 kB / 0.5596 GB, free: 2.875 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.522e-05/0.1439, allocations: 5.719 kB / 0.5596 GB, free: 2.871 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.987e-06/0.1439, allocations: 0 / 0.5596 GB, free: 2.871 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.616e-05/0.1439, allocations: 4 kB / 0.5596 GB, free: 2.867 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.322e-05/0.144, allocations: 3.984 kB / 0.5596 GB, free: 2.863 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.778e-06/0.144, allocations: 7.938 kB / 0.5596 GB, free: 2.855 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.8e-05/0.144, allocations: 3.953 kB / 0.5596 GB, free: 2.852 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.085e-06/0.144, allocations: 3.938 kB / 0.5596 GB, free: 2.848 MB / 414.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.237e-05/0.1441, allocations: 117.9 kB / 0.5597 GB, free: 2.723 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.101e-05/0.1441, allocations: 4 kB / 0.5597 GB, free: 2.719 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.638e-05/0.1441, allocations: 7.906 kB / 0.5597 GB, free: 2.707 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.182e-06/0.1441, allocations: 0 / 0.5597 GB, free: 2.707 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.045e-06/0.1442, allocations: 7.984 kB / 0.5597 GB, free: 2.699 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.685e-06/0.1442, allocations: 0 / 0.5597 GB, free: 2.699 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002944/0.1444, allocations: 298.5 kB / 0.56 GB, free: 2.352 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.1444, allocations: 3.938 kB / 0.56 GB, free: 2.348 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.087e-05/0.1445, allocations: 4 kB / 0.56 GB, free: 2.344 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.393e-06/0.1445, allocations: 4 kB / 0.56 GB, free: 2.34 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.866e-06/0.1445, allocations: 3.984 kB / 0.56 GB, free: 2.336 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.156e-06/0.1445, allocations: 3.938 kB / 0.56 GB, free: 2.332 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.1445, allocations: 0 / 0.56 GB, free: 2.332 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000153/0.1446, allocations: 143.5 kB / 0.5602 GB, free: 2.176 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.715e-05/0.1447, allocations: 85.09 kB / 0.5602 GB, free: 2.074 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.213e-05/0.1447, allocations: 0 / 0.5602 GB, free: 2.074 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.462e-05/0.1448, allocations: 3.938 kB / 0.5603 GB, free: 2.07 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.651e-05/0.1448, allocations: 12.47 kB / 0.5603 GB, free: 2.059 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.057e-06/0.1448, allocations: 0 / 0.5603 GB, free: 2.059 MB / 414.1 MB Notification: Performance of sorting global known variables: time 6.533e-05/0.1449, allocations: 99.2 kB / 0.5604 GB, free: 1.961 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1449, allocations: 0 / 0.5604 GB, free: 1.961 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002056/0.1451, allocations: 4.281 kB / 0.5604 GB, free: 1.957 MB / 414.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.000102/0.1452, allocations: 91.25 kB / 0.5605 GB, free: 1.859 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 9.224e-05/0.1453, allocations: 23.92 kB / 0.5605 GB, free: 1.836 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.1453, allocations: 3.938 kB / 0.5605 GB, free: 1.832 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 2.286e-05/0.1453, allocations: 19.98 kB / 0.5605 GB, free: 1.812 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002608/0.1456, allocations: 10.23 kB / 0.5605 GB, free: 1.805 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003533/0.1459, allocations: 163.2 kB / 0.5607 GB, free: 1.613 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002996/0.1462, allocations: 0.6807 MB / 0.5613 GB, free: 0.9062 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.298e-05/0.1462, allocations: 11.44 kB / 0.5613 GB, free: 0.8945 MB / 414.1 MB Notification: Performance of SimCode: time 2.81e-07/0.1462, allocations: 0 / 0.5613 GB, free: 0.8945 MB / 414.1 MB Notification: Performance of Templates: time 0.002243/0.1485, allocations: 0.732 MB / 0.5621 GB, free: 168 kB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.SelfResettingIntegrator.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.SelfResettingIntegrator.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.SelfResettingIntegrator.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.SelfResettingIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/SelfResettingIntegrator/SelfResettingIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.SelfResettingIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 7.385028525954112]