Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.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.001242/0.001242, 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.001276/0.001276, 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.394/1.394, allocations: 225.6 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.Hold,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_Hold",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_Hold",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001477/0.001477, allocations: 51.92 kB / 371.2 MB, free: 9.879 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2647/0.2662, allocations: 52.2 MB / 423.4 MB, free: 14.64 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold): time 0.003499/0.2697, allocations: 1.927 MB / 425.3 MB, free: 12.7 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002031/0.2717, allocations: 1.177 MB / 426.5 MB, free: 11.52 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001136/0.2718, allocations: 7.938 kB / 426.5 MB, free: 11.51 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003218/0.2721, allocations: 71.66 kB / 426.6 MB, free: 11.44 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002715/0.2724, allocations: 95.59 kB / 426.7 MB, free: 11.35 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007199/0.2731, allocations: 258.6 kB / 426.9 MB, free: 11.1 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002556/0.2734, allocations: 179.5 kB / 427.1 MB, free: 10.92 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001189/0.2735, allocations: 25.73 kB / 427.1 MB, free: 10.89 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001186/0.2736, allocations: 83.69 kB / 427.2 MB, free: 10.81 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001302/0.2737, allocations: 83.67 kB / 427.3 MB, free: 10.73 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.52e-05/0.2738, allocations: 11.94 kB / 427.3 MB, free: 10.72 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001666/0.2739, allocations: 79.88 kB / 427.4 MB, free: 10.64 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.411e-05/0.274, allocations: 47.83 kB / 427.4 MB, free: 10.59 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.435e-05/0.2741, allocations: 79.48 kB / 427.5 MB, free: 10.52 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003626/0.2745, allocations: 243.8 kB / 427.8 MB, free: 10.28 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.2745, allocations: 0 / 427.8 MB, free: 10.28 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.2745, allocations: 3.938 kB / 427.8 MB, free: 10.28 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.671e-06/0.2745, allocations: 0 / 427.8 MB, free: 10.28 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.0008021/0.2753, allocations: 478.6 kB / 428.2 MB, free: 9.773 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.624e-05/0.2753, allocations: 8.031 kB / 428.2 MB, free: 9.766 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.685e-05/0.2753, allocations: 4.188 kB / 428.2 MB, free: 9.762 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.087e-05/0.2754, allocations: 42.73 kB / 428.3 MB, free: 9.711 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.049e-05/0.2755, allocations: 24.75 kB / 428.3 MB, free: 9.688 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004024/0.2759, allocations: 237.5 kB / 428.5 MB, free: 9.434 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.695e-05/0.2759, allocations: 12.12 kB / 428.6 MB, free: 9.422 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.966e-05/0.2759, allocations: 8 kB / 428.6 MB, free: 9.414 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003607/0.2763, allocations: 176.2 kB / 428.7 MB, free: 9.211 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.616e-06/0.2763, allocations: 4 kB / 428.7 MB, free: 9.207 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.319e-05/0.2763, allocations: 0 / 428.7 MB, free: 9.207 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.883e-06/0.2763, allocations: 4 kB / 428.7 MB, free: 9.203 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001207/0.2764, allocations: 43.91 kB / 428.8 MB, free: 9.16 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005729/0.277, allocations: 441.7 kB / 429.2 MB, free: 8.676 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002766/0.2772, allocations: 142.5 kB / 429.4 MB, free: 8.5 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001009/0.2773, allocations: 55.42 kB / 429.4 MB, free: 8.434 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.203e-05/0.2774, allocations: 4 kB / 429.4 MB, free: 8.43 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002008/0.2776, allocations: 93.03 kB / 429.5 MB, free: 8.32 MB / 334.1 MB Notification: Performance of pre-optimization done (n=11): time 1.292e-06/0.2776, allocations: 0 / 429.5 MB, free: 8.32 MB / 334.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004241/0.278, allocations: 177.4 kB / 429.7 MB, free: 8.141 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001193/0.2781, allocations: 187.9 kB / 429.9 MB, free: 7.914 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003598/0.2785, allocations: 337.8 kB / 430.2 MB, free: 7.578 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.031e-05/0.2785, allocations: 25.7 kB / 430.2 MB, free: 7.547 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001161/0.2786, allocations: 124.8 kB / 430.3 MB, free: 7.418 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.994e-05/0.2786, allocations: 27.83 kB / 430.4 MB, free: 7.391 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.215e-05/0.2787, allocations: 45.59 kB / 430.4 MB, free: 7.34 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001477/0.2789, allocations: 330.8 kB / 430.7 MB, free: 7.008 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.358e-05/0.2789, allocations: 23.98 kB / 430.8 MB, free: 6.984 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001336/0.2791, allocations: 95.7 kB / 430.8 MB, free: 6.863 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001758/0.2792, allocations: 101.3 kB / 430.9 MB, free: 6.746 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.2792, allocations: 4 kB / 431 MB, free: 6.742 MB / 334.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002553/0.2795, allocations: 141.4 kB / 431.1 MB, free: 6.598 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.528e-05/0.2795, allocations: 4 kB / 431.1 MB, free: 6.594 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.843e-06/0.2795, allocations: 4 kB / 431.1 MB, free: 6.59 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.34e-05/0.2795, allocations: 0 / 431.1 MB, free: 6.59 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001217/0.2797, allocations: 23.98 kB / 431.1 MB, free: 6.566 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.588e-06/0.2797, allocations: 7.875 kB / 431.1 MB, free: 6.559 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.738e-05/0.2797, allocations: 8 kB / 431.1 MB, free: 6.551 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.317e-05/0.2798, allocations: 7.984 kB / 431.1 MB, free: 6.543 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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,shiftSample1.y,hold1.y,hold1.u,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.000148/0.2799, allocations: 154 kB / 431.3 MB, free: 6.383 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001043/0.28, allocations: 73.48 kB / 431.4 MB, free: 6.305 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002649/0.2803, allocations: 119.4 kB / 431.5 MB, free: 6.18 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.715e-06/0.2803, allocations: 0 / 431.5 MB, free: 6.18 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.803e-06/0.2803, allocations: 3.938 kB / 431.5 MB, free: 6.176 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.504e-06/0.2803, allocations: 7.984 kB / 431.5 MB, free: 6.168 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002392/0.2805, allocations: 216.5 kB / 431.7 MB, free: 5.914 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.382e-06/0.2805, allocations: 4.062 kB / 431.7 MB, free: 5.91 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.28e-05/0.2806, allocations: 19.92 kB / 431.7 MB, free: 5.891 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.195e-06/0.2806, allocations: 4 kB / 431.7 MB, free: 5.887 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.237e-05/0.2806, allocations: 7.938 kB / 431.7 MB, free: 5.879 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.783e-06/0.2806, allocations: 4 kB / 431.7 MB, free: 5.875 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.2806, allocations: 4.062 kB / 431.7 MB, free: 5.871 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002865/0.2809, allocations: 187.4 kB / 431.9 MB, free: 5.66 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.02e-05/0.281, allocations: 39.83 kB / 432 MB, free: 5.621 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.522e-05/0.281, allocations: 8 kB / 432 MB, free: 5.613 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.4e-05/0.2811, allocations: 0 / 432 MB, free: 5.613 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.822e-05/0.2811, allocations: 15.92 kB / 432 MB, free: 5.598 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.51e-05/0.2812, allocations: 11.98 kB / 432 MB, free: 5.586 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002328/0.2814, allocations: 237.2 kB / 432.2 MB, free: 5.352 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2814, allocations: 0 / 432.2 MB, free: 5.352 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002651/0.2817, allocations: 39.94 kB / 432.3 MB, free: 5.312 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,hold1.y,hold1.u,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 (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.002059/0.2837, allocations: 1.032 MB / 433.3 MB, free: 4.406 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002349/0.2839, allocations: 83.83 kB / 433.4 MB, free: 4.324 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.238e-06/0.284, allocations: 4 kB / 433.4 MB, free: 4.32 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.311e-05/0.284, allocations: 31.92 kB / 433.4 MB, free: 4.289 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004124/0.2845, allocations: 75.11 kB / 433.5 MB, free: 4.223 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002664/0.2871, allocations: 2.273 MB / 435.8 MB, free: 1.82 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003805/0.2875, allocations: 0.7437 MB / 436.5 MB, free: 1.051 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.017e-05/0.2876, allocations: 33.45 kB / 436.5 MB, free: 1.02 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.949e-05/0.2877, allocations: 55.42 kB / 436.6 MB, free: 0.9648 MB / 334.1 MB Notification: Performance of SimCode: time 3.9e-07/0.2877, allocations: 0 / 436.6 MB, free: 0.9648 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02684/0.3145, allocations: 5.632 MB / 442.2 MB, free: 11.42 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.6/10.91, allocations: 10.45 kB / 442.2 MB, free: 11.41 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_Hold_fmu --startTime=0 --stopTime=0.2 --stepSize=3.98963e-05 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_Hold.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.319677673978731] Failed to read output from testmodel.py, exit status != 0: ['time', 'sample1.y', 'shiftSample1.y', 'hold1.y'] 11.125075931020547 11.140335865 10.862809513 Calling exit ...