Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001464/0.001464, allocations: 107.9 kB / 18.48 MB, free: 4.543 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001524/0.001524, allocations: 198.5 kB / 21.43 MB, free: 1.609 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.406/1.406, allocations: 225.6 MB / 249.8 MB, free: 3.637 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_Hold",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_Hold",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001614/0.001614, allocations: 55.91 kB / 366.3 MB, free: 0.8555 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1021/0.1037, allocations: 52.14 MB / 418.5 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold): time 0.004068/0.1077, allocations: 1.906 MB / 420.4 MB, free: 10.71 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00225/0.11, allocations: 1.18 MB / 421.6 MB, free: 9.52 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001981/0.1102, allocations: 3.938 kB / 421.6 MB, free: 9.516 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004085/0.1106, allocations: 63.67 kB / 421.6 MB, free: 9.453 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004007/0.111, allocations: 95.58 kB / 421.7 MB, free: 9.359 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009254/0.1119, allocations: 266.1 kB / 422 MB, free: 9.105 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003296/0.1122, allocations: 171.5 kB / 422.2 MB, free: 8.938 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001167/0.1124, allocations: 25.53 kB / 422.2 MB, free: 8.914 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001476/0.1125, allocations: 79.64 kB / 422.3 MB, free: 8.836 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001537/0.1127, allocations: 87.64 kB / 422.3 MB, free: 8.75 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.089e-05/0.1127, allocations: 15.94 kB / 422.4 MB, free: 8.734 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001761/0.1129, allocations: 63.97 kB / 422.4 MB, free: 8.672 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.955e-05/0.113, allocations: 55.81 kB / 422.5 MB, free: 8.617 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.929e-05/0.1131, allocations: 79.42 kB / 422.6 MB, free: 8.539 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000412/0.1135, allocations: 242.9 kB / 422.8 MB, free: 8.301 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.1135, allocations: 0 / 422.8 MB, free: 8.301 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.1135, allocations: 0 / 422.8 MB, free: 8.301 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.246e-06/0.1135, allocations: 0 / 422.8 MB, free: 8.301 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0008802/0.1144, allocations: 0.5426 MB / 423.3 MB, free: 7.703 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.409e-05/0.1144, allocations: 12.02 kB / 423.3 MB, free: 7.691 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.015e-05/0.1144, allocations: 4.188 kB / 423.3 MB, free: 7.688 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.544e-05/0.1145, allocations: 38.75 kB / 423.4 MB, free: 7.641 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.78e-05/0.1146, allocations: 28.75 kB / 423.4 MB, free: 7.613 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005351/0.1151, allocations: 291.8 kB / 423.7 MB, free: 7.289 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.472e-05/0.1151, allocations: 8.125 kB / 423.7 MB, free: 7.281 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.917e-05/0.1151, allocations: 15.98 kB / 423.7 MB, free: 7.266 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004131/0.1155, allocations: 180.2 kB / 423.9 MB, free: 7.059 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.131e-05/0.1156, allocations: 0 / 423.9 MB, free: 7.059 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.465e-05/0.1156, allocations: 0 / 423.9 MB, free: 7.059 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.164e-05/0.1156, allocations: 7.984 kB / 423.9 MB, free: 7.051 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001345/0.1157, allocations: 43.91 kB / 423.9 MB, free: 7.008 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006411/0.1164, allocations: 470.5 kB / 424.4 MB, free: 6.488 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002932/0.1167, allocations: 138.5 kB / 424.5 MB, free: 6.316 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001132/0.1168, allocations: 55.42 kB / 424.6 MB, free: 6.25 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.278e-05/0.1168, allocations: 8.062 kB / 424.6 MB, free: 6.242 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002058/0.117, allocations: 101 kB / 424.7 MB, free: 6.125 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 1.643e-06/0.117, allocations: 0 / 424.7 MB, free: 6.125 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004573/0.1175, allocations: 165.4 kB / 424.9 MB, free: 5.957 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001315/0.1176, allocations: 192.2 kB / 425.1 MB, free: 5.727 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003804/0.118, allocations: 334.6 kB / 425.4 MB, free: 5.391 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.696e-05/0.118, allocations: 33.7 kB / 425.4 MB, free: 5.352 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001117/0.1181, allocations: 120.4 kB / 425.5 MB, free: 5.227 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.384e-05/0.1181, allocations: 23.83 kB / 425.6 MB, free: 5.203 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.581e-05/0.1182, allocations: 41.66 kB / 425.6 MB, free: 5.156 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001582/0.1184, allocations: 330.8 kB / 425.9 MB, free: 4.824 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.534e-05/0.1185, allocations: 27.98 kB / 425.9 MB, free: 4.797 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001456/0.1186, allocations: 95.7 kB / 426 MB, free: 4.676 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001932/0.1188, allocations: 101.3 kB / 426.1 MB, free: 4.559 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.242e-06/0.1188, allocations: 8 kB / 426.1 MB, free: 4.551 MB / 350.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002867/0.1191, allocations: 137.4 kB / 426.3 MB, free: 4.41 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.918e-05/0.1191, allocations: 4 kB / 426.3 MB, free: 4.406 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.607e-06/0.1191, allocations: 4 kB / 426.3 MB, free: 4.402 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.753e-05/0.1191, allocations: 4.156 kB / 426.3 MB, free: 4.398 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001323/0.1193, allocations: 23.98 kB / 426.3 MB, free: 4.375 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.336e-05/0.1193, allocations: 7.875 kB / 426.3 MB, free: 4.367 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.935e-05/0.1194, allocations: 8 kB / 426.3 MB, free: 4.359 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.455e-05/0.1194, allocations: 7.984 kB / 426.3 MB, free: 4.352 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,shiftSample1.y,hold1.y,hold1.u,shiftSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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.0001756/0.1196, allocations: 151 kB / 426.5 MB, free: 4.195 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001117/0.1197, allocations: 77.48 kB / 426.6 MB, free: 4.113 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.754e-05/0.1197, allocations: 33.77 kB / 426.6 MB, free: 4.078 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.396e-06/0.1197, allocations: 3.938 kB / 426.6 MB, free: 4.074 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.207e-06/0.1198, allocations: 7.938 kB / 426.6 MB, free: 4.066 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.28e-06/0.1198, allocations: 0 / 426.6 MB, free: 4.066 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003026/0.1201, allocations: 245.5 kB / 426.8 MB, free: 3.777 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.422e-06/0.1201, allocations: 7.984 kB / 426.9 MB, free: 3.77 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.671e-05/0.1201, allocations: 12 kB / 426.9 MB, free: 3.758 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.086e-06/0.1201, allocations: 0 / 426.9 MB, free: 3.758 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.93e-05/0.1202, allocations: 15.92 kB / 426.9 MB, free: 3.742 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.084e-06/0.1202, allocations: 0 / 426.9 MB, free: 3.742 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.332e-06/0.1202, allocations: 7.875 kB / 426.9 MB, free: 3.734 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003239/0.1205, allocations: 179.5 kB / 427.1 MB, free: 3.531 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001239/0.1206, allocations: 112.9 kB / 427.2 MB, free: 3.402 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.852e-05/0.1207, allocations: 8 kB / 427.2 MB, free: 3.395 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.691e-05/0.1207, allocations: 0 / 427.2 MB, free: 3.395 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.868e-05/0.1208, allocations: 19.98 kB / 427.2 MB, free: 3.375 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.204e-05/0.1208, allocations: 15.94 kB / 427.2 MB, free: 3.359 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000284/0.1211, allocations: 241.9 kB / 427.5 MB, free: 3.121 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1211, allocations: 0 / 427.5 MB, free: 3.121 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003043/0.1214, allocations: 35.92 kB / 427.5 MB, free: 3.086 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,hold1.y,hold1.u,shiftSample1.y,sample1.y,shiftSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.002128/0.1235, allocations: 1.036 MB / 428.5 MB, free: 2.176 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002635/0.1238, allocations: 83.84 kB / 428.6 MB, free: 2.094 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.1238, allocations: 320 / 428.6 MB, free: 2.094 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001/0.1239, allocations: 39.97 kB / 428.6 MB, free: 2.055 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004184/0.1243, allocations: 76.33 kB / 428.7 MB, free: 1.984 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002909/0.1272, allocations: 2.255 MB / 431 MB, free: 15.59 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003965/0.1276, allocations: 0.7515 MB / 431.7 MB, free: 14.82 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.568e-05/0.1277, allocations: 25.55 kB / 431.8 MB, free: 14.79 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001112/0.1278, allocations: 59.41 kB / 431.8 MB, free: 14.73 MB / 366.1 MB Notification: Performance of SimCode: time 4.4e-07/0.1278, allocations: 0 / 431.8 MB, free: 14.73 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02314/0.151, allocations: 5.456 MB / 437.3 MB, free: 9.395 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.134/8.285, allocations: 22.3 kB / 437.3 MB, free: 9.375 MB / 366.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_Hold_fmu --startTime=0 --stopTime=0.2 --stepSize=3.98963e-05 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_Hold.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 10.887940531014465] Failed to read output from testmodel.py, exit status != 0: ['time', 'sample1.y', 'shiftSample1.y', 'hold1.y'] 8.46327232097974 8.6822328 8.566042629 Calling exit ...