Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00196/0.00196, allocations: 89.92 kB / 20.48 MB, free: 1.363 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002453/0.002453, allocations: 210 kB / 23.77 MB, free: 4.52 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.495/1.495, allocations: 207.7 MB / 234.6 MB, free: 9.781 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2368/0.2368, allocations: 44.26 MB / 331.1 MB, free: 9.309 MB / 270.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.Hysteresis,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_Hysteresis",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Hysteresis,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_Hysteresis",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002288/0.002288, allocations: 71.89 kB / 468.3 MB, free: 4.348 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1333/0.1356, allocations: 61.03 MB / 0.5169 GB, free: 7.184 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.002978/0.1385, allocations: 1.451 MB / 0.5183 GB, free: 5.723 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009067/0.1394, allocations: 433 kB / 0.5187 GB, free: 5.293 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.225e-05/0.1395, allocations: 7.938 kB / 0.5187 GB, free: 5.285 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 3.027e-05/0.1395, allocations: 0 / 0.5187 GB, free: 5.285 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 7.005e-05/0.1396, allocations: 7.938 kB / 0.5187 GB, free: 5.277 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002639/0.1399, allocations: 19.92 kB / 0.5188 GB, free: 5.258 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001136/0.14, allocations: 31.92 kB / 0.5188 GB, free: 5.227 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001459/0.1401, allocations: 4.281 kB / 0.5188 GB, free: 5.223 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000131/0.1402, allocations: 23.91 kB / 0.5188 GB, free: 5.199 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.304e-05/0.1403, allocations: 15.92 kB / 0.5188 GB, free: 5.184 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.85e-05/0.1404, allocations: 4 kB / 0.5188 GB, free: 5.18 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.134e-05/0.1404, allocations: 3.938 kB / 0.5188 GB, free: 5.176 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.523e-05/0.1404, allocations: 8 kB / 0.5188 GB, free: 5.168 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 4.293e-05/0.1404, allocations: 15.91 kB / 0.5189 GB, free: 5.152 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000114/0.1406, allocations: 31.84 kB / 0.5189 GB, free: 5.121 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.972e-06/0.1406, allocations: 4 kB / 0.5189 GB, free: 5.117 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.1406, allocations: 0 / 0.5189 GB, free: 5.117 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.492e-06/0.1406, allocations: 0 / 0.5189 GB, free: 5.117 MB / 398.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.0005617/0.1411, allocations: 270.3 kB / 0.5192 GB, free: 4.824 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.351e-05/0.1412, allocations: 12.03 kB / 0.5192 GB, free: 4.812 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.551e-05/0.1412, allocations: 192 / 0.5192 GB, free: 4.812 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.817e-05/0.1412, allocations: 30.75 kB / 0.5192 GB, free: 4.773 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.102e-05/0.1413, allocations: 12.88 kB / 0.5192 GB, free: 4.762 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001396/0.1414, allocations: 106.5 kB / 0.5193 GB, free: 4.633 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.327e-05/0.1414, allocations: 8.375 kB / 0.5193 GB, free: 4.625 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.602e-05/0.1414, allocations: 384 / 0.5193 GB, free: 4.625 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002183/0.1417, allocations: 96.97 kB / 0.5194 GB, free: 4.512 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.344e-05/0.1417, allocations: 0 / 0.5194 GB, free: 4.512 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.335e-05/0.1417, allocations: 3.984 kB / 0.5194 GB, free: 4.508 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.739e-06/0.1417, allocations: 0 / 0.5194 GB, free: 4.508 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.526e-05/0.1418, allocations: 19.98 kB / 0.5194 GB, free: 4.488 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004859/0.1423, allocations: 227.9 kB / 0.5197 GB, free: 4.223 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001163/0.1424, allocations: 34.56 kB / 0.5197 GB, free: 4.18 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.142e-05/0.1425, allocations: 20.84 kB / 0.5197 GB, free: 4.156 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.957e-05/0.1425, allocations: 4 kB / 0.5197 GB, free: 4.152 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.261e-05/0.1425, allocations: 30.56 kB / 0.5197 GB, free: 4.113 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 1.002e-06/0.1425, allocations: 0 / 0.5197 GB, free: 4.113 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002937/0.1428, allocations: 65.62 kB / 0.5198 GB, free: 4.043 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.094e-05/0.1429, allocations: 81.11 kB / 0.5199 GB, free: 3.945 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.905e-05/0.143, allocations: 105.8 kB / 0.52 GB, free: 3.832 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.163e-05/0.143, allocations: 29.77 kB / 0.52 GB, free: 3.797 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.098e-05/0.1431, allocations: 92.14 kB / 0.5201 GB, free: 3.703 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.905e-05/0.1431, allocations: 7.938 kB / 0.5201 GB, free: 3.695 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.342e-05/0.1431, allocations: 21.7 kB / 0.5201 GB, free: 3.668 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001573/0.1433, allocations: 314.8 kB / 0.5204 GB, free: 3.352 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.261e-05/0.1433, allocations: 19.92 kB / 0.5204 GB, free: 3.332 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.004e-05/0.1434, allocations: 47.42 kB / 0.5205 GB, free: 3.273 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.41e-05/0.1435, allocations: 24.84 kB / 0.5205 GB, free: 3.246 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.1435, allocations: 0 / 0.5205 GB, free: 3.246 MB / 398.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001335/0.1436, allocations: 65.7 kB / 0.5206 GB, free: 3.176 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.407e-05/0.1436, allocations: 4 kB / 0.5206 GB, free: 3.172 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.342e-06/0.1437, allocations: 4 kB / 0.5206 GB, free: 3.168 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.333e-05/0.1437, allocations: 0 / 0.5206 GB, free: 3.168 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.195e-05/0.1437, allocations: 3.938 kB / 0.5206 GB, free: 3.164 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.084e-05/0.1438, allocations: 7.984 kB / 0.5206 GB, free: 3.156 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.784e-05/0.1438, allocations: 4 kB / 0.5206 GB, free: 3.152 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.586e-06/0.1438, allocations: 0 / 0.5206 GB, free: 3.152 MB / 398.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.000112/0.1439, allocations: 117.8 kB / 0.5207 GB, free: 3.027 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.822e-05/0.144, allocations: 15.94 kB / 0.5207 GB, free: 3.012 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.77e-05/0.144, allocations: 11.56 kB / 0.5207 GB, free: 2.996 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.122e-06/0.144, allocations: 0 / 0.5207 GB, free: 2.996 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.957e-06/0.144, allocations: 0 / 0.5207 GB, free: 2.996 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.804e-06/0.144, allocations: 0 / 0.5207 GB, free: 2.996 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001614/0.1442, allocations: 132.7 kB / 0.5209 GB, free: 2.824 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.1442, allocations: 0 / 0.5209 GB, free: 2.824 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.59e-05/0.1442, allocations: 4 kB / 0.5209 GB, free: 2.82 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.463e-06/0.1442, allocations: 0 / 0.5209 GB, free: 2.82 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.09e-05/0.1442, allocations: 3.984 kB / 0.5209 GB, free: 2.816 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.1442, allocations: 0 / 0.5209 GB, free: 2.816 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.1442, allocations: 0 / 0.5209 GB, free: 2.816 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001917/0.1444, allocations: 159.4 kB / 0.521 GB, free: 2.645 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.055e-05/0.1444, allocations: 7.938 kB / 0.521 GB, free: 2.637 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.862e-05/0.1445, allocations: 0 / 0.521 GB, free: 2.637 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.573e-05/0.1446, allocations: 8 kB / 0.521 GB, free: 2.629 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.512e-05/0.1446, allocations: 8.125 kB / 0.521 GB, free: 2.621 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.272e-06/0.1446, allocations: 4 kB / 0.521 GB, free: 2.617 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.07e-05/0.1447, allocations: 83.27 kB / 0.5211 GB, free: 2.535 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1447, allocations: 0 / 0.5211 GB, free: 2.535 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000221/0.1449, allocations: 12 kB / 0.5211 GB, free: 2.523 MB / 398.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.0004769/0.1454, allocations: 0.6812 MB / 0.5218 GB, free: 1.816 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000146/0.1455, allocations: 31.86 kB / 0.5218 GB, free: 1.785 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.1455, allocations: 4 kB / 0.5218 GB, free: 1.781 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.293e-05/0.1456, allocations: 15.98 kB / 0.5219 GB, free: 1.766 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002154/0.1458, allocations: 0 / 0.5219 GB, free: 1.766 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004576/0.1462, allocations: 168.4 kB / 0.522 GB, free: 1.562 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.44e-05/0.1463, allocations: 63.34 kB / 0.5221 GB, free: 1.48 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 3.469e-05/0.1463, allocations: 7.984 kB / 0.5221 GB, free: 1.473 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.525e-05/0.1464, allocations: 7.438 kB / 0.5221 GB, free: 1.465 MB / 398.1 MB Notification: Performance of SimCode: time 3.81e-07/0.1464, allocations: 0 / 0.5221 GB, free: 1.465 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02118/0.1676, allocations: 1.717 MB / 0.5238 GB, free: 15.75 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.61/11.78, allocations: 11.66 kB / 0.5238 GB, free: 15.74 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Blocks_Hysteresis_fmu --startTime=0 --stopTime=3 --stepSize=0.000598325 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Blocks_Hysteresis.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.776727714925073] Failed to read output from testmodel.py, exit status != 0: ['time', 'hysteresis.y'] 11.94297644100152 11.97266947 11.826958528 Calling exit ...