Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001882/0.001882, allocations: 118.6 kB / 18.5 MB, free: 4.434 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002242/0.002242, allocations: 218.6 kB / 21.47 MB, free: 1.473 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.518/1.518, allocations: 230.4 MB / 254.7 MB, free: 14.99 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-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002017/0.002017, allocations: 75.81 kB / 373.6 MB, free: 10.26 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.108/0.11, allocations: 53.31 MB / 426.9 MB, free: 4.855 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample): time 0.003753/0.1138, allocations: 1.901 MB / 428.8 MB, free: 2.938 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00241/0.1162, allocations: 1.292 MB / 430.1 MB, free: 1.641 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001241/0.1163, allocations: 4 kB / 430.1 MB, free: 1.637 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003195/0.1166, allocations: 63.67 kB / 430.1 MB, free: 1.574 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003967/0.117, allocations: 143.4 kB / 430.3 MB, free: 1.434 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007018/0.1177, allocations: 223.2 kB / 430.5 MB, free: 1.219 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002916/0.118, allocations: 171.6 kB / 430.7 MB, free: 1.051 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001214/0.1181, allocations: 33.48 kB / 430.7 MB, free: 1.02 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001206/0.1182, allocations: 75.62 kB / 430.8 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00025/0.1185, allocations: 83.67 kB / 430.8 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.226e-05/0.1185, allocations: 8 kB / 430.9 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001638/0.1187, allocations: 71.89 kB / 430.9 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.579e-05/0.1188, allocations: 51.83 kB / 431 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.003e-05/0.1189, allocations: 79.42 kB / 431.1 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003847/0.1193, allocations: 243 kB / 431.3 MB, free: 428 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.03e-06/0.1193, allocations: 0 / 431.3 MB, free: 428 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.903e-06/0.1193, allocations: 3.938 kB / 431.3 MB, free: 424 kB / 350.1 MB Notification: Performance of Transformations before backend: time 1.091e-05/0.1193, allocations: 4 kB / 431.3 MB, free: 420 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.2069/0.3262, allocations: 0.5406 MB / 431.8 MB, free: 11.31 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.026e-05/0.3262, allocations: 8.219 kB / 431.8 MB, free: 11.31 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.262e-05/0.3262, allocations: 40.05 kB / 431.9 MB, free: 11.27 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.544e-05/0.3263, allocations: 24.2 kB / 431.9 MB, free: 11.26 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004522/0.3268, allocations: 289 kB / 432.2 MB, free: 11.04 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.801e-05/0.3268, allocations: 7.812 kB / 432.2 MB, free: 11.04 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.063e-05/0.3268, allocations: 5.672 kB / 432.2 MB, free: 11.04 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004602/0.3273, allocations: 158.7 kB / 432.4 MB, free: 10.95 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.248e-05/0.3273, allocations: 4.531 kB / 432.4 MB, free: 10.95 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.503e-05/0.3273, allocations: 4.844 kB / 432.4 MB, free: 10.95 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.468e-06/0.3273, allocations: 3.328 kB / 432.4 MB, free: 10.95 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001267/0.3274, allocations: 31.09 kB / 432.4 MB, free: 10.95 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004658/0.3279, allocations: 394.9 kB / 432.8 MB, free: 10.66 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002249/0.3281, allocations: 116.4 kB / 432.9 MB, free: 10.59 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.659e-05/0.3282, allocations: 40.52 kB / 432.9 MB, free: 10.57 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.617e-05/0.3282, allocations: 3.406 kB / 432.9 MB, free: 10.57 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001618/0.3284, allocations: 77.91 kB / 433 MB, free: 10.52 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.453e-06/0.3284, allocations: 3.812 kB / 433 MB, free: 10.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003688/0.3288, allocations: 158 kB / 433.2 MB, free: 10.48 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.862e-05/0.3288, allocations: 161.2 kB / 433.3 MB, free: 10.29 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000311/0.3291, allocations: 335 kB / 433.7 MB, free: 10.19 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.434e-05/0.3291, allocations: 33.52 kB / 433.7 MB, free: 10.16 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001231/0.3293, allocations: 136.2 kB / 433.8 MB, free: 10.07 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.84e-05/0.3293, allocations: 19.77 kB / 433.8 MB, free: 10.06 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.492e-05/0.3294, allocations: 28.27 kB / 433.9 MB, free: 10.04 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.817e-05/0.3294, allocations: 338.9 kB / 434.2 MB, free: 9.727 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.725e-05/0.3295, allocations: 24.52 kB / 434.2 MB, free: 9.727 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.73e-05/0.3296, allocations: 85.7 kB / 434.3 MB, free: 9.664 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001348/0.3297, allocations: 84.08 kB / 434.4 MB, free: 9.625 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.3297, allocations: 3.469 kB / 434.4 MB, free: 9.625 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001866/0.3299, allocations: 119.5 kB / 434.5 MB, free: 9.582 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.35e-05/0.3299, allocations: 7.625 kB / 434.5 MB, free: 9.582 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.91e-06/0.3299, allocations: 0 / 434.5 MB, free: 9.582 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.634e-05/0.33, allocations: 11.98 kB / 434.5 MB, free: 9.582 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001047/0.3301, allocations: 17.77 kB / 434.6 MB, free: 9.582 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.272e-06/0.3301, allocations: 0.625 kB / 434.6 MB, free: 9.582 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.302e-05/0.3301, allocations: 11.14 kB / 434.6 MB, free: 9.582 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.277e-06/0.3301, allocations: 2.688 kB / 434.6 MB, free: 9.582 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.0001031/0.3303, allocations: 157 kB / 434.7 MB, free: 9.465 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.026e-05/0.3303, allocations: 75.03 kB / 434.8 MB, free: 9.418 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.994e-05/0.3304, allocations: 25.52 kB / 434.8 MB, free: 9.41 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.956e-06/0.3304, allocations: 5.812 kB / 434.8 MB, free: 9.41 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.75e-06/0.3304, allocations: 3.062 kB / 434.8 MB, free: 9.41 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/0.3304, allocations: 0 / 434.8 MB, free: 9.41 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001529/0.3305, allocations: 256.7 kB / 435.1 MB, free: 9.215 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.3305, allocations: 2.406 kB / 435.1 MB, free: 9.215 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.12e-05/0.3306, allocations: 8.75 kB / 435.1 MB, free: 9.215 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.975e-06/0.3306, allocations: 5.312 kB / 435.1 MB, free: 9.215 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.066e-05/0.3306, allocations: 2.188 kB / 435.1 MB, free: 9.215 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.815e-06/0.3306, allocations: 2.734 kB / 435.1 MB, free: 9.215 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.3306, allocations: 0 / 435.1 MB, free: 9.215 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002233/0.3308, allocations: 172.5 kB / 435.3 MB, free: 9.117 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.597e-05/0.3309, allocations: 112.8 kB / 435.4 MB, free: 9.012 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.188e-05/0.331, allocations: 5.719 kB / 435.4 MB, free: 9.012 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.52e-05/0.331, allocations: 3.531 kB / 435.4 MB, free: 9.012 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.244e-05/0.3311, allocations: 9.938 kB / 435.4 MB, free: 9.012 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.54e-05/0.3311, allocations: 7.844 kB / 435.4 MB, free: 9.008 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001856/0.3313, allocations: 247.5 kB / 435.6 MB, free: 8.926 MB / 350.1 MB Notification: Performance of sort global known variables: time 7.41e-07/0.3313, allocations: 4 kB / 435.6 MB, free: 8.922 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003428/0.3316, allocations: 40.28 kB / 435.7 MB, free: 8.918 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.001699/0.3333, allocations: 1.022 MB / 436.7 MB, free: 8.246 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002381/0.3336, allocations: 67.61 kB / 436.8 MB, free: 8.246 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.3336, allocations: 0 / 436.8 MB, free: 8.246 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.224e-05/0.3337, allocations: 26.59 kB / 436.8 MB, free: 8.246 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004111/0.3341, allocations: 61.22 kB / 436.9 MB, free: 8.242 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002462/0.3365, allocations: 2.238 MB / 439.1 MB, free: 6.805 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002103/0.3367, allocations: 0.7402 MB / 439.8 MB, free: 6.105 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.747e-05/0.3368, allocations: 30.66 kB / 439.9 MB, free: 6.094 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.313e-05/0.3369, allocations: 61.27 kB / 439.9 MB, free: 6.051 MB / 350.1 MB Notification: Performance of SimCode: time 8.32e-07/0.3369, allocations: 1.906 kB / 439.9 MB, free: 6.051 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03115/0.3681, allocations: 5.359 MB / 445.3 MB, free: 5.195 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.078/8.446, allocations: 12.95 kB / 445.3 MB, free: 5.184 MB / 350.1 MB " [Timeout remaining time 651] (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_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-beta_om_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample.fmu > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 10.972840828821063] Failed to read output from testmodel.py, exit status != 0: ['time', 'sample1.y', 'subSample1.y'] 8.575013016350567 8.596278993 8.472648141 Calling exit ...