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.001399/0.001399, 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.00148/0.00148, 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.429/1.429, allocations: 230.6 MB / 254.8 MB, free: 15.09 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.00156/0.00156, allocations: 51.92 kB / 373.7 MB, free: 10.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1154/0.117, allocations: 53.33 MB / 427 MB, free: 4.812 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample): time 0.003688/0.1207, allocations: 1.895 MB / 428.9 MB, free: 2.902 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002432/0.1231, allocations: 1.286 MB / 430.2 MB, free: 1.609 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000172/0.1233, allocations: 7.938 kB / 430.2 MB, free: 1.602 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003702/0.1236, allocations: 67.66 kB / 430.3 MB, free: 1.535 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000413/0.124, allocations: 131.4 kB / 430.4 MB, free: 1.406 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000735/0.1248, allocations: 234.8 kB / 430.6 MB, free: 1.18 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002841/0.1251, allocations: 179.5 kB / 430.8 MB, free: 1.004 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001202/0.1252, allocations: 21.55 kB / 430.8 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001344/0.1253, allocations: 79.62 kB / 430.9 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001322/0.1254, allocations: 83.61 kB / 431 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.367e-05/0.1255, allocations: 15.94 kB / 431 MB, free: 0.8086 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001627/0.1256, allocations: 67.95 kB / 431.1 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.311e-05/0.1257, allocations: 55.77 kB / 431.1 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.921e-05/0.1258, allocations: 75.48 kB / 431.2 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003989/0.1262, allocations: 246.9 kB / 431.4 MB, free: 380 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.965e-06/0.1262, allocations: 3.984 kB / 431.4 MB, free: 376 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1262, allocations: 0 / 431.4 MB, free: 376 kB / 350.1 MB Notification: Performance of Transformations before backend: time 6.272e-06/0.1262, allocations: 0 / 431.4 MB, free: 376 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.1861/0.3123, allocations: 0.5392 MB / 432 MB, free: 11.21 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.281e-05/0.3123, allocations: 8.594 kB / 432 MB, free: 11.21 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.539e-05/0.3124, allocations: 6.375 kB / 432 MB, free: 11.21 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.447e-05/0.3124, allocations: 37.53 kB / 432 MB, free: 11.17 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.364e-05/0.3124, allocations: 23.83 kB / 432 MB, free: 11.16 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004215/0.3129, allocations: 293.8 kB / 432.3 MB, free: 10.94 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.266e-05/0.3129, allocations: 6.219 kB / 432.3 MB, free: 10.94 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.169e-05/0.3129, allocations: 7.328 kB / 432.3 MB, free: 10.94 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003257/0.3132, allocations: 162.3 kB / 432.5 MB, free: 10.85 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.051e-05/0.3132, allocations: 1.688 kB / 432.5 MB, free: 10.85 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.416e-05/0.3133, allocations: 2.469 kB / 432.5 MB, free: 10.85 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.641e-06/0.3133, allocations: 2.078 kB / 432.5 MB, free: 10.85 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001155/0.3134, allocations: 37.05 kB / 432.5 MB, free: 10.85 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004569/0.3138, allocations: 385.9 kB / 432.9 MB, free: 10.56 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002326/0.3141, allocations: 116.2 kB / 433 MB, free: 10.49 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.852e-05/0.3141, allocations: 43.09 kB / 433.1 MB, free: 10.47 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.849e-05/0.3142, allocations: 7.891 kB / 433.1 MB, free: 10.47 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001627/0.3143, allocations: 75.55 kB / 433.2 MB, free: 10.42 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.493e-06/0.3143, allocations: 2.219 kB / 433.2 MB, free: 10.42 MB / 350.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003872/0.3147, allocations: 153 kB / 433.3 MB, free: 10.38 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.128e-05/0.3148, allocations: 173.1 kB / 433.5 MB, free: 10.19 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003175/0.3151, allocations: 333.4 kB / 433.8 MB, free: 10.09 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.459e-05/0.3151, allocations: 30.67 kB / 433.8 MB, free: 10.06 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.433e-05/0.3152, allocations: 131.5 kB / 434 MB, free: 9.973 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.151e-05/0.3152, allocations: 13 kB / 434 MB, free: 9.965 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.785e-05/0.3152, allocations: 34.58 kB / 434 MB, free: 9.949 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.512e-05/0.3153, allocations: 336.4 kB / 434.3 MB, free: 9.633 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.69e-05/0.3154, allocations: 26.38 kB / 434.4 MB, free: 9.633 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.748e-05/0.3155, allocations: 82.28 kB / 434.4 MB, free: 9.57 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001352/0.3156, allocations: 83.47 kB / 434.5 MB, free: 9.531 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.3156, allocations: 4.25 kB / 434.5 MB, free: 9.531 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001993/0.3158, allocations: 128.8 kB / 434.7 MB, free: 9.488 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.403e-05/0.3158, allocations: 4.281 kB / 434.7 MB, free: 9.488 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.961e-06/0.3158, allocations: 3.094 kB / 434.7 MB, free: 9.488 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.566e-05/0.3158, allocations: 1.5 kB / 434.7 MB, free: 9.488 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001063/0.3159, allocations: 22.31 kB / 434.7 MB, free: 9.488 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.191e-06/0.3159, allocations: 3.594 kB / 434.7 MB, free: 9.488 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.18e-05/0.316, allocations: 10.75 kB / 434.7 MB, free: 9.488 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.578e-06/0.316, allocations: 5.453 kB / 434.7 MB, free: 9.488 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.0001065/0.3161, allocations: 158.9 kB / 434.9 MB, free: 9.371 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.633e-05/0.3162, allocations: 68.98 kB / 434.9 MB, free: 9.324 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.229e-05/0.3163, allocations: 30.88 kB / 435 MB, free: 9.316 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.565e-06/0.3163, allocations: 0.5625 kB / 435 MB, free: 9.316 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.3163, allocations: 1.312 kB / 435 MB, free: 9.316 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.51e-06/0.3163, allocations: 7.516 kB / 435 MB, free: 9.316 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001619/0.3164, allocations: 245.2 kB / 435.2 MB, free: 9.125 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.425e-06/0.3164, allocations: 7.938 kB / 435.2 MB, free: 9.121 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.323e-05/0.3165, allocations: 12.2 kB / 435.2 MB, free: 9.121 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.836e-06/0.3165, allocations: 1.125 kB / 435.2 MB, free: 9.121 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.338e-05/0.3165, allocations: 5.641 kB / 435.2 MB, free: 9.121 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.427e-06/0.3165, allocations: 6.5 kB / 435.2 MB, free: 9.121 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.3165, allocations: 0 / 435.2 MB, free: 9.121 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002396/0.3168, allocations: 170.1 kB / 435.4 MB, free: 9.023 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.916e-05/0.3168, allocations: 116.6 kB / 435.5 MB, free: 8.918 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.251e-05/0.3169, allocations: 2.531 kB / 435.5 MB, free: 8.918 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.306e-05/0.3169, allocations: 2.562 kB / 435.5 MB, free: 8.918 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.423e-05/0.317, allocations: 15.06 kB / 435.5 MB, free: 8.918 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.708e-05/0.317, allocations: 4.375 kB / 435.5 MB, free: 8.918 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002195/0.3172, allocations: 250 kB / 435.8 MB, free: 8.836 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3172, allocations: 0 / 435.8 MB, free: 8.836 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002907/0.3175, allocations: 34.48 kB / 435.8 MB, free: 8.836 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.001773/0.3193, allocations: 1.017 MB / 436.8 MB, free: 8.164 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002536/0.3195, allocations: 73.19 kB / 436.9 MB, free: 8.16 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.3195, allocations: 2.875 kB / 436.9 MB, free: 8.16 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.212e-05/0.3196, allocations: 27.41 kB / 436.9 MB, free: 8.16 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004057/0.32, allocations: 72.28 kB / 437 MB, free: 8.145 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002261/0.3223, allocations: 2.232 MB / 439.2 MB, free: 6.711 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001849/0.3225, allocations: 0.748 MB / 440 MB, free: 6.004 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.078e-05/0.3226, allocations: 26.09 kB / 440 MB, free: 6 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.268e-05/0.3227, allocations: 57.95 kB / 440.1 MB, free: 5.961 MB / 350.1 MB Notification: Performance of SimCode: time 3.61e-07/0.3227, allocations: 4 kB / 440.1 MB, free: 5.957 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02471/0.3474, allocations: 5.375 MB / 445.5 MB, free: 5.094 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.207/8.554, allocations: 3.094 kB / 445.5 MB, free: 5.094 MB / 350.1 MB " [Timeout remaining time 651] (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: 10.971886013983749] Failed to read output from testmodel.py, exit status != 0: ['time', 'sample1.y', 'subSample1.y'] 8.73391821194673 8.748808441 8.619657248 Calling exit ...