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.001317/0.001317, allocations: 109 kB / 20.48 MB, free: 1.477 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.001481/0.001481, allocations: 208.8 kB / 23.78 MB, free: 4.688 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.436/1.436, allocations: 207.6 MB / 234.5 MB, free: 9.98 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.2289/0.2289, allocations: 44.24 MB / 331.1 MB, free: 9.504 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.002447/0.002447, allocations: 71.91 kB / 468.3 MB, free: 4.5 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1317/0.1341, allocations: 61.04 MB / 0.5169 GB, free: 7.328 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.002982/0.1371, allocations: 1.451 MB / 0.5183 GB, free: 5.867 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008345/0.138, allocations: 468.8 kB / 0.5188 GB, free: 5.402 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.512e-05/0.138, allocations: 0 / 0.5188 GB, free: 5.402 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 2.845e-05/0.138, allocations: 4 kB / 0.5188 GB, free: 5.398 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.305e-05/0.1381, allocations: 7.938 kB / 0.5188 GB, free: 5.391 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001932/0.1383, allocations: 23.92 kB / 0.5188 GB, free: 5.367 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 9.821e-05/0.1384, allocations: 31.86 kB / 0.5188 GB, free: 5.336 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001018/0.1385, allocations: 12.27 kB / 0.5188 GB, free: 5.324 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001046/0.1386, allocations: 19.92 kB / 0.5189 GB, free: 5.305 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.951e-05/0.1387, allocations: 15.92 kB / 0.5189 GB, free: 5.289 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.807e-05/0.1387, allocations: 4 kB / 0.5189 GB, free: 5.285 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.809e-06/0.1387, allocations: 3.938 kB / 0.5189 GB, free: 5.281 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.047e-05/0.1387, allocations: 3.938 kB / 0.5189 GB, free: 5.277 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.971e-05/0.1387, allocations: 19.92 kB / 0.5189 GB, free: 5.258 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001091/0.1389, allocations: 31.83 kB / 0.5189 GB, free: 5.227 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.1389, allocations: 4 kB / 0.5189 GB, free: 5.223 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1389, allocations: 4 kB / 0.5189 GB, free: 5.219 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.682e-06/0.1389, allocations: 0 / 0.5189 GB, free: 5.219 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.0005383/0.1394, allocations: 270.3 kB / 0.5192 GB, free: 4.926 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.128e-05/0.1395, allocations: 8.031 kB / 0.5192 GB, free: 4.918 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.104e-05/0.1395, allocations: 4.188 kB / 0.5192 GB, free: 4.914 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.859e-05/0.1395, allocations: 34.73 kB / 0.5192 GB, free: 4.871 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.545e-05/0.1396, allocations: 4.891 kB / 0.5193 GB, free: 4.867 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001259/0.1397, allocations: 110.5 kB / 0.5194 GB, free: 4.734 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.406e-05/0.1397, allocations: 384 / 0.5194 GB, free: 4.734 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.358e-05/0.1397, allocations: 4.375 kB / 0.5194 GB, free: 4.73 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002352/0.1399, allocations: 71.25 kB / 0.5194 GB, free: 4.648 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.208e-06/0.14, allocations: 0 / 0.5194 GB, free: 4.648 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.701e-05/0.14, allocations: 4 kB / 0.5194 GB, free: 4.645 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.07e-06/0.14, allocations: 0 / 0.5194 GB, free: 4.645 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001064/0.1401, allocations: 23.98 kB / 0.5195 GB, free: 4.621 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005408/0.1406, allocations: 235.9 kB / 0.5197 GB, free: 4.348 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000112/0.1408, allocations: 30.52 kB / 0.5197 GB, free: 4.309 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.55e-05/0.1408, allocations: 16.91 kB / 0.5197 GB, free: 4.289 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.587e-05/0.1408, allocations: 0 / 0.5197 GB, free: 4.289 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.004e-05/0.1409, allocations: 34.56 kB / 0.5198 GB, free: 4.246 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 9.92e-07/0.1409, allocations: 3.938 kB / 0.5198 GB, free: 4.242 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0003086/0.1412, allocations: 65.62 kB / 0.5198 GB, free: 4.172 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.872e-05/0.1413, allocations: 81.11 kB / 0.5199 GB, free: 4.074 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001222/0.1414, allocations: 105.8 kB / 0.52 GB, free: 3.961 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.706e-05/0.1414, allocations: 33.64 kB / 0.52 GB, free: 3.922 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.896e-05/0.1415, allocations: 84.14 kB / 0.5201 GB, free: 3.836 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.798e-05/0.1415, allocations: 16.06 kB / 0.5201 GB, free: 3.82 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.747e-05/0.1416, allocations: 17.7 kB / 0.5201 GB, free: 3.797 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002311/0.1418, allocations: 318.8 kB / 0.5205 GB, free: 3.477 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.855e-05/0.1419, allocations: 11.98 kB / 0.5205 GB, free: 3.465 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.981e-05/0.1419, allocations: 21.72 kB / 0.5205 GB, free: 3.438 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.609e-05/0.142, allocations: 24.84 kB / 0.5205 GB, free: 3.41 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.142, allocations: 4.031 kB / 0.5205 GB, free: 3.406 MB / 398.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001626/0.1422, allocations: 61.67 kB / 0.5206 GB, free: 3.34 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.227e-05/0.1422, allocations: 4 kB / 0.5206 GB, free: 3.336 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.024e-06/0.1422, allocations: 0 / 0.5206 GB, free: 3.336 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.232e-05/0.1422, allocations: 3.938 kB / 0.5206 GB, free: 3.332 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000111/0.1424, allocations: 11.92 kB / 0.5206 GB, free: 3.32 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.087e-05/0.1424, allocations: 320 / 0.5206 GB, free: 3.32 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.331e-05/0.1424, allocations: 8 kB / 0.5206 GB, free: 3.312 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.375e-06/0.1424, allocations: 0 / 0.5206 GB, free: 3.312 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.0001476/0.1426, allocations: 125.8 kB / 0.5207 GB, free: 3.18 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.166e-05/0.1426, allocations: 7.953 kB / 0.5207 GB, free: 3.172 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.123e-05/0.1427, allocations: 3.625 kB / 0.5207 GB, free: 3.164 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.1427, allocations: 4 kB / 0.5207 GB, free: 3.16 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/0.1427, allocations: 0 / 0.5207 GB, free: 3.16 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.965e-06/0.1427, allocations: 0 / 0.5207 GB, free: 3.16 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002149/0.1429, allocations: 136.7 kB / 0.5209 GB, free: 2.984 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.2e-06/0.1429, allocations: 4 kB / 0.5209 GB, free: 2.98 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.644e-05/0.1429, allocations: 0 / 0.5209 GB, free: 2.98 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.783e-06/0.1429, allocations: 4 kB / 0.5209 GB, free: 2.977 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.381e-05/0.1429, allocations: 7.984 kB / 0.5209 GB, free: 2.969 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.52e-07/0.1429, allocations: 0 / 0.5209 GB, free: 2.969 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/0.1429, allocations: 3.984 kB / 0.5209 GB, free: 2.965 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002144/0.1432, allocations: 147.6 kB / 0.521 GB, free: 2.805 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.258e-05/0.1432, allocations: 15.94 kB / 0.521 GB, free: 2.789 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.468e-05/0.1432, allocations: 3.938 kB / 0.521 GB, free: 2.785 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.607e-05/0.1433, allocations: 12.02 kB / 0.5211 GB, free: 2.773 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.573e-05/0.1433, allocations: 7.984 kB / 0.5211 GB, free: 2.766 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.218e-06/0.1433, allocations: 0 / 0.5211 GB, free: 2.766 MB / 398.1 MB Notification: Performance of sorting global known variables: time 9.804e-05/0.1434, allocations: 91.27 kB / 0.5211 GB, free: 2.676 MB / 398.1 MB Notification: Performance of sort global known variables: time 4.61e-07/0.1434, allocations: 0 / 0.5211 GB, free: 2.676 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002337/0.1437, allocations: 4 kB / 0.5212 GB, free: 2.672 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.0005815/0.1443, allocations: 0.6773 MB / 0.5218 GB, free: 1.969 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001673/0.1444, allocations: 27.92 kB / 0.5218 GB, free: 1.941 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.789e-06/0.1444, allocations: 4 kB / 0.5218 GB, free: 1.938 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.372e-05/0.1445, allocations: 11.98 kB / 0.5219 GB, free: 1.926 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002273/0.1447, allocations: 4 kB / 0.5219 GB, free: 1.922 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005454/0.1453, allocations: 164.4 kB / 0.522 GB, free: 1.723 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000415/0.1457, allocations: 0.6807 MB / 0.5227 GB, free: 1.016 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 4.38e-05/0.1457, allocations: 3.938 kB / 0.5227 GB, free: 1.012 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.963e-05/0.1458, allocations: 19.42 kB / 0.5227 GB, free: 0.9922 MB / 398.1 MB Notification: Performance of SimCode: time 5.72e-07/0.1458, allocations: 0 / 0.5227 GB, free: 0.9922 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02127/0.167, allocations: 1.651 MB / 0.5243 GB, free: 15.34 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.58/11.75, allocations: 12 kB / 0.5243 GB, free: 15.33 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.666040861979127] Failed to read output from testmodel.py, exit status != 0: ['time', 'hysteresis.y'] 11.91671702999156 11.944260703 11.800223939 Calling exit ...