Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Hysteresis.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.001492/0.001492, allocations: 118.7 kB / 18.5 MB, free: 4.602 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.001781/0.001781, allocations: 210.5 kB / 21.46 MB, free: 1.648 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.51/1.51, allocations: 230.2 MB / 254.5 MB, free: 15.24 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.239/0.239, allocations: 46.89 MB / 357.4 MB, free: 10.51 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.Hysteresis,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Hysteresis,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_Hysteresis",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.003141/0.003141, allocations: 79.88 kB / 0.4912 GB, free: 8.551 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1431/0.1462, allocations: 65.99 MB / 0.5556 GB, free: 6.438 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.003181/0.1494, allocations: 1.473 MB / 0.5571 GB, free: 4.949 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001056/0.1505, allocations: 484.5 kB / 0.5575 GB, free: 4.473 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.674e-05/0.1505, allocations: 3.938 kB / 0.5575 GB, free: 4.469 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 3.013e-05/0.1506, allocations: 3.984 kB / 0.5575 GB, free: 4.465 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 5.539e-05/0.1506, allocations: 3.938 kB / 0.5576 GB, free: 4.461 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002473/0.1509, allocations: 31.91 kB / 0.5576 GB, free: 4.43 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001235/0.151, allocations: 43.78 kB / 0.5576 GB, free: 4.387 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.544e-05/0.1511, allocations: 4 kB / 0.5576 GB, free: 4.383 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001438/0.1512, allocations: 19.98 kB / 0.5576 GB, free: 4.363 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.775e-05/0.1513, allocations: 23.91 kB / 0.5577 GB, free: 4.34 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 2.882e-05/0.1513, allocations: 7.938 kB / 0.5577 GB, free: 4.332 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.447e-05/0.1514, allocations: 8 kB / 0.5577 GB, free: 4.324 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.271e-05/0.1514, allocations: 0 / 0.5577 GB, free: 4.324 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 3.356e-05/0.1514, allocations: 15.92 kB / 0.5577 GB, free: 4.309 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001529/0.1516, allocations: 35.89 kB / 0.5577 GB, free: 4.273 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.1516, allocations: 0 / 0.5577 GB, free: 4.273 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.1516, allocations: 0 / 0.5577 GB, free: 4.273 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.371e-06/0.1516, allocations: 0 / 0.5577 GB, free: 4.273 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.00065/0.1523, allocations: 371.1 kB / 0.5581 GB, free: 3.863 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.61e-05/0.1523, allocations: 12.03 kB / 0.5581 GB, free: 3.852 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.086e-05/0.1523, allocations: 34.69 kB / 0.5581 GB, free: 3.809 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001595/0.1525, allocations: 12.92 kB / 0.5581 GB, free: 3.797 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003169/0.1528, allocations: 172.3 kB / 0.5583 GB, free: 3.59 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.587e-06/0.1528, allocations: 4.375 kB / 0.5583 GB, free: 3.586 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.598e-05/0.1529, allocations: 4.375 kB / 0.5583 GB, free: 3.582 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001837/0.153, allocations: 59.53 kB / 0.5584 GB, free: 3.512 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.157e-06/0.153, allocations: 0 / 0.5584 GB, free: 3.512 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.09e-05/0.1531, allocations: 0 / 0.5584 GB, free: 3.512 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.967e-06/0.1531, allocations: 8 kB / 0.5584 GB, free: 3.504 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.666e-05/0.1532, allocations: 23.91 kB / 0.5584 GB, free: 3.48 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004281/0.1536, allocations: 264.9 kB / 0.5587 GB, free: 3.172 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001003/0.1537, allocations: 34.56 kB / 0.5587 GB, free: 3.129 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.718e-05/0.1537, allocations: 16.91 kB / 0.5587 GB, free: 3.109 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.777e-05/0.1538, allocations: 0 / 0.5587 GB, free: 3.109 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.089e-05/0.1538, allocations: 42.48 kB / 0.5587 GB, free: 3.059 MB / 414.1 MB Notification: Performance of pre-optimization done (n=2): time 1.011e-06/0.1538, allocations: 0 / 0.5587 GB, free: 3.059 MB / 414.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002583/0.1541, allocations: 53.69 kB / 0.5588 GB, free: 3 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.73e-05/0.1541, allocations: 89.22 kB / 0.5589 GB, free: 2.895 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001116/0.1542, allocations: 109.8 kB / 0.559 GB, free: 2.777 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.545e-05/0.1543, allocations: 29.7 kB / 0.559 GB, free: 2.742 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.493e-05/0.1543, allocations: 84.14 kB / 0.5591 GB, free: 2.656 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.918e-05/0.1544, allocations: 7.891 kB / 0.5591 GB, free: 2.648 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.147e-05/0.1544, allocations: 17.72 kB / 0.5591 GB, free: 2.625 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002353/0.1546, allocations: 322.8 kB / 0.5594 GB, free: 2.301 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.902e-05/0.1547, allocations: 8 kB / 0.5594 GB, free: 2.293 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.126e-05/0.1547, allocations: 33.64 kB / 0.5595 GB, free: 2.254 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.183e-05/0.1548, allocations: 24.84 kB / 0.5595 GB, free: 2.227 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.664e-06/0.1548, allocations: 0 / 0.5595 GB, free: 2.227 MB / 414.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001352/0.155, allocations: 58.05 kB / 0.5595 GB, free: 2.164 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.607e-05/0.155, allocations: 4 kB / 0.5596 GB, free: 2.16 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.694e-06/0.155, allocations: 4 kB / 0.5596 GB, free: 2.156 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.508e-05/0.155, allocations: 0 / 0.5596 GB, free: 2.156 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.208e-05/0.1551, allocations: 11.91 kB / 0.5596 GB, free: 2.145 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.849e-06/0.1551, allocations: 4 kB / 0.5596 GB, free: 2.141 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.294e-05/0.1551, allocations: 11.94 kB / 0.5596 GB, free: 2.129 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.147e-06/0.1552, allocations: 4 kB / 0.5596 GB, free: 2.125 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (hysteresis.y,$PRE.hysteresis.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (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 prepare postOptimizeDAE: time 0.0001055/0.1553, allocations: 117.7 kB / 0.5597 GB, free: 2 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.006e-05/0.1553, allocations: 3.984 kB / 0.5597 GB, free: 1.996 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.691e-05/0.1553, allocations: 11.53 kB / 0.5597 GB, free: 1.984 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.803e-06/0.1553, allocations: 0 / 0.5597 GB, free: 1.984 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.417e-06/0.1553, allocations: 4 kB / 0.5597 GB, free: 1.98 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.394e-06/0.1553, allocations: 0 / 0.5597 GB, free: 1.98 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001996/0.1555, allocations: 165.6 kB / 0.5599 GB, free: 1.77 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.412e-06/0.1555, allocations: 0 / 0.5599 GB, free: 1.77 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.242e-05/0.1556, allocations: 4 kB / 0.5599 GB, free: 1.766 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.1556, allocations: 0 / 0.5599 GB, free: 1.766 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.013e-06/0.1556, allocations: 0 / 0.5599 GB, free: 1.766 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.741e-06/0.1556, allocations: 3.984 kB / 0.5599 GB, free: 1.762 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.1556, allocations: 0 / 0.5599 GB, free: 1.762 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001947/0.1558, allocations: 155.4 kB / 0.56 GB, free: 1.594 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.23e-05/0.1558, allocations: 81.11 kB / 0.5601 GB, free: 1.496 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.061e-05/0.1559, allocations: 3.984 kB / 0.5601 GB, free: 1.492 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.406e-05/0.1559, allocations: 8 kB / 0.5601 GB, free: 1.484 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.567e-05/0.156, allocations: 15.92 kB / 0.5601 GB, free: 1.469 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.068e-06/0.156, allocations: 0 / 0.5601 GB, free: 1.469 MB / 414.1 MB Notification: Performance of sorting global known variables: time 6.79e-05/0.1561, allocations: 87.27 kB / 0.5602 GB, free: 1.383 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1561, allocations: 0 / 0.5602 GB, free: 1.383 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002276/0.1563, allocations: 16.03 kB / 0.5602 GB, free: 1.367 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (hysteresis.y) * Number of discrete states: 1 (hysteresis.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.000542/0.1568, allocations: 0.6772 MB / 0.5609 GB, free: 0.6641 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001795/0.157, allocations: 27.92 kB / 0.5609 GB, free: 0.6367 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.157, allocations: 4.031 kB / 0.5609 GB, free: 0.6328 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.521e-05/0.1571, allocations: 15.98 kB / 0.5609 GB, free: 0.6172 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002254/0.1573, allocations: 4.281 kB / 0.5609 GB, free: 0.6133 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001632/0.1589, allocations: 1.266 MB / 0.5622 GB, free: 15.27 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004325/0.1594, allocations: 0.6768 MB / 0.5628 GB, free: 14.56 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 3.678e-05/0.1594, allocations: 7.984 kB / 0.5629 GB, free: 14.55 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.622e-05/0.1594, allocations: 19.42 kB / 0.5629 GB, free: 14.54 MB / 430.1 MB Notification: Performance of SimCode: time 4.01e-07/0.1594, allocations: 0 / 0.5629 GB, free: 14.54 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02518/0.1846, allocations: 1.531 MB / 0.5644 GB, free: 13.07 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.208/8.393, allocations: 3.938 kB / 0.5644 GB, free: 13.07 MB / 430.1 MB " [Timeout remaining time 652] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Hysteresis.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Hysteresis.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Hysteresis.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Hysteresis.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Hysteresis_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_Hysteresis_fmu --startTime=0 --stopTime=3 --stepSize=0.000598325 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_Hysteresis.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.378253783099353] Failed to read output from testmodel.py, exit status != 0: ['time', 'hysteresis.y'] 8.462895259261131 8.48863136 8.332204053 Calling exit ...