Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.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.001384/0.001384, allocations: 101.5 kB / 21.21 MB, free: 0.6523 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.001388/0.001388, allocations: 189.6 kB / 24.49 MB, free: 3.98 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.355/1.355, allocations: 225.7 MB / 253.3 MB, free: 12.86 MB / 206.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.ShiftSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00149/0.00149, allocations: 39.94 kB / 371.2 MB, free: 9.723 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2421/0.2436, allocations: 52.19 MB / 423.4 MB, free: 14.42 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample): time 0.003199/0.2468, allocations: 1.853 MB / 425.2 MB, free: 12.55 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001775/0.2485, allocations: 1.079 MB / 426.3 MB, free: 11.46 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001028/0.2486, allocations: 11.88 kB / 426.3 MB, free: 11.45 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000304/0.2489, allocations: 63.66 kB / 426.4 MB, free: 11.39 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002566/0.2492, allocations: 95.58 kB / 426.5 MB, free: 11.3 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006431/0.2498, allocations: 257.4 kB / 426.7 MB, free: 11.05 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002371/0.2501, allocations: 175.5 kB / 426.9 MB, free: 10.88 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001144/0.2502, allocations: 23.84 kB / 426.9 MB, free: 10.86 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001119/0.2503, allocations: 79.69 kB / 427 MB, free: 10.78 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001219/0.2504, allocations: 79.61 kB / 427.1 MB, free: 10.7 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.539e-05/0.2504, allocations: 8 kB / 427.1 MB, free: 10.69 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001674/0.2506, allocations: 79.94 kB / 427.1 MB, free: 10.61 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.315e-05/0.2507, allocations: 47.84 kB / 427.2 MB, free: 10.57 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.179e-05/0.2508, allocations: 63.53 kB / 427.2 MB, free: 10.5 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003332/0.2511, allocations: 239 kB / 427.5 MB, free: 10.27 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.2511, allocations: 0 / 427.5 MB, free: 10.27 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.2511, allocations: 0 / 427.5 MB, free: 10.27 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.049e-06/0.2511, allocations: 0 / 427.5 MB, free: 10.27 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.0006936/0.2518, allocations: 470.6 kB / 427.9 MB, free: 9.773 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.725e-05/0.2518, allocations: 12.02 kB / 428 MB, free: 9.762 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.538e-05/0.2519, allocations: 8.125 kB / 428 MB, free: 9.754 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.36e-05/0.2519, allocations: 34.75 kB / 428 MB, free: 9.711 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.527e-05/0.252, allocations: 28.8 kB / 428 MB, free: 9.684 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003881/0.2524, allocations: 229.5 kB / 428.2 MB, free: 9.438 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.357e-05/0.2524, allocations: 8.125 kB / 428.3 MB, free: 9.43 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.089e-05/0.2524, allocations: 8 kB / 428.3 MB, free: 9.422 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003683/0.2528, allocations: 210.9 kB / 428.5 MB, free: 9.176 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.786e-06/0.2528, allocations: 0 / 428.5 MB, free: 9.176 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.481e-05/0.2528, allocations: 8 kB / 428.5 MB, free: 9.168 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.278e-06/0.2528, allocations: 3.938 kB / 428.5 MB, free: 9.164 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001184/0.2529, allocations: 39.97 kB / 428.5 MB, free: 9.125 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005198/0.2534, allocations: 345.4 kB / 428.9 MB, free: 8.738 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002595/0.2537, allocations: 115.9 kB / 429 MB, free: 8.598 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.553e-05/0.2538, allocations: 42.56 kB / 429 MB, free: 8.547 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.621e-05/0.2538, allocations: 0 / 429 MB, free: 8.547 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001876/0.254, allocations: 95.3 kB / 429.1 MB, free: 8.441 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.373e-06/0.254, allocations: 0 / 429.1 MB, free: 8.441 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003971/0.2544, allocations: 157.4 kB / 429.3 MB, free: 8.281 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001016/0.2545, allocations: 162.2 kB / 429.4 MB, free: 8.086 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003359/0.2548, allocations: 325.8 kB / 429.7 MB, free: 7.762 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.541e-05/0.2548, allocations: 33.7 kB / 429.8 MB, free: 7.723 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.945e-05/0.2549, allocations: 124.1 kB / 429.9 MB, free: 7.598 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.366e-05/0.255, allocations: 19.84 kB / 429.9 MB, free: 7.578 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.781e-05/0.255, allocations: 37.91 kB / 429.9 MB, free: 7.535 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001457/0.2552, allocations: 338.8 kB / 430.3 MB, free: 7.195 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.815e-05/0.2552, allocations: 20 kB / 430.3 MB, free: 7.176 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001596/0.2554, allocations: 164 kB / 430.5 MB, free: 6.973 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001628/0.2556, allocations: 88.2 kB / 430.5 MB, free: 6.871 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.2556, allocations: 0 / 430.5 MB, free: 6.871 MB / 334.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002436/0.2558, allocations: 129.5 kB / 430.7 MB, free: 6.738 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.599e-05/0.2558, allocations: 8 kB / 430.7 MB, free: 6.73 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.501e-06/0.2558, allocations: 0 / 430.7 MB, free: 6.73 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.317e-05/0.2558, allocations: 0 / 430.7 MB, free: 6.73 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000111/0.2559, allocations: 19.98 kB / 430.7 MB, free: 6.711 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.656e-06/0.256, allocations: 7.875 kB / 430.7 MB, free: 6.703 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.195e-05/0.256, allocations: 11.89 kB / 430.7 MB, free: 6.691 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.171e-05/0.256, allocations: 11.98 kB / 430.7 MB, free: 6.68 MB / 334.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.0001322/0.2562, allocations: 149.8 kB / 430.9 MB, free: 6.523 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.882e-05/0.2563, allocations: 69.64 kB / 430.9 MB, free: 6.449 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002797/0.2565, allocations: 127.4 kB / 431.1 MB, free: 6.316 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.795e-06/0.2565, allocations: 4 kB / 431.1 MB, free: 6.312 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.627e-06/0.2566, allocations: 7.922 kB / 431.1 MB, free: 6.305 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.377e-06/0.2566, allocations: 0 / 431.1 MB, free: 6.305 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002101/0.2568, allocations: 193 kB / 431.3 MB, free: 6.074 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.467e-06/0.2568, allocations: 3.984 kB / 431.3 MB, free: 6.07 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.327e-05/0.2568, allocations: 16 kB / 431.3 MB, free: 6.055 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/0.2568, allocations: 0 / 431.3 MB, free: 6.055 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.347e-05/0.2569, allocations: 8.062 kB / 431.3 MB, free: 6.047 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.4e-06/0.2569, allocations: 7.938 kB / 431.3 MB, free: 6.039 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.389e-06/0.2569, allocations: 7.922 kB / 431.3 MB, free: 6.031 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002731/0.2571, allocations: 166.6 kB / 431.5 MB, free: 5.844 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.851e-05/0.2572, allocations: 39.78 kB / 431.5 MB, free: 5.805 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.17e-05/0.2573, allocations: 4 kB / 431.5 MB, free: 5.801 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.868e-05/0.2573, allocations: 11.98 kB / 431.5 MB, free: 5.789 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.406e-05/0.2574, allocations: 11.92 kB / 431.5 MB, free: 5.777 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.769e-05/0.2574, allocations: 4 kB / 431.5 MB, free: 5.773 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002331/0.2576, allocations: 241.2 kB / 431.8 MB, free: 5.535 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2576, allocations: 4 kB / 431.8 MB, free: 5.531 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002554/0.2579, allocations: 28 kB / 431.8 MB, free: 5.504 MB / 334.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 (10): * Single equations (assignments): 8 * 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.002021/0.2599, allocations: 1.052 MB / 432.9 MB, free: 4.602 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002337/0.2601, allocations: 79.83 kB / 432.9 MB, free: 4.523 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.2601, allocations: 3.938 kB / 432.9 MB, free: 4.52 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 8.674e-05/0.2602, allocations: 28.23 kB / 433 MB, free: 4.492 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003842/0.2606, allocations: 74.44 kB / 433 MB, free: 4.426 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002521/0.2631, allocations: 2.215 MB / 435.3 MB, free: 2.09 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000127/0.2633, allocations: 128.1 kB / 435.4 MB, free: 1.941 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.637e-05/0.2633, allocations: 33.61 kB / 435.4 MB, free: 1.91 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001007/0.2634, allocations: 59.41 kB / 435.5 MB, free: 1.852 MB / 334.1 MB Notification: Performance of SimCode: time 2.6e-07/0.2634, allocations: 0 / 435.5 MB, free: 1.852 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02705/0.2905, allocations: 5.755 MB / 441.2 MB, free: 12.21 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.78/11.08, allocations: 8.047 kB / 441.2 MB, free: 12.2 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample_fmu --startTime=0 --stopTime=0.09 --stepSize=1.79104e-05 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.43155724206008] Failed to read output from testmodel.py, exit status != 0: ['time', 'sample1.y', 'shiftSample1.y'] 11.282938097021542 11.298272571 11.04419147 Calling exit ...