Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.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.001528/0.001528, allocations: 112.2 kB / 21.22 MB, free: 0.75 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.001782/0.001782, allocations: 205.2 kB / 24.52 MB, free: 4.156 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.382/1.382, allocations: 230.6 MB / 258.3 MB, free: 8.027 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.SubSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001469/0.001469, allocations: 47.92 kB / 378.6 MB, free: 3.168 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2324/0.2339, allocations: 53.36 MB / 431.9 MB, free: 6.879 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample): time 0.003162/0.2371, allocations: 1.921 MB / 433.8 MB, free: 4.949 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002016/0.2391, allocations: 1.297 MB / 435.1 MB, free: 3.645 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001091/0.2392, allocations: 7.938 kB / 435.1 MB, free: 3.637 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002783/0.2395, allocations: 67.66 kB / 435.2 MB, free: 3.57 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003251/0.2398, allocations: 135.4 kB / 435.3 MB, free: 3.438 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005853/0.2404, allocations: 226.8 kB / 435.6 MB, free: 3.219 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002522/0.2406, allocations: 183.5 kB / 435.7 MB, free: 3.039 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.618e-05/0.2407, allocations: 21.73 kB / 435.8 MB, free: 3.016 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001157/0.2409, allocations: 79.62 kB / 435.8 MB, free: 2.938 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001227/0.241, allocations: 83.67 kB / 435.9 MB, free: 2.855 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.306e-05/0.241, allocations: 11.94 kB / 435.9 MB, free: 2.844 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001545/0.2412, allocations: 79.94 kB / 436 MB, free: 2.766 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.948e-05/0.2412, allocations: 51.77 kB / 436.1 MB, free: 2.715 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.984e-05/0.2413, allocations: 79.42 kB / 436.1 MB, free: 2.637 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003258/0.2416, allocations: 243.4 kB / 436.4 MB, free: 2.402 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.407e-06/0.2416, allocations: 4 kB / 436.4 MB, free: 2.398 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.492e-06/0.2416, allocations: 0 / 436.4 MB, free: 2.398 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.275e-06/0.2416, allocations: 0 / 436.4 MB, free: 2.398 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.0006607/0.2423, allocations: 482.5 kB / 436.9 MB, free: 1.891 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.339e-05/0.2423, allocations: 8.031 kB / 436.9 MB, free: 1.883 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.089e-05/0.2424, allocations: 192 / 436.9 MB, free: 1.883 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.492e-05/0.2424, allocations: 42.73 kB / 436.9 MB, free: 1.832 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.196e-05/0.2424, allocations: 24.8 kB / 436.9 MB, free: 1.809 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003734/0.2428, allocations: 229.5 kB / 437.1 MB, free: 1.559 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.644e-05/0.2428, allocations: 8.125 kB / 437.2 MB, free: 1.551 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.943e-05/0.2429, allocations: 8 kB / 437.2 MB, free: 1.543 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003152/0.2432, allocations: 167.4 kB / 437.3 MB, free: 1.352 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.294e-06/0.2432, allocations: 0 / 437.3 MB, free: 1.352 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.114e-05/0.2432, allocations: 0 / 437.3 MB, free: 1.352 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.251e-06/0.2432, allocations: 4 kB / 437.3 MB, free: 1.348 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001128/0.2433, allocations: 39.95 kB / 437.4 MB, free: 1.309 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004922/0.2438, allocations: 357.4 kB / 437.7 MB, free: 0.9102 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002411/0.244, allocations: 115.9 kB / 437.8 MB, free: 0.7695 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.651e-05/0.2441, allocations: 46.56 kB / 437.9 MB, free: 0.7148 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.282e-05/0.2441, allocations: 4 kB / 437.9 MB, free: 0.7109 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001645/0.2443, allocations: 79.31 kB / 438 MB, free: 0.6211 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.392e-06/0.2443, allocations: 0 / 438 MB, free: 0.6211 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003778/0.2447, allocations: 157.4 kB / 438.1 MB, free: 472 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.567e-05/0.2448, allocations: 162.4 kB / 438.3 MB, free: 272 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003552/0.2451, allocations: 337.8 kB / 438.6 MB, free: 15.93 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.098e-05/0.2452, allocations: 29.7 kB / 438.6 MB, free: 15.89 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.428e-05/0.2453, allocations: 132.1 kB / 438.8 MB, free: 15.76 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.34e-05/0.2453, allocations: 15.91 kB / 438.8 MB, free: 15.75 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.754e-05/0.2453, allocations: 33.7 kB / 438.8 MB, free: 15.71 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001378/0.2455, allocations: 330.8 kB / 439.1 MB, free: 15.38 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.109e-05/0.2455, allocations: 27.98 kB / 439.2 MB, free: 15.35 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001122/0.2457, allocations: 82.86 kB / 439.2 MB, free: 15.24 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001534/0.2458, allocations: 88.22 kB / 439.3 MB, free: 15.14 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.2458, allocations: 0 / 439.3 MB, free: 15.14 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002324/0.246, allocations: 129.4 kB / 439.5 MB, free: 15.01 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.286e-05/0.2461, allocations: 4 kB / 439.5 MB, free: 15 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.008e-06/0.2461, allocations: 3.938 kB / 439.5 MB, free: 15 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.406e-05/0.2461, allocations: 4 kB / 439.5 MB, free: 15 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.945e-05/0.2462, allocations: 15.98 kB / 439.5 MB, free: 14.98 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.576e-06/0.2462, allocations: 12.06 kB / 439.5 MB, free: 14.97 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.712e-05/0.2463, allocations: 19.81 kB / 439.5 MB, free: 14.95 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.103e-05/0.2463, allocations: 4 kB / 439.5 MB, free: 14.95 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,subSample1.y,subSample1.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.0001361/0.2464, allocations: 150.1 kB / 439.7 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.114e-05/0.2465, allocations: 69.45 kB / 439.7 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002577/0.2468, allocations: 127.4 kB / 439.9 MB, free: 14.58 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.558e-06/0.2468, allocations: 4 kB / 439.9 MB, free: 14.58 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.763e-06/0.2468, allocations: 8 kB / 439.9 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/0.2468, allocations: 0 / 439.9 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002052/0.247, allocations: 208.6 kB / 440.1 MB, free: 14.32 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.467e-06/0.247, allocations: 4 kB / 440.1 MB, free: 14.32 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.375e-05/0.2471, allocations: 11.98 kB / 440.1 MB, free: 14.31 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.2471, allocations: 3.938 kB / 440.1 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.134e-05/0.2471, allocations: 4 kB / 440.1 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.884e-06/0.2471, allocations: 0 / 440.1 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.2471, allocations: 3.938 kB / 440.1 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002638/0.2473, allocations: 170.6 kB / 440.3 MB, free: 14.11 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.909e-05/0.2474, allocations: 35.83 kB / 440.3 MB, free: 14.07 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.756e-05/0.2475, allocations: 8 kB / 440.3 MB, free: 14.06 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.648e-05/0.2475, allocations: 4 kB / 440.3 MB, free: 14.06 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.939e-05/0.2476, allocations: 7.922 kB / 440.3 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.728e-05/0.2476, allocations: 8 kB / 440.3 MB, free: 14.04 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002708/0.2479, allocations: 253.2 kB / 440.6 MB, free: 13.8 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2479, allocations: 0 / 440.6 MB, free: 13.8 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003346/0.2482, allocations: 35.94 kB / 440.6 MB, free: 13.76 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,subSample1.y,sample1.y,subSample1.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.001903/0.2501, allocations: 1.025 MB / 441.6 MB, free: 12.87 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002107/0.2503, allocations: 71.84 kB / 441.7 MB, free: 12.8 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.2503, allocations: 0 / 441.7 MB, free: 12.8 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.835e-05/0.2504, allocations: 27.98 kB / 441.7 MB, free: 12.77 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003978/0.2508, allocations: 73.36 kB / 441.8 MB, free: 12.7 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00247/0.2533, allocations: 2.242 MB / 444 MB, free: 10.34 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003377/0.2536, allocations: 0.7398 MB / 444.8 MB, free: 9.57 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.638e-05/0.2537, allocations: 25.73 kB / 444.8 MB, free: 9.543 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.719e-05/0.2538, allocations: 59.42 kB / 444.9 MB, free: 9.484 MB / 350.1 MB Notification: Performance of SimCode: time 4.91e-07/0.2538, allocations: 0 / 444.9 MB, free: 9.484 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02671/0.2805, allocations: 5.535 MB / 450.4 MB, free: 4.043 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.62/10.9, allocations: 3.938 kB / 450.4 MB, free: 4.039 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample_fmu --startTime=0 --stopTime=0.2 --stepSize=3.98963e-05 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.259556195000187] Failed to read output from testmodel.py, exit status != 0: ['time', 'sample1.y', 'subSample1.y'] 11.105847386003006 11.120324432 10.875685896 Calling exit ...