Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.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.001361/0.001361, allocations: 121 kB / 18.5 MB, free: 4.562 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.001319/0.001319, allocations: 213.5 kB / 21.45 MB, free: 1.617 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.394/1.394, allocations: 230.6 MB / 254.8 MB, free: 15.11 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.Hold,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_Hold",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_Hold",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00154/0.00154, allocations: 59.91 kB / 373.7 MB, free: 10.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09375/0.09529, allocations: 53.32 MB / 427 MB, free: 4.809 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold): time 0.003381/0.09867, allocations: 1.926 MB / 428.9 MB, free: 2.867 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002279/0.1009, allocations: 1.317 MB / 430.2 MB, free: 1.543 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001244/0.1011, allocations: 7.938 kB / 430.3 MB, free: 1.535 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003192/0.1014, allocations: 67.66 kB / 430.3 MB, free: 1.469 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003727/0.1018, allocations: 139.4 kB / 430.5 MB, free: 1.332 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006556/0.1024, allocations: 222.1 kB / 430.7 MB, free: 1.117 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002676/0.1027, allocations: 195.4 kB / 430.9 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000111/0.1028, allocations: 17.56 kB / 430.9 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001241/0.1029, allocations: 87.61 kB / 431 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001279/0.103, allocations: 87.61 kB / 431.1 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.482e-05/0.1031, allocations: 12 kB / 431.1 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001558/0.1032, allocations: 71.89 kB / 431.1 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.568e-05/0.1033, allocations: 51.83 kB / 431.2 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.927e-05/0.1034, allocations: 79.42 kB / 431.3 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003581/0.1038, allocations: 258.9 kB / 431.5 MB, free: 280 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.838e-06/0.1038, allocations: 0 / 431.5 MB, free: 280 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.1038, allocations: 0 / 431.5 MB, free: 280 kB / 350.1 MB Notification: Performance of Transformations before backend: time 9.849e-06/0.1038, allocations: 0 / 431.5 MB, free: 280 kB / 350.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.1712/0.275, allocations: 0.5414 MB / 432.1 MB, free: 11.21 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.181e-05/0.275, allocations: 13.16 kB / 432.1 MB, free: 11.21 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.505e-05/0.275, allocations: 3.5 kB / 432.1 MB, free: 11.21 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.584e-05/0.275, allocations: 38 kB / 432.1 MB, free: 11.17 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.393e-05/0.2751, allocations: 27.88 kB / 432.1 MB, free: 11.15 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004108/0.2755, allocations: 300.8 kB / 432.4 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.915e-05/0.2755, allocations: 7.094 kB / 432.4 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.275e-05/0.2755, allocations: 12.08 kB / 432.5 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003672/0.2759, allocations: 175.1 kB / 432.6 MB, free: 10.83 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.015e-05/0.2759, allocations: 4.281 kB / 432.6 MB, free: 10.83 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.51e-05/0.2759, allocations: 5.688 kB / 432.6 MB, free: 10.83 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.51e-06/0.2759, allocations: 1.062 kB / 432.6 MB, free: 10.83 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001247/0.2761, allocations: 44.69 kB / 432.7 MB, free: 10.83 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004976/0.2766, allocations: 468.2 kB / 433.1 MB, free: 10.47 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002614/0.2768, allocations: 143.4 kB / 433.3 MB, free: 10.38 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.043e-05/0.2769, allocations: 52.56 kB / 433.3 MB, free: 10.34 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.067e-05/0.277, allocations: 7.188 kB / 433.3 MB, free: 10.34 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001809/0.2771, allocations: 100.7 kB / 433.4 MB, free: 10.28 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 1.783e-06/0.2771, allocations: 2.875 kB / 433.4 MB, free: 10.28 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.000385/0.2775, allocations: 167.6 kB / 433.6 MB, free: 10.23 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.385e-05/0.2776, allocations: 190.2 kB / 433.8 MB, free: 10.02 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003109/0.2779, allocations: 340.4 kB / 434.1 MB, free: 9.91 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.273e-05/0.2779, allocations: 27.05 kB / 434.1 MB, free: 9.879 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.767e-05/0.278, allocations: 137.5 kB / 434.3 MB, free: 9.789 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.255e-05/0.278, allocations: 17.33 kB / 434.3 MB, free: 9.781 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.772e-05/0.2781, allocations: 36.91 kB / 434.3 MB, free: 9.766 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.47e-05/0.2781, allocations: 335.3 kB / 434.7 MB, free: 9.449 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.455e-05/0.2782, allocations: 27.22 kB / 434.7 MB, free: 9.449 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.745e-05/0.2783, allocations: 102.6 kB / 434.8 MB, free: 9.379 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001364/0.2784, allocations: 103.6 kB / 434.9 MB, free: 9.332 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.2784, allocations: 0 / 434.9 MB, free: 9.332 MB / 350.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002066/0.2786, allocations: 143.5 kB / 435 MB, free: 9.289 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.432e-05/0.2786, allocations: 7.047 kB / 435 MB, free: 9.289 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.47e-06/0.2786, allocations: 2.125 kB / 435 MB, free: 9.289 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.752e-05/0.2787, allocations: 4.594 kB / 435 MB, free: 9.289 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001116/0.2788, allocations: 20.91 kB / 435.1 MB, free: 9.289 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.142e-06/0.2788, allocations: 3.75 kB / 435.1 MB, free: 9.289 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.712e-05/0.2788, allocations: 9.984 kB / 435.1 MB, free: 9.285 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.077e-05/0.2789, allocations: 8.141 kB / 435.1 MB, free: 9.285 MB / 350.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.0001003/0.279, allocations: 170.7 kB / 435.2 MB, free: 9.16 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.987e-05/0.279, allocations: 70.3 kB / 435.3 MB, free: 9.117 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.569e-05/0.2791, allocations: 30.66 kB / 435.3 MB, free: 9.113 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.116e-06/0.2791, allocations: 3.375 kB / 435.3 MB, free: 9.113 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.2791, allocations: 4.75 kB / 435.4 MB, free: 9.113 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.2791, allocations: 3.266 kB / 435.4 MB, free: 9.113 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001622/0.2793, allocations: 249.9 kB / 435.6 MB, free: 8.922 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.976e-06/0.2793, allocations: 2.5 kB / 435.6 MB, free: 8.922 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.804e-05/0.2793, allocations: 11.97 kB / 435.6 MB, free: 8.922 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.695e-06/0.2793, allocations: 5.406 kB / 435.6 MB, free: 8.918 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.297e-05/0.2793, allocations: 7.406 kB / 435.6 MB, free: 8.918 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.103e-06/0.2793, allocations: 1.406 kB / 435.6 MB, free: 8.918 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.2794, allocations: 1.281 kB / 435.6 MB, free: 8.918 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002413/0.2796, allocations: 195.4 kB / 435.8 MB, free: 8.809 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.008e-05/0.2797, allocations: 115.5 kB / 435.9 MB, free: 8.703 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.052e-05/0.2797, allocations: 6.594 kB / 435.9 MB, free: 8.703 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.8e-05/0.2798, allocations: 10.41 kB / 436 MB, free: 8.703 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.52e-05/0.2798, allocations: 10.2 kB / 436 MB, free: 8.703 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.627e-05/0.2798, allocations: 4.531 kB / 436 MB, free: 8.703 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001985/0.28, allocations: 247.6 kB / 436.2 MB, free: 8.621 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.28, allocations: 5.312 kB / 436.2 MB, free: 8.617 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002672/0.2803, allocations: 44.17 kB / 436.3 MB, free: 8.613 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,hold1.y,hold1.u,shiftSample1.y,sample1.y,shiftSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * 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.001739/0.282, allocations: 1.044 MB / 437.3 MB, free: 7.922 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002285/0.2823, allocations: 78.44 kB / 437.4 MB, free: 7.918 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.2823, allocations: 1.469 kB / 437.4 MB, free: 7.918 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.657e-05/0.2824, allocations: 37.5 kB / 437.4 MB, free: 7.918 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004131/0.2828, allocations: 70.97 kB / 437.5 MB, free: 7.91 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002064/0.2848, allocations: 2.293 MB / 439.8 MB, free: 6.367 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000175/0.285, allocations: 0.7455 MB / 440.5 MB, free: 5.664 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.628e-05/0.2851, allocations: 26.14 kB / 440.5 MB, free: 5.66 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.227e-05/0.2852, allocations: 63.03 kB / 440.6 MB, free: 5.617 MB / 350.1 MB Notification: Performance of SimCode: time 4.81e-07/0.2852, allocations: 0 / 440.6 MB, free: 5.617 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02237/0.3076, allocations: 5.556 MB / 446.2 MB, free: 4.723 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.063/8.371, allocations: 6.469 kB / 446.2 MB, free: 4.719 MB / 350.1 MB " [Timeout remaining time 651] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_Hold_fmu --startTime=0 --stopTime=0.2 --stepSize=3.98963e-05 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_Hold.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 10.750506014039274] Failed to read output from testmodel.py, exit status != 0: ['time', 'sample1.y', 'shiftSample1.y', 'hold1.y'] 8.550756498007104 8.563614355 8.456846853 Calling exit ...