Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.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.001654/0.001654, allocations: 112.5 kB / 21.22 MB, free: 0.7305 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.001942/0.001942, allocations: 212.2 kB / 24.53 MB, free: 4.07 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.366/1.366, allocations: 230.6 MB / 258.3 MB, free: 8.004 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001503/0.001503, allocations: 51.94 kB / 378.6 MB, free: 3.129 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2417/0.2432, allocations: 53.36 MB / 431.9 MB, free: 6.855 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample): time 0.003227/0.2465, allocations: 1.921 MB / 433.8 MB, free: 4.926 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002141/0.2486, allocations: 1.322 MB / 435.2 MB, free: 3.598 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001192/0.2487, allocations: 4 kB / 435.2 MB, free: 3.594 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002838/0.249, allocations: 75.59 kB / 435.2 MB, free: 3.52 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003516/0.2494, allocations: 131.4 kB / 435.4 MB, free: 3.391 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006311/0.25, allocations: 223.4 kB / 435.6 MB, free: 3.172 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002428/0.2502, allocations: 179.5 kB / 435.8 MB, free: 2.996 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001033/0.2503, allocations: 23.84 kB / 435.8 MB, free: 2.973 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001167/0.2505, allocations: 87.62 kB / 435.9 MB, free: 2.887 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001293/0.2506, allocations: 87.61 kB / 436 MB, free: 2.801 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.223e-05/0.2506, allocations: 8 kB / 436 MB, free: 2.793 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001646/0.2508, allocations: 75.88 kB / 436 MB, free: 2.719 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.113e-05/0.2509, allocations: 55.83 kB / 436.1 MB, free: 2.664 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.815e-05/0.2509, allocations: 79.47 kB / 436.2 MB, free: 2.586 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003399/0.2513, allocations: 239 kB / 436.4 MB, free: 2.352 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.497e-06/0.2513, allocations: 0 / 436.4 MB, free: 2.352 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.011e-06/0.2513, allocations: 3.938 kB / 436.4 MB, free: 2.348 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.059e-06/0.2513, allocations: 3.938 kB / 436.4 MB, free: 2.344 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0006848/0.252, allocations: 478.6 kB / 436.9 MB, free: 1.84 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.341e-05/0.252, allocations: 8.031 kB / 436.9 MB, free: 1.832 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.491e-05/0.252, allocations: 4.188 kB / 436.9 MB, free: 1.828 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.466e-05/0.2521, allocations: 42.73 kB / 436.9 MB, free: 1.777 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.627e-05/0.2521, allocations: 24.8 kB / 437 MB, free: 1.754 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004032/0.2525, allocations: 237.4 kB / 437.2 MB, free: 1.496 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.351e-05/0.2525, allocations: 12.12 kB / 437.2 MB, free: 1.484 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.856e-05/0.2526, allocations: 4 kB / 437.2 MB, free: 1.48 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003277/0.2529, allocations: 151.6 kB / 437.3 MB, free: 1.305 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.684e-06/0.2529, allocations: 0 / 437.3 MB, free: 1.305 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.432e-05/0.2529, allocations: 8 kB / 437.4 MB, free: 1.297 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.128e-06/0.2529, allocations: 4 kB / 437.4 MB, free: 1.293 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001121/0.253, allocations: 35.91 kB / 437.4 MB, free: 1.258 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005051/0.2535, allocations: 353.4 kB / 437.7 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002426/0.2538, allocations: 115.9 kB / 437.9 MB, free: 0.7227 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.006e-05/0.2539, allocations: 46.5 kB / 437.9 MB, free: 0.668 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.2e-05/0.2539, allocations: 4 kB / 437.9 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001651/0.2541, allocations: 79.38 kB / 438 MB, free: 0.5742 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.633e-06/0.2541, allocations: 0 / 438 MB, free: 0.5742 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003722/0.2544, allocations: 153.4 kB / 438.1 MB, free: 428 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.463e-05/0.2545, allocations: 162.2 kB / 438.3 MB, free: 228 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003629/0.2549, allocations: 338.2 kB / 438.6 MB, free: 15.88 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.269e-05/0.2549, allocations: 33.7 kB / 438.7 MB, free: 15.84 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.849e-05/0.255, allocations: 132.1 kB / 438.8 MB, free: 15.71 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.211e-05/0.255, allocations: 15.81 kB / 438.8 MB, free: 15.7 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.33e-05/0.2551, allocations: 37.64 kB / 438.8 MB, free: 15.66 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000141/0.2552, allocations: 330.8 kB / 439.2 MB, free: 15.32 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.62e-05/0.2553, allocations: 20 kB / 439.2 MB, free: 15.3 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001195/0.2554, allocations: 98.78 kB / 439.3 MB, free: 15.18 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001483/0.2556, allocations: 80.22 kB / 439.3 MB, free: 15.09 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.2556, allocations: 4.25 kB / 439.4 MB, free: 15.09 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002339/0.2558, allocations: 137.4 kB / 439.5 MB, free: 14.95 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.38e-05/0.2558, allocations: 4 kB / 439.5 MB, free: 14.94 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.183e-05/0.2558, allocations: 0 / 439.5 MB, free: 14.94 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.403e-05/0.2558, allocations: 4 kB / 439.5 MB, free: 14.94 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000104/0.2559, allocations: 19.94 kB / 439.5 MB, free: 14.92 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.148e-06/0.2559, allocations: 7.922 kB / 439.5 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.208e-05/0.256, allocations: 7.938 kB / 439.5 MB, free: 14.9 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.588e-06/0.256, allocations: 8.125 kB / 439.5 MB, free: 14.89 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,shiftSample1.y,shiftSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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.0001403/0.2562, allocations: 153.8 kB / 439.7 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.191e-05/0.2563, allocations: 73.44 kB / 439.8 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002563/0.2565, allocations: 115.4 kB / 439.9 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.668e-06/0.2565, allocations: 4 kB / 439.9 MB, free: 14.53 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.471e-06/0.2565, allocations: 3.938 kB / 439.9 MB, free: 14.53 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/0.2565, allocations: 0 / 439.9 MB, free: 14.53 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002068/0.2567, allocations: 212.7 kB / 440.1 MB, free: 14.28 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.263e-06/0.2567, allocations: 4 kB / 440.1 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.16e-05/0.2568, allocations: 15.92 kB / 440.1 MB, free: 14.26 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.2568, allocations: 0 / 440.1 MB, free: 14.26 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.231e-05/0.2568, allocations: 4 kB / 440.1 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.2568, allocations: 0 / 440.1 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.906e-06/0.2568, allocations: 3.938 kB / 440.1 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002668/0.2571, allocations: 166.6 kB / 440.3 MB, free: 14.06 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.389e-05/0.2572, allocations: 47.86 kB / 440.3 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.12e-05/0.2572, allocations: 4 kB / 440.3 MB, free: 14.01 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.893e-05/0.2573, allocations: 12.12 kB / 440.3 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.57e-05/0.2573, allocations: 11.92 kB / 440.4 MB, free: 13.99 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.52e-05/0.2573, allocations: 4 kB / 440.4 MB, free: 13.98 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002417/0.2576, allocations: 249.2 kB / 440.6 MB, free: 13.74 MB / 350.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.2576, allocations: 0 / 440.6 MB, free: 13.74 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002583/0.2578, allocations: 39.88 kB / 440.6 MB, free: 13.7 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,shiftSample1.y,sample1.y,shiftSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 7 * 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.001915/0.2597, allocations: 1.014 MB / 441.7 MB, free: 12.82 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002262/0.26, allocations: 75.84 kB / 441.7 MB, free: 12.74 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.26, allocations: 0 / 441.7 MB, free: 12.74 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.452e-05/0.2601, allocations: 28.11 kB / 441.8 MB, free: 12.71 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004073/0.2605, allocations: 82.34 kB / 441.8 MB, free: 12.64 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002523/0.263, allocations: 2.23 MB / 444.1 MB, free: 10.29 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003523/0.2633, allocations: 0.7437 MB / 444.8 MB, free: 9.516 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.625e-05/0.2634, allocations: 29.47 kB / 444.8 MB, free: 9.484 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001044/0.2635, allocations: 63.42 kB / 444.9 MB, free: 9.422 MB / 350.1 MB Notification: Performance of SimCode: time 3.91e-07/0.2635, allocations: 0 / 444.9 MB, free: 9.422 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02626/0.2898, allocations: 5.572 MB / 450.5 MB, free: 3.945 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.49/10.78, allocations: 7.812 kB / 450.5 MB, free: 3.941 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample_fmu --startTime=0 --stopTime=0.09 --stepSize=1.79104e-05 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.180298795981798] Failed to read output from testmodel.py, exit status != 0: ['time', 'sample1.y', 'shiftSample1.y'] 10.997427246009465 11.024031719 10.768986471 Calling exit ...