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.001683/0.001683, allocations: 121.2 kB / 18.5 MB, free: 4.488 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.002013/0.002013, allocations: 214.6 kB / 21.46 MB, free: 1.535 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.54/1.54, allocations: 230.4 MB / 254.7 MB, free: 15.03 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.2342/0.2342, allocations: 46.94 MB / 357.7 MB, free: 10.19 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: "" <> buildModelFMU(ModelicaTest.Blocks.SelfResettingIntegrator,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_SelfResettingIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.SelfResettingIntegrator,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_SelfResettingIntegrator",fmuType="me",version="2.0",platforms={"static"}) [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.002276/0.002276, allocations: 83.86 kB / 0.4917 GB, free: 7.73 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1265/0.1288, allocations: 66.04 MB / 0.5562 GB, free: 5.562 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.002097/0.1309, allocations: 0.819 MB / 0.557 GB, free: 4.742 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002161/0.1311, allocations: 55.83 kB / 0.557 GB, free: 4.688 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.435e-05/0.1311, allocations: 0 / 0.557 GB, free: 4.688 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 9.79e-05/0.1312, allocations: 3.938 kB / 0.557 GB, free: 4.684 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 1.837e-05/0.1313, allocations: 3.938 kB / 0.557 GB, free: 4.68 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001084/0.1314, allocations: 15.98 kB / 0.557 GB, free: 4.664 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001163/0.1315, allocations: 43.84 kB / 0.5571 GB, free: 4.621 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.337e-05/0.1316, allocations: 15.97 kB / 0.5571 GB, free: 4.605 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.819e-05/0.1316, allocations: 11.94 kB / 0.5571 GB, free: 4.594 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.986e-05/0.1317, allocations: 15.92 kB / 0.5571 GB, free: 4.578 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 1.896e-05/0.1317, allocations: 4 kB / 0.5571 GB, free: 4.574 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.536e-06/0.1317, allocations: 4 kB / 0.5571 GB, free: 4.57 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.969e-05/0.1317, allocations: 8 kB / 0.5571 GB, free: 4.562 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 3.345e-05/0.1317, allocations: 15.88 kB / 0.5571 GB, free: 4.547 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001121/0.1318, allocations: 47.69 kB / 0.5572 GB, free: 4.5 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.1319, allocations: 0 / 0.5572 GB, free: 4.5 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.1319, allocations: 0 / 0.5572 GB, free: 4.5 MB / 414.1 MB Notification: Performance of Transformations before backend: time 4.969e-06/0.1319, allocations: 0 / 0.5572 GB, free: 4.5 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.0004417/0.1323, allocations: 351.3 kB / 0.5575 GB, free: 4.105 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.881e-05/0.1323, allocations: 8.031 kB / 0.5575 GB, free: 4.098 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.54e-05/0.1324, allocations: 38.75 kB / 0.5576 GB, free: 4.051 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.782e-05/0.1324, allocations: 4.938 kB / 0.5576 GB, free: 4.047 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002194/0.1326, allocations: 180.3 kB / 0.5577 GB, free: 3.832 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.951e-06/0.1326, allocations: 384 / 0.5577 GB, free: 3.832 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.2e-05/0.1326, allocations: 8.375 kB / 0.5578 GB, free: 3.824 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001162/0.1328, allocations: 58.17 kB / 0.5578 GB, free: 3.762 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.438e-06/0.1328, allocations: 3.938 kB / 0.5578 GB, free: 3.758 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.215e-06/0.1328, allocations: 0 / 0.5578 GB, free: 3.758 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.597e-06/0.1328, allocations: 0 / 0.5578 GB, free: 3.758 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.048e-05/0.1328, allocations: 16 kB / 0.5578 GB, free: 3.742 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004681/0.1333, allocations: 292.7 kB / 0.5581 GB, free: 3.406 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.338e-05/0.1333, allocations: 26.52 kB / 0.5581 GB, free: 3.371 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.951e-05/0.1334, allocations: 8.859 kB / 0.5581 GB, free: 3.359 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.645e-06/0.1334, allocations: 3.984 kB / 0.5581 GB, free: 3.355 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.234e-05/0.1335, allocations: 55.47 kB / 0.5582 GB, free: 3.289 MB / 414.1 MB Notification: Performance of pre-optimization done (n=3): time 1.172e-06/0.1335, allocations: 0 / 0.5582 GB, free: 3.289 MB / 414.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001367/0.1336, allocations: 57.58 kB / 0.5583 GB, free: 3.227 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.326e-05/0.1336, allocations: 51.41 kB / 0.5583 GB, free: 3.164 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.917e-05/0.1337, allocations: 117.8 kB / 0.5584 GB, free: 3.039 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.684e-05/0.1337, allocations: 25.7 kB / 0.5584 GB, free: 3.008 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.423e-05/0.1338, allocations: 96.03 kB / 0.5585 GB, free: 2.91 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.153e-05/0.1338, allocations: 3.953 kB / 0.5585 GB, free: 2.906 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.452e-05/0.1338, allocations: 21.72 kB / 0.5586 GB, free: 2.879 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001359/0.134, allocations: 326.8 kB / 0.5589 GB, free: 2.551 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.522e-05/0.134, allocations: 0 / 0.5589 GB, free: 2.551 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.415e-05/0.134, allocations: 29.7 kB / 0.5589 GB, free: 2.516 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.03e-05/0.1341, allocations: 25.66 kB / 0.5589 GB, free: 2.484 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.372e-06/0.1341, allocations: 0 / 0.5589 GB, free: 2.484 MB / 414.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.535e-05/0.1342, allocations: 57.69 kB / 0.559 GB, free: 2.422 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.154e-05/0.1342, allocations: 4 kB / 0.559 GB, free: 2.418 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.938e-06/0.1342, allocations: 0 / 0.559 GB, free: 2.418 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.094e-05/0.1342, allocations: 3.938 kB / 0.559 GB, free: 2.414 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.091e-05/0.1342, allocations: 4 kB / 0.559 GB, free: 2.41 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.779e-06/0.1342, allocations: 0 / 0.559 GB, free: 2.41 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.406e-05/0.1343, allocations: 11.89 kB / 0.559 GB, free: 2.398 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.007e-06/0.1343, allocations: 0 / 0.559 GB, free: 2.398 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 8.228e-05/0.1343, allocations: 113.8 kB / 0.5591 GB, free: 2.277 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.258e-06/0.1344, allocations: 0 / 0.5591 GB, free: 2.277 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.317e-05/0.1344, allocations: 15.92 kB / 0.5591 GB, free: 2.258 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.563e-06/0.1344, allocations: 0 / 0.5591 GB, free: 2.258 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.025e-06/0.1344, allocations: 0 / 0.5591 GB, free: 2.258 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.007e-06/0.1344, allocations: 3.938 kB / 0.5591 GB, free: 2.254 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003104/0.1347, allocations: 302.9 kB / 0.5594 GB, free: 1.902 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.1347, allocations: 0 / 0.5594 GB, free: 1.902 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.937e-05/0.1347, allocations: 0 / 0.5594 GB, free: 1.902 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.744e-06/0.1347, allocations: 0 / 0.5594 GB, free: 1.902 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.073e-05/0.1347, allocations: 15.88 kB / 0.5594 GB, free: 1.887 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.1347, allocations: 4 kB / 0.5594 GB, free: 1.883 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.1347, allocations: 0 / 0.5594 GB, free: 1.883 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000145/0.1349, allocations: 143.9 kB / 0.5596 GB, free: 1.727 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.284e-05/0.1349, allocations: 85.09 kB / 0.5596 GB, free: 1.625 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.669e-05/0.135, allocations: 11.91 kB / 0.5597 GB, free: 1.613 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.614e-05/0.135, allocations: 3.984 kB / 0.5597 GB, free: 1.609 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.525e-05/0.135, allocations: 0 / 0.5597 GB, free: 1.609 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.131e-06/0.135, allocations: 4 kB / 0.5597 GB, free: 1.605 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.678e-05/0.1351, allocations: 95.33 kB / 0.5598 GB, free: 1.512 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1351, allocations: 3.938 kB / 0.5598 GB, free: 1.508 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000214/0.1353, allocations: 4 kB / 0.5598 GB, free: 1.504 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.0004298/0.1357, allocations: 0.6813 MB / 0.5604 GB, free: 0.7969 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 8.72e-05/0.1358, allocations: 23.92 kB / 0.5605 GB, free: 0.7734 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.1358, allocations: 4.062 kB / 0.5605 GB, free: 0.7695 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 2.015e-05/0.1358, allocations: 8 kB / 0.5605 GB, free: 0.7617 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002521/0.1361, allocations: 15.92 kB / 0.5605 GB, free: 0.7461 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001171/0.1373, allocations: 1.286 MB / 0.5617 GB, free: 15.38 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003023/0.1376, allocations: 0.6846 MB / 0.5624 GB, free: 14.67 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 2.118e-05/0.1376, allocations: 4 kB / 0.5624 GB, free: 14.66 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.078e-05/0.1376, allocations: 19.44 kB / 0.5624 GB, free: 14.64 MB / 430.1 MB Notification: Performance of SimCode: time 4.41e-07/0.1376, allocations: 4 kB / 0.5624 GB, free: 14.64 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02795/0.1656, allocations: 1.563 MB / 0.564 GB, free: 13.16 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.8/7.966, allocations: 4.062 kB / 0.564 GB, free: 13.16 MB / 430.1 MB " [Timeout remaining time 652] (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 & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.SelfResettingIntegrator_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000998004 ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_SelfResettingIntegrator.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.143563803751022] Failed to read output from testmodel.py, exit status != 0: ['time', 'integrator.y'] 8.03357977187261 8.04941078 7.914685007 Calling exit ...