Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.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.00124/0.00124, allocations: 105.1 kB / 21.21 MB, free: 0.6523 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.001311/0.001311, allocations: 211.9 kB / 24.51 MB, free: 3.945 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.357/1.357, allocations: 230.6 MB / 258.3 MB, free: 7.797 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.SubSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001413/0.001413, allocations: 43.92 kB / 378.5 MB, free: 2.973 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2361/0.2375, allocations: 53.37 MB / 431.9 MB, free: 6.645 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample): time 0.00318/0.2407, allocations: 1.867 MB / 433.7 MB, free: 4.773 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001957/0.2426, allocations: 1.212 MB / 434.9 MB, free: 3.555 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.569e-05/0.2427, allocations: 4 kB / 434.9 MB, free: 3.551 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002843/0.243, allocations: 67.67 kB / 435 MB, free: 3.484 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003369/0.2433, allocations: 131.4 kB / 435.1 MB, free: 3.355 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005831/0.2439, allocations: 230.5 kB / 435.4 MB, free: 3.133 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002408/0.2442, allocations: 179.5 kB / 435.5 MB, free: 2.957 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.994e-05/0.2443, allocations: 23.84 kB / 435.6 MB, free: 2.934 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001101/0.2444, allocations: 83.62 kB / 435.6 MB, free: 2.852 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001246/0.2445, allocations: 83.67 kB / 435.7 MB, free: 2.77 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.411e-05/0.2445, allocations: 8 kB / 435.7 MB, free: 2.762 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001539/0.2447, allocations: 79.88 kB / 435.8 MB, free: 2.684 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.803e-05/0.2448, allocations: 59.77 kB / 435.9 MB, free: 2.625 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.961e-05/0.2448, allocations: 55.59 kB / 435.9 MB, free: 2.57 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000327/0.2452, allocations: 246.9 kB / 436.2 MB, free: 2.328 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.2452, allocations: 3.938 kB / 436.2 MB, free: 2.324 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.002e-06/0.2452, allocations: 0 / 436.2 MB, free: 2.324 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.708e-06/0.2452, allocations: 0 / 436.2 MB, free: 2.324 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0006748/0.2458, allocations: 482.5 kB / 436.6 MB, free: 1.816 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.539e-05/0.2459, allocations: 8.031 kB / 436.6 MB, free: 1.809 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.291e-05/0.2459, allocations: 4.188 kB / 436.6 MB, free: 1.805 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.493e-05/0.2459, allocations: 38.73 kB / 436.7 MB, free: 1.758 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.567e-05/0.246, allocations: 24.8 kB / 436.7 MB, free: 1.734 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003724/0.2464, allocations: 233.5 kB / 436.9 MB, free: 1.48 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.971e-05/0.2464, allocations: 12.12 kB / 436.9 MB, free: 1.469 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.95e-05/0.2464, allocations: 4 kB / 437 MB, free: 1.465 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003682/0.2468, allocations: 211 kB / 437.2 MB, free: 1.219 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.075e-06/0.2468, allocations: 0 / 437.2 MB, free: 1.219 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.482e-05/0.2468, allocations: 4 kB / 437.2 MB, free: 1.215 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.547e-06/0.2468, allocations: 4 kB / 437.2 MB, free: 1.211 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001306/0.2469, allocations: 35.91 kB / 437.2 MB, free: 1.176 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005046/0.2474, allocations: 345.5 kB / 437.5 MB, free: 0.7891 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002683/0.2477, allocations: 131.8 kB / 437.7 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.993e-05/0.2478, allocations: 42.56 kB / 437.7 MB, free: 0.582 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.088e-05/0.2478, allocations: 0 / 437.7 MB, free: 0.582 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000184/0.248, allocations: 79.38 kB / 437.8 MB, free: 0.4922 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.292e-06/0.248, allocations: 0 / 437.8 MB, free: 0.4922 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003877/0.2484, allocations: 161.4 kB / 437.9 MB, free: 336 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.76e-05/0.2485, allocations: 158.2 kB / 438.1 MB, free: 140 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003629/0.2488, allocations: 346 kB / 438.4 MB, free: 15.79 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.405e-05/0.2489, allocations: 33.7 kB / 438.5 MB, free: 15.75 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.385e-05/0.249, allocations: 128 kB / 438.6 MB, free: 15.62 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.856e-05/0.249, allocations: 23.95 kB / 438.6 MB, free: 15.6 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.794e-05/0.249, allocations: 33.7 kB / 438.6 MB, free: 15.56 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001436/0.2492, allocations: 326.8 kB / 439 MB, free: 15.23 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.293e-05/0.2493, allocations: 27.98 kB / 439 MB, free: 15.21 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001568/0.2494, allocations: 167.9 kB / 439.2 MB, free: 15 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00016/0.2496, allocations: 92.22 kB / 439.3 MB, free: 14.89 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.2496, allocations: 0 / 439.3 MB, free: 14.89 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002342/0.2498, allocations: 125.5 kB / 439.4 MB, free: 14.77 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.48e-05/0.2498, allocations: 8 kB / 439.4 MB, free: 14.76 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.508e-06/0.2498, allocations: 0 / 439.4 MB, free: 14.76 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.362e-05/0.2498, allocations: 0 / 439.4 MB, free: 14.76 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001085/0.25, allocations: 23.92 kB / 439.4 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.297e-06/0.25, allocations: 8.062 kB / 439.4 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.721e-05/0.25, allocations: 15.94 kB / 439.4 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.044e-05/0.2501, allocations: 4 kB / 439.4 MB, free: 14.71 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,subSample1.y,subSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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.0001387/0.2502, allocations: 158.1 kB / 439.6 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.024e-05/0.2503, allocations: 69.45 kB / 439.7 MB, free: 14.47 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002764/0.2506, allocations: 127.3 kB / 439.8 MB, free: 14.34 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.675e-06/0.2506, allocations: 0 / 439.8 MB, free: 14.34 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.676e-06/0.2506, allocations: 7.938 kB / 439.8 MB, free: 14.33 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.2506, allocations: 64 / 439.8 MB, free: 14.33 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002142/0.2508, allocations: 200.7 kB / 440 MB, free: 14.09 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.288e-06/0.2508, allocations: 7.984 kB / 440 MB, free: 14.08 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.479e-05/0.2509, allocations: 8 kB / 440 MB, free: 14.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.709e-06/0.2509, allocations: 4 kB / 440 MB, free: 14.07 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.016e-05/0.2509, allocations: 0 / 440 MB, free: 14.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.2509, allocations: 3.938 kB / 440 MB, free: 14.07 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.37e-06/0.2509, allocations: 11.92 kB / 440 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002753/0.2512, allocations: 174.7 kB / 440.2 MB, free: 13.86 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.551e-05/0.2512, allocations: 35.84 kB / 440.2 MB, free: 13.82 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.21e-05/0.2513, allocations: 4 kB / 440.2 MB, free: 13.82 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.104e-05/0.2513, allocations: 11.98 kB / 440.2 MB, free: 13.81 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.981e-05/0.2514, allocations: 15.97 kB / 440.3 MB, free: 13.79 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.741e-05/0.2514, allocations: 7.984 kB / 440.3 MB, free: 13.79 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002401/0.2516, allocations: 245.2 kB / 440.5 MB, free: 13.55 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2516, allocations: 0 / 440.5 MB, free: 13.55 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000254/0.2519, allocations: 39.92 kB / 440.5 MB, free: 13.51 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,subSample1.y,sample1.y,subSample1.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 (10): * Single equations (assignments): 8 * 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.002015/0.2539, allocations: 1.059 MB / 441.6 MB, free: 12.61 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002293/0.2541, allocations: 79.89 kB / 441.7 MB, free: 12.53 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.2541, allocations: 0 / 441.7 MB, free: 12.53 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.827e-05/0.2542, allocations: 35.92 kB / 441.7 MB, free: 12.49 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003968/0.2546, allocations: 60.84 kB / 441.8 MB, free: 12.43 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002481/0.2571, allocations: 2.253 MB / 444 MB, free: 10.05 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001237/0.2572, allocations: 131.9 kB / 444.2 MB, free: 9.902 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.963e-05/0.2573, allocations: 25.62 kB / 444.2 MB, free: 9.879 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.983e-05/0.2574, allocations: 59.42 kB / 444.2 MB, free: 9.82 MB / 350.1 MB Notification: Performance of SimCode: time 3.71e-07/0.2574, allocations: 7.938 kB / 444.2 MB, free: 9.812 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02695/0.2844, allocations: 5.794 MB / 450 MB, free: 4.125 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.75/11.03, allocations: 8.062 kB / 450 MB, free: 4.117 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample_fmu --startTime=0 --stopTime=0.2 --stepSize=3.98963e-05 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.352195953018963] Failed to read output from testmodel.py, exit status != 0: ['time', 'sample1.y', 'subSample1.y'] 11.243203680031002 11.257466489 11.009425553 Calling exit ...