Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.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.00122/0.00122, 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.001383/0.001383, allocations: 201.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.355/1.355, allocations: 230.6 MB / 258.3 MB, free: 8.023 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.BackSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001485/0.001485, allocations: 47.94 kB / 378.6 MB, free: 3.141 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2325/0.234, allocations: 53.37 MB / 431.9 MB, free: 6.859 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample): time 0.003362/0.2373, allocations: 1.945 MB / 433.9 MB, free: 4.906 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002211/0.2395, allocations: 1.342 MB / 435.2 MB, free: 3.559 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001303/0.2397, allocations: 7.938 kB / 435.2 MB, free: 3.551 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003003/0.24, allocations: 67.66 kB / 435.3 MB, free: 3.484 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003539/0.2403, allocations: 143.4 kB / 435.4 MB, free: 3.344 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006845/0.241, allocations: 238.9 kB / 435.7 MB, free: 3.113 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002869/0.2413, allocations: 195.4 kB / 435.9 MB, free: 2.922 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000114/0.2414, allocations: 21.8 kB / 435.9 MB, free: 2.898 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001274/0.2415, allocations: 91.56 kB / 436 MB, free: 2.809 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001424/0.2417, allocations: 83.67 kB / 436 MB, free: 2.727 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.395e-05/0.2417, allocations: 8 kB / 436.1 MB, free: 2.719 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001713/0.2419, allocations: 79.88 kB / 436.1 MB, free: 2.641 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.812e-05/0.242, allocations: 55.77 kB / 436.2 MB, free: 2.586 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001002/0.2421, allocations: 87.41 kB / 436.3 MB, free: 2.5 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003679/0.2424, allocations: 247.3 kB / 436.5 MB, free: 2.262 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.2424, allocations: 7.938 kB / 436.5 MB, free: 2.254 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.2424, allocations: 0 / 436.5 MB, free: 2.254 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.28e-06/0.2424, allocations: 0 / 436.5 MB, free: 2.254 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0007414/0.2432, allocations: 494.4 kB / 437 MB, free: 1.734 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.446e-05/0.2432, allocations: 8.031 kB / 437 MB, free: 1.727 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.752e-05/0.2432, allocations: 4.125 kB / 437 MB, free: 1.723 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.843e-05/0.2433, allocations: 42.73 kB / 437.1 MB, free: 1.672 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.912e-05/0.2433, allocations: 24.8 kB / 437.1 MB, free: 1.648 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004245/0.2437, allocations: 246.5 kB / 437.3 MB, free: 1.387 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.815e-05/0.2438, allocations: 12.12 kB / 437.3 MB, free: 1.375 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.542e-05/0.2438, allocations: 4 kB / 437.3 MB, free: 1.371 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003648/0.2441, allocations: 180.4 kB / 437.5 MB, free: 1.164 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.346e-06/0.2442, allocations: 0 / 437.5 MB, free: 1.164 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.471e-05/0.2442, allocations: 8 kB / 437.5 MB, free: 1.156 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.669e-06/0.2442, allocations: 3.938 kB / 437.5 MB, free: 1.152 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001113/0.2443, allocations: 35.97 kB / 437.6 MB, free: 1.117 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005257/0.2448, allocations: 378.3 kB / 437.9 MB, free: 0.6953 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002749/0.2451, allocations: 138.5 kB / 438.1 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001067/0.2452, allocations: 63.34 kB / 438.1 MB, free: 460 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.921e-05/0.2452, allocations: 0 / 438.1 MB, free: 460 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001688/0.2454, allocations: 79.39 kB / 438.2 MB, free: 368 kB / 334.1 MB Notification: Performance of pre-optimization done (n=11): time 1.413e-06/0.2454, allocations: 0 / 438.2 MB, free: 368 kB / 334.1 MB Notification: Performance of matching and sorting (n=11): time 0.0003961/0.2458, allocations: 177.3 kB / 438.4 MB, free: 184 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001262/0.2459, allocations: 191.9 kB / 438.6 MB, free: 15.95 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003725/0.2463, allocations: 352.1 kB / 438.9 MB, free: 15.59 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.248e-05/0.2463, allocations: 30.08 kB / 438.9 MB, free: 15.56 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001025/0.2464, allocations: 132.4 kB / 439.1 MB, free: 15.42 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.742e-05/0.2464, allocations: 19.83 kB / 439.1 MB, free: 15.4 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.487e-05/0.2465, allocations: 33.67 kB / 439.1 MB, free: 15.36 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001469/0.2466, allocations: 334.8 kB / 439.4 MB, free: 15.03 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.121e-05/0.2467, allocations: 23.98 kB / 439.5 MB, free: 15 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000139/0.2468, allocations: 108.6 kB / 439.6 MB, free: 14.87 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002185/0.2471, allocations: 106.1 kB / 439.7 MB, free: 14.74 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.2471, allocations: 0 / 439.7 MB, free: 14.74 MB / 350.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002641/0.2473, allocations: 141.4 kB / 439.8 MB, free: 14.6 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.579e-05/0.2473, allocations: 4 kB / 439.8 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.685e-06/0.2474, allocations: 4 kB / 439.8 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.326e-05/0.2474, allocations: 0 / 439.8 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000119/0.2475, allocations: 28.11 kB / 439.9 MB, free: 14.56 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.122e-05/0.2475, allocations: 7.938 kB / 439.9 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.131e-05/0.2476, allocations: 12 kB / 439.9 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.041e-05/0.2476, allocations: 4 kB / 439.9 MB, free: 14.54 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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,backSample1.y,backSample1.u,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 (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.0001607/0.2477, allocations: 154.7 kB / 440 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001136/0.2479, allocations: 85.44 kB / 440.1 MB, free: 14.29 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002642/0.2481, allocations: 115.4 kB / 440.2 MB, free: 14.17 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.743e-06/0.2481, allocations: 8 kB / 440.2 MB, free: 14.16 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/0.2481, allocations: 7.875 kB / 440.2 MB, free: 14.16 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.553e-06/0.2481, allocations: 3.984 kB / 440.2 MB, free: 14.15 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002362/0.2484, allocations: 216.6 kB / 440.5 MB, free: 13.9 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.366e-06/0.2484, allocations: 3.984 kB / 440.5 MB, free: 13.89 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.259e-05/0.2485, allocations: 12 kB / 440.5 MB, free: 13.88 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.294e-06/0.2485, allocations: 4 kB / 440.5 MB, free: 13.88 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.418e-05/0.2485, allocations: 7.922 kB / 440.5 MB, free: 13.87 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.48e-06/0.2485, allocations: 12.06 kB / 440.5 MB, free: 13.86 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/0.2485, allocations: 3.984 kB / 440.5 MB, free: 13.86 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003141/0.2488, allocations: 187.6 kB / 440.7 MB, free: 13.64 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.927e-05/0.2489, allocations: 39.78 kB / 440.7 MB, free: 13.61 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.391e-05/0.2489, allocations: 8 kB / 440.7 MB, free: 13.6 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.061e-05/0.249, allocations: 7.984 kB / 440.7 MB, free: 13.59 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.914e-05/0.249, allocations: 19.92 kB / 440.8 MB, free: 13.57 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.844e-05/0.2491, allocations: 4 kB / 440.8 MB, free: 13.57 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002511/0.2493, allocations: 251 kB / 441 MB, free: 13.32 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2493, allocations: 0 / 441 MB, free: 13.32 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002776/0.2496, allocations: 35.94 kB / 441 MB, free: 13.29 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,backSample1.y,shiftSample1.y,backSample1.u,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 (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.001987/0.2516, allocations: 1.035 MB / 442.1 MB, free: 12.37 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002418/0.2518, allocations: 83.77 kB / 442.2 MB, free: 12.29 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.629e-06/0.2518, allocations: 4.375 kB / 442.2 MB, free: 12.29 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.809e-05/0.2519, allocations: 27.98 kB / 442.2 MB, free: 12.26 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004325/0.2523, allocations: 84.48 kB / 442.3 MB, free: 12.18 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002688/0.255, allocations: 2.311 MB / 444.6 MB, free: 9.734 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000417/0.2554, allocations: 0.7437 MB / 445.3 MB, free: 8.965 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.52e-05/0.2555, allocations: 33.62 kB / 445.4 MB, free: 8.934 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000111/0.2556, allocations: 67.41 kB / 445.4 MB, free: 8.871 MB / 350.1 MB Notification: Performance of SimCode: time 5.71e-07/0.2556, allocations: 0 / 445.4 MB, free: 8.871 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02676/0.2824, allocations: 5.897 MB / 451.3 MB, free: 3.07 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.58/10.86, allocations: 4.062 kB / 451.3 MB, free: 3.066 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample_fmu --startTime=0 --stopTime=0.09 --stepSize=1.79104e-05 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.182722661003936] Failed to read output from testmodel.py, exit status != 0: ['time', 'sample1.y', 'shiftSample1.y', 'backSample1.y'] 11.068885471031535 11.084423607 10.838839818 Calling exit ...