Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.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.001345/0.001345, allocations: 110 kB / 18.49 MB, free: 4.543 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.001335/0.001335, allocations: 198.6 kB / 21.43 MB, free: 1.609 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.363/1.363, allocations: 225.6 MB / 249.8 MB, free: 3.605 MB / 190.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.SubSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001463/0.001463, allocations: 51.92 kB / 366.3 MB, free: 0.8398 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08902/0.09048, allocations: 52.14 MB / 418.5 MB, free: 12.6 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample): time 0.003143/0.09362, allocations: 1.882 MB / 420.4 MB, free: 10.71 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001773/0.0954, allocations: 1.138 MB / 421.5 MB, free: 9.57 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.716e-05/0.09549, allocations: 3.938 kB / 421.5 MB, free: 9.566 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002804/0.09578, allocations: 67.67 kB / 421.6 MB, free: 9.5 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002584/0.09603, allocations: 91.59 kB / 421.7 MB, free: 9.41 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007004/0.09673, allocations: 254.7 kB / 421.9 MB, free: 9.164 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002535/0.09699, allocations: 171.5 kB / 422.1 MB, free: 8.996 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001027/0.09709, allocations: 21.55 kB / 422.1 MB, free: 8.977 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001173/0.09721, allocations: 79.62 kB / 422.2 MB, free: 8.898 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001181/0.09733, allocations: 79.67 kB / 422.3 MB, free: 8.82 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.27e-05/0.09735, allocations: 11.94 kB / 422.3 MB, free: 8.809 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000155/0.0975, allocations: 71.95 kB / 422.3 MB, free: 8.738 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.436e-05/0.09759, allocations: 55.77 kB / 422.4 MB, free: 8.684 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.466e-05/0.09767, allocations: 75.47 kB / 422.5 MB, free: 8.609 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003537/0.09803, allocations: 239 kB / 422.7 MB, free: 8.375 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.09803, allocations: 0 / 422.7 MB, free: 8.375 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.123e-06/0.09803, allocations: 0 / 422.7 MB, free: 8.375 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.771e-06/0.09804, allocations: 0 / 422.7 MB, free: 8.375 MB / 350.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.000751/0.09879, allocations: 0.5309 MB / 423.2 MB, free: 7.789 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.919e-05/0.09883, allocations: 8.031 kB / 423.2 MB, free: 7.781 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.538e-05/0.09886, allocations: 12.19 kB / 423.2 MB, free: 7.77 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.505e-05/0.0989, allocations: 34.73 kB / 423.3 MB, free: 7.727 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.996e-05/0.09896, allocations: 36.67 kB / 423.3 MB, free: 7.691 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004242/0.09938, allocations: 283.8 kB / 423.6 MB, free: 7.375 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.681e-05/0.0994, allocations: 12.12 kB / 423.6 MB, free: 7.363 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.876e-05/0.09942, allocations: 4 kB / 423.6 MB, free: 7.359 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003437/0.09976, allocations: 171 kB / 423.8 MB, free: 7.168 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.446e-06/0.09977, allocations: 0 / 423.8 MB, free: 7.168 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.226e-05/0.09978, allocations: 0 / 423.8 MB, free: 7.168 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.562e-06/0.09979, allocations: 4 kB / 423.8 MB, free: 7.164 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001191/0.09991, allocations: 39.91 kB / 423.8 MB, free: 7.125 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004992/0.1004, allocations: 386.3 kB / 424.2 MB, free: 6.691 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002538/0.1007, allocations: 115.9 kB / 424.3 MB, free: 6.551 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.28e-05/0.1008, allocations: 46.56 kB / 424.4 MB, free: 6.496 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.9e-05/0.1008, allocations: 0 / 424.4 MB, free: 6.496 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001731/0.1009, allocations: 79.31 kB / 424.4 MB, free: 6.406 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.382e-06/0.1009, allocations: 4 kB / 424.4 MB, free: 6.402 MB / 350.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003859/0.1013, allocations: 153.4 kB / 424.6 MB, free: 6.246 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.912e-05/0.1014, allocations: 162.2 kB / 424.7 MB, free: 6.051 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003529/0.1018, allocations: 330.6 kB / 425.1 MB, free: 5.719 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.207e-05/0.1018, allocations: 25.7 kB / 425.1 MB, free: 5.688 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.174e-05/0.1019, allocations: 120.1 kB / 425.2 MB, free: 5.566 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.401e-05/0.1019, allocations: 24.14 kB / 425.2 MB, free: 5.543 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.198e-05/0.102, allocations: 33.67 kB / 425.3 MB, free: 5.504 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001415/0.1021, allocations: 330.8 kB / 425.6 MB, free: 5.172 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.053e-05/0.1022, allocations: 31.92 kB / 425.6 MB, free: 5.141 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000119/0.1023, allocations: 82.84 kB / 425.7 MB, free: 5.035 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001585/0.1025, allocations: 84.22 kB / 425.8 MB, free: 4.938 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.1025, allocations: 0 / 425.8 MB, free: 4.938 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002584/0.1027, allocations: 125.6 kB / 425.9 MB, free: 4.809 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.435e-05/0.1027, allocations: 8 kB / 425.9 MB, free: 4.801 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.815e-06/0.1028, allocations: 4 kB / 425.9 MB, free: 4.797 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.345e-05/0.1028, allocations: 0 / 425.9 MB, free: 4.797 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001089/0.1029, allocations: 23.98 kB / 425.9 MB, free: 4.773 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.937e-06/0.1029, allocations: 7.875 kB / 425.9 MB, free: 4.766 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.778e-05/0.103, allocations: 12.2 kB / 426 MB, free: 4.754 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.125e-05/0.103, allocations: 4 kB / 426 MB, free: 4.75 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.0001455/0.1031, allocations: 162.5 kB / 426.1 MB, free: 4.582 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.819e-05/0.1032, allocations: 69.5 kB / 426.2 MB, free: 4.508 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.19e-05/0.1033, allocations: 25.7 kB / 426.2 MB, free: 4.48 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.1033, allocations: 0 / 426.2 MB, free: 4.48 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.1033, allocations: 3.938 kB / 426.2 MB, free: 4.477 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.06e-06/0.1033, allocations: 3.984 kB / 426.2 MB, free: 4.473 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002199/0.1035, allocations: 237.6 kB / 426.5 MB, free: 4.191 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.996e-06/0.1035, allocations: 7.938 kB / 426.5 MB, free: 4.184 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.434e-05/0.1036, allocations: 12 kB / 426.5 MB, free: 4.172 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.1036, allocations: 0 / 426.5 MB, free: 4.172 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.437e-05/0.1036, allocations: 7.984 kB / 426.5 MB, free: 4.164 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.1036, allocations: 4.062 kB / 426.5 MB, free: 4.16 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.886e-06/0.1036, allocations: 3.938 kB / 426.5 MB, free: 4.156 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002783/0.1039, allocations: 162.6 kB / 426.6 MB, free: 3.973 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001077/0.104, allocations: 116.9 kB / 426.8 MB, free: 3.84 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.009e-05/0.104, allocations: 3.984 kB / 426.8 MB, free: 3.836 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.192e-05/0.1041, allocations: 8 kB / 426.8 MB, free: 3.828 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.529e-05/0.1041, allocations: 15.92 kB / 426.8 MB, free: 3.812 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.688e-05/0.1041, allocations: 7.938 kB / 426.8 MB, free: 3.805 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002379/0.1044, allocations: 245.9 kB / 427 MB, free: 3.562 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1044, allocations: 0 / 427 MB, free: 3.562 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002543/0.1046, allocations: 28 kB / 427.1 MB, free: 3.535 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.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 7 * 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.001923/0.1065, allocations: 1.02 MB / 428.1 MB, free: 2.641 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002242/0.1068, allocations: 71.91 kB / 428.2 MB, free: 2.57 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.1068, allocations: 0 / 428.2 MB, free: 2.57 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.389e-05/0.1068, allocations: 32.17 kB / 428.2 MB, free: 2.539 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003887/0.1072, allocations: 63.38 kB / 428.2 MB, free: 2.48 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002483/0.1097, allocations: 2.198 MB / 430.4 MB, free: 168 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003563/0.1101, allocations: 0.7475 MB / 431.2 MB, free: 15.39 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.625e-05/0.1102, allocations: 37.45 kB / 431.2 MB, free: 15.35 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.683e-05/0.1103, allocations: 55.42 kB / 431.3 MB, free: 15.3 MB / 366.1 MB Notification: Performance of SimCode: time 6.51e-07/0.1103, allocations: 0 / 431.3 MB, free: 15.3 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0218/0.1321, allocations: 5.286 MB / 436.6 MB, free: 10.14 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.083/8.215, allocations: 10.31 kB / 436.6 MB, free: 10.14 MB / 366.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample_fmu --startTime=0 --stopTime=0.2 --stepSize=3.98963e-05 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 10.702185082016513] Failed to read output from testmodel.py, exit status != 0: ['time', 'sample1.y', 'subSample1.y'] 8.392377618991304 8.580763761 8.479759885 Calling exit ...