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.001287/0.001287, allocations: 105.1 kB / 21.22 MB, free: 0.6289 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.001351/0.001351, allocations: 211.8 kB / 24.51 MB, free: 3.914 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.378/1.378, allocations: 230.6 MB / 258.3 MB, free: 7.746 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.001425/0.001425, allocations: 43.94 kB / 378.5 MB, free: 2.977 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2398/0.2412, allocations: 53.36 MB / 431.8 MB, free: 6.66 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold): time 0.003528/0.2448, allocations: 1.901 MB / 433.8 MB, free: 4.754 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002194/0.2469, allocations: 1.227 MB / 435 MB, free: 3.52 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001101/0.2471, allocations: 7.938 kB / 435 MB, free: 3.512 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00028/0.2473, allocations: 67.66 kB / 435.1 MB, free: 3.445 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000352/0.2477, allocations: 143.4 kB / 435.2 MB, free: 3.305 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005773/0.2483, allocations: 226.5 kB / 435.4 MB, free: 3.086 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002465/0.2485, allocations: 191.4 kB / 435.6 MB, free: 2.898 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001039/0.2486, allocations: 23.84 kB / 435.6 MB, free: 2.875 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001142/0.2487, allocations: 83.69 kB / 435.7 MB, free: 2.793 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001238/0.2489, allocations: 91.59 kB / 435.8 MB, free: 2.703 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.572e-05/0.2489, allocations: 8 kB / 435.8 MB, free: 2.695 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000157/0.249, allocations: 79.88 kB / 435.9 MB, free: 2.617 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.196e-05/0.2491, allocations: 51.84 kB / 435.9 MB, free: 2.566 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.915e-05/0.2492, allocations: 63.53 kB / 436 MB, free: 2.504 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003345/0.2495, allocations: 254.9 kB / 436.2 MB, free: 2.254 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.2495, allocations: 4 kB / 436.2 MB, free: 2.25 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.2495, allocations: 0 / 436.2 MB, free: 2.25 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.809e-06/0.2495, allocations: 0 / 436.2 MB, free: 2.25 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.000671/0.2502, allocations: 482.5 kB / 436.7 MB, free: 1.742 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.469e-05/0.2502, allocations: 8.031 kB / 436.7 MB, free: 1.734 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.211e-05/0.2503, allocations: 4.188 kB / 436.7 MB, free: 1.73 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.001e-05/0.2503, allocations: 38.75 kB / 436.8 MB, free: 1.684 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.515e-05/0.2504, allocations: 28.75 kB / 436.8 MB, free: 1.656 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003851/0.2507, allocations: 245.4 kB / 437 MB, free: 1.391 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.773e-05/0.2508, allocations: 8.125 kB / 437 MB, free: 1.383 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.963e-05/0.2508, allocations: 15.92 kB / 437.1 MB, free: 1.367 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003777/0.2512, allocations: 219.8 kB / 437.3 MB, free: 1.109 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.818e-06/0.2512, allocations: 3.938 kB / 437.3 MB, free: 1.105 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.547e-05/0.2512, allocations: 4 kB / 437.3 MB, free: 1.102 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.658e-06/0.2512, allocations: 0 / 437.3 MB, free: 1.102 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001234/0.2513, allocations: 43.97 kB / 437.3 MB, free: 1.059 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005711/0.2519, allocations: 437.6 kB / 437.8 MB, free: 0.5781 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002728/0.2522, allocations: 142.5 kB / 437.9 MB, free: 412 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001051/0.2523, allocations: 63.36 kB / 438 MB, free: 336 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.854e-05/0.2523, allocations: 0 / 438 MB, free: 336 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002005/0.2525, allocations: 105.1 kB / 438.1 MB, free: 212 kB / 334.1 MB Notification: Performance of pre-optimization done (n=11): time 1.262e-06/0.2525, allocations: 4 kB / 438.1 MB, free: 208 kB / 334.1 MB Notification: Performance of matching and sorting (n=11): time 0.000425/0.2529, allocations: 169.4 kB / 438.2 MB, free: 32 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001346/0.253, allocations: 191.9 kB / 438.4 MB, free: 15.8 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000362/0.2534, allocations: 348.1 kB / 438.8 MB, free: 15.45 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.253e-05/0.2534, allocations: 25.7 kB / 438.8 MB, free: 15.42 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001091/0.2535, allocations: 140.3 kB / 438.9 MB, free: 15.28 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.26e-05/0.2536, allocations: 19.89 kB / 438.9 MB, free: 15.26 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.584e-05/0.2536, allocations: 29.72 kB / 439 MB, free: 15.22 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001547/0.2538, allocations: 335.2 kB / 439.3 MB, free: 14.89 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.464e-05/0.2539, allocations: 27.98 kB / 439.3 MB, free: 14.86 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001723/0.254, allocations: 180.8 kB / 439.5 MB, free: 14.64 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001868/0.2542, allocations: 101 kB / 439.6 MB, free: 14.52 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.228e-06/0.2542, allocations: 4 kB / 439.6 MB, free: 14.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002635/0.2545, allocations: 137.4 kB / 439.7 MB, free: 14.38 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.699e-05/0.2545, allocations: 8 kB / 439.7 MB, free: 14.37 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/0.2545, allocations: 0 / 439.7 MB, free: 14.37 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.7e-05/0.2545, allocations: 7.984 kB / 439.7 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001172/0.2546, allocations: 16 kB / 439.8 MB, free: 14.34 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.665e-06/0.2546, allocations: 7.875 kB / 439.8 MB, free: 14.34 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.042e-05/0.2547, allocations: 23.88 kB / 439.8 MB, free: 14.31 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.119e-05/0.2548, allocations: 4 kB / 439.8 MB, free: 14.31 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.0001485/0.2549, allocations: 157.9 kB / 440 MB, free: 14.14 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.804e-05/0.255, allocations: 73.48 kB / 440 MB, free: 14.07 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002801/0.2553, allocations: 127.4 kB / 440.1 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.153e-06/0.2553, allocations: 4 kB / 440.2 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.362e-06/0.2553, allocations: 4.25 kB / 440.2 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.587e-06/0.2553, allocations: 0 / 440.2 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000227/0.2555, allocations: 212.6 kB / 440.4 MB, free: 13.68 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.486e-06/0.2555, allocations: 4 kB / 440.4 MB, free: 13.67 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.911e-05/0.2556, allocations: 19.92 kB / 440.4 MB, free: 13.65 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.275e-06/0.2556, allocations: 4.062 kB / 440.4 MB, free: 13.65 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.272e-05/0.2556, allocations: 4 kB / 440.4 MB, free: 13.64 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.557e-06/0.2556, allocations: 3.984 kB / 440.4 MB, free: 13.64 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.328e-06/0.2556, allocations: 7.938 kB / 440.4 MB, free: 13.63 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000295/0.2559, allocations: 191.4 kB / 440.6 MB, free: 13.42 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.544e-05/0.256, allocations: 43.77 kB / 440.6 MB, free: 13.38 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.306e-05/0.256, allocations: 4 kB / 440.6 MB, free: 13.37 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.213e-05/0.2561, allocations: 15.88 kB / 440.7 MB, free: 13.36 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.422e-05/0.2562, allocations: 11.92 kB / 440.7 MB, free: 13.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.037e-05/0.2562, allocations: 8.047 kB / 440.7 MB, free: 13.34 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000246/0.2564, allocations: 255 kB / 440.9 MB, free: 13.09 MB / 350.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.2564, allocations: 0 / 440.9 MB, free: 13.09 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002677/0.2567, allocations: 35.94 kB / 441 MB, free: 13.05 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.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 10 * 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.002078/0.2588, allocations: 1.073 MB / 442 MB, free: 12.13 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002567/0.259, allocations: 79.91 kB / 442.1 MB, free: 12.05 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.259, allocations: 4.312 kB / 442.1 MB, free: 12.05 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001014/0.2591, allocations: 43.91 kB / 442.2 MB, free: 12 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004092/0.2595, allocations: 78.83 kB / 442.2 MB, free: 11.93 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002657/0.2622, allocations: 2.301 MB / 444.5 MB, free: 9.5 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001501/0.2623, allocations: 148.3 kB / 444.7 MB, free: 9.336 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.574e-05/0.2624, allocations: 29.78 kB / 444.7 MB, free: 9.309 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001098/0.2625, allocations: 63.41 kB / 444.8 MB, free: 9.246 MB / 350.1 MB Notification: Performance of SimCode: time 2.9e-07/0.2625, allocations: 0 / 444.8 MB, free: 9.246 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.027/0.2895, allocations: 5.988 MB / 450.8 MB, free: 3.359 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.78/11.07, allocations: 18.38 kB / 450.8 MB, free: 3.348 MB / 350.1 MB " [Timeout remaining time 649] (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: 13.408740686019883] Failed to read output from testmodel.py, exit status != 0: ['time', 'sample1.y', 'shiftSample1.y', 'hold1.y'] 11.285327121964656 11.300329308 11.047707082 Calling exit ...