Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.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.001619/0.001619, allocations: 108.6 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.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.001798/0.001798, allocations: 191.7 kB / 24.5 MB, free: 4.02 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.353/1.353, allocations: 225.7 MB / 253.3 MB, free: 13.03 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.BackSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001438/0.001438, allocations: 47.91 kB / 371.2 MB, free: 9.871 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2207/0.2222, allocations: 52.19 MB / 423.4 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample): time 0.003493/0.2257, allocations: 1.938 MB / 425.4 MB, free: 12.68 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001983/0.2277, allocations: 1.192 MB / 426.5 MB, free: 11.48 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001137/0.2278, allocations: 7.938 kB / 426.6 MB, free: 11.47 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002869/0.2281, allocations: 59.67 kB / 426.6 MB, free: 11.41 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002618/0.2283, allocations: 95.59 kB / 426.7 MB, free: 11.32 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007366/0.2291, allocations: 265.1 kB / 427 MB, free: 11.06 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002677/0.2293, allocations: 183.5 kB / 427.1 MB, free: 10.88 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001111/0.2294, allocations: 21.73 kB / 427.2 MB, free: 10.86 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001287/0.2296, allocations: 87.62 kB / 427.2 MB, free: 10.77 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000138/0.2297, allocations: 87.61 kB / 427.3 MB, free: 10.68 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.36e-05/0.2297, allocations: 12 kB / 427.3 MB, free: 10.67 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00018/0.2299, allocations: 75.88 kB / 427.4 MB, free: 10.6 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.21e-05/0.23, allocations: 55.81 kB / 427.5 MB, free: 10.54 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.464e-05/0.2301, allocations: 79.42 kB / 427.6 MB, free: 10.46 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000377/0.2305, allocations: 247.8 kB / 427.8 MB, free: 10.23 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.2305, allocations: 0 / 427.8 MB, free: 10.23 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.2305, allocations: 0 / 427.8 MB, free: 10.23 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.44e-06/0.2305, allocations: 4 kB / 427.8 MB, free: 10.22 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.0007627/0.2312, allocations: 486.4 kB / 428.3 MB, free: 9.711 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.177e-05/0.2313, allocations: 16.03 kB / 428.3 MB, free: 9.695 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.436e-05/0.2313, allocations: 192 / 428.3 MB, free: 9.695 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.755e-05/0.2313, allocations: 38.75 kB / 428.3 MB, free: 9.648 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.18e-05/0.2314, allocations: 28.78 kB / 428.4 MB, free: 9.621 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004136/0.2318, allocations: 245.3 kB / 428.6 MB, free: 9.359 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.474e-05/0.2318, allocations: 8.125 kB / 428.6 MB, free: 9.352 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.695e-05/0.2319, allocations: 12 kB / 428.6 MB, free: 9.34 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003618/0.2322, allocations: 176.4 kB / 428.8 MB, free: 9.137 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.206e-06/0.2322, allocations: 0 / 428.8 MB, free: 9.137 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.299e-05/0.2322, allocations: 0 / 428.8 MB, free: 9.137 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.971e-06/0.2322, allocations: 8 kB / 428.8 MB, free: 9.129 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001225/0.2324, allocations: 39.92 kB / 428.8 MB, free: 9.09 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005338/0.2329, allocations: 370.2 kB / 429.2 MB, free: 8.676 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000267/0.2332, allocations: 142.5 kB / 429.3 MB, free: 8.5 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.889e-05/0.2333, allocations: 55.41 kB / 429.4 MB, free: 8.434 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.277e-05/0.2333, allocations: 8 kB / 429.4 MB, free: 8.426 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001709/0.2335, allocations: 79.31 kB / 429.5 MB, free: 8.336 MB / 334.1 MB Notification: Performance of pre-optimization done (n=11): time 1.412e-06/0.2335, allocations: 0 / 429.5 MB, free: 8.336 MB / 334.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004132/0.2339, allocations: 165.8 kB / 429.6 MB, free: 8.168 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001126/0.234, allocations: 195.9 kB / 429.8 MB, free: 7.934 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003442/0.2343, allocations: 333.8 kB / 430.2 MB, free: 7.602 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.607e-05/0.2344, allocations: 29.7 kB / 430.2 MB, free: 7.566 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001052/0.2345, allocations: 132.3 kB / 430.3 MB, free: 7.43 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.889e-05/0.2345, allocations: 19.84 kB / 430.3 MB, free: 7.41 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.677e-05/0.2346, allocations: 37.7 kB / 430.4 MB, free: 7.367 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000143/0.2347, allocations: 342.8 kB / 430.7 MB, free: 7.023 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.545e-05/0.2348, allocations: 23.98 kB / 430.7 MB, free: 7 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001274/0.2349, allocations: 96.56 kB / 430.8 MB, free: 6.875 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001736/0.2351, allocations: 101.9 kB / 430.9 MB, free: 6.754 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.2351, allocations: 0 / 430.9 MB, free: 6.754 MB / 334.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002618/0.2353, allocations: 145.4 kB / 431.1 MB, free: 6.605 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.405e-05/0.2354, allocations: 4 kB / 431.1 MB, free: 6.602 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.304e-06/0.2354, allocations: 4 kB / 431.1 MB, free: 6.598 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.227e-05/0.2354, allocations: 0 / 431.1 MB, free: 6.598 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001325/0.2355, allocations: 31.92 kB / 431.1 MB, free: 6.566 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.129e-05/0.2355, allocations: 3.938 kB / 431.1 MB, free: 6.562 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.006e-05/0.2356, allocations: 7.953 kB / 431.1 MB, free: 6.555 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.718e-06/0.2356, allocations: 8 kB / 431.1 MB, free: 6.547 MB / 334.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.0001522/0.2358, allocations: 167 kB / 431.3 MB, free: 6.375 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001123/0.2359, allocations: 77.5 kB / 431.4 MB, free: 6.293 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002646/0.2361, allocations: 119.4 kB / 431.5 MB, free: 6.168 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.785e-06/0.2361, allocations: 0 / 431.5 MB, free: 6.168 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.304e-06/0.2361, allocations: 7.938 kB / 431.5 MB, free: 6.16 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.048e-06/0.2362, allocations: 0 / 431.5 MB, free: 6.16 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000218/0.2364, allocations: 216.6 kB / 431.7 MB, free: 5.906 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.2364, allocations: 96 / 431.7 MB, free: 5.906 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.523e-05/0.2364, allocations: 23.92 kB / 431.7 MB, free: 5.883 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.334e-06/0.2364, allocations: 0 / 431.7 MB, free: 5.883 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.253e-05/0.2365, allocations: 4 kB / 431.7 MB, free: 5.879 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.853e-06/0.2365, allocations: 0 / 431.7 MB, free: 5.879 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.408e-06/0.2365, allocations: 7.938 kB / 431.7 MB, free: 5.871 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002852/0.2368, allocations: 187.5 kB / 431.9 MB, free: 5.66 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.134e-05/0.2368, allocations: 43.81 kB / 432 MB, free: 5.617 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.214e-05/0.2369, allocations: 7.938 kB / 432 MB, free: 5.609 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.948e-05/0.2369, allocations: 8 kB / 432 MB, free: 5.602 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.875e-05/0.237, allocations: 15.86 kB / 432 MB, free: 5.586 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.923e-05/0.237, allocations: 8 kB / 432 MB, free: 5.578 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002396/0.2373, allocations: 245.2 kB / 432.2 MB, free: 5.336 MB / 334.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.2373, allocations: 0 / 432.2 MB, free: 5.336 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002733/0.2375, allocations: 35.94 kB / 432.3 MB, free: 5.301 MB / 334.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.001954/0.2395, allocations: 1.045 MB / 433.3 MB, free: 4.387 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002543/0.2397, allocations: 79.89 kB / 433.4 MB, free: 4.309 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.2397, allocations: 4 kB / 433.4 MB, free: 4.305 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.721e-05/0.2398, allocations: 23.92 kB / 433.4 MB, free: 4.281 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000459/0.2403, allocations: 76.91 kB / 433.5 MB, free: 4.203 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002696/0.243, allocations: 2.292 MB / 435.8 MB, free: 1.77 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003769/0.2433, allocations: 0.7514 MB / 436.5 MB, free: 0.9922 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.424e-05/0.2434, allocations: 25.64 kB / 436.6 MB, free: 0.9688 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001082/0.2435, allocations: 63.41 kB / 436.6 MB, free: 0.9102 MB / 334.1 MB Notification: Performance of SimCode: time 5.41e-07/0.2436, allocations: 4 kB / 436.6 MB, free: 0.9062 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02705/0.2706, allocations: 5.801 MB / 442.4 MB, free: 11.2 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.76/11.03, allocations: 4.062 kB / 442.4 MB, free: 11.2 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample_fmu --startTime=0 --stopTime=0.09 --stepSize=1.79104e-05 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.364920886000618] Failed to read output from testmodel.py, exit status != 0: ['time', 'sample1.y', 'shiftSample1.y', 'backSample1.y'] 11.242920338991098 11.25722203 11.023900343 Calling exit ...