Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.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.001313/0.001313, allocations: 117.8 kB / 18.49 MB, free: 4.566 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.001344/0.001344, allocations: 190.7 kB / 21.43 MB, free: 1.641 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.392/1.392, allocations: 225.6 MB / 249.8 MB, free: 3.633 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.BooleanSignals.SubSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_SubSample",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_SubSample",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001531/0.001531, allocations: 59.91 kB / 366.3 MB, free: 0.8555 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08968/0.09122, allocations: 52.13 MB / 418.5 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample): time 0.003285/0.0945, allocations: 1.894 MB / 420.4 MB, free: 10.73 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001746/0.09625, allocations: 1.052 MB / 421.4 MB, free: 9.668 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001251/0.09637, allocations: 3.938 kB / 421.4 MB, free: 9.664 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006499/0.09702, allocations: 155.5 kB / 421.6 MB, free: 9.512 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003309/0.09735, allocations: 111.6 kB / 421.7 MB, free: 9.402 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005942/0.09795, allocations: 209.8 kB / 421.9 MB, free: 9.203 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002839/0.09823, allocations: 183.5 kB / 422.1 MB, free: 9.023 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001169/0.09835, allocations: 21.55 kB / 422.1 MB, free: 9.004 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001313/0.09848, allocations: 75.69 kB / 422.2 MB, free: 8.93 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001252/0.0986, allocations: 79.67 kB / 422.2 MB, free: 8.852 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.502e-05/0.09863, allocations: 15.94 kB / 422.3 MB, free: 8.836 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001415/0.09877, allocations: 51.91 kB / 422.3 MB, free: 8.785 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.279e-05/0.09884, allocations: 43.84 kB / 422.4 MB, free: 8.742 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.657e-05/0.09894, allocations: 67.53 kB / 422.4 MB, free: 8.676 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003376/0.09928, allocations: 203.1 kB / 422.6 MB, free: 8.477 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.011e-06/0.09928, allocations: 7.938 kB / 422.6 MB, free: 8.469 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.512e-06/0.09928, allocations: 0 / 422.6 MB, free: 8.469 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.292e-06/0.09929, allocations: 0 / 422.6 MB, free: 8.469 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.000836/0.1001, allocations: 0.5077 MB / 423.1 MB, free: 7.906 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.138e-05/0.1002, allocations: 16.03 kB / 423.1 MB, free: 7.891 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.507e-05/0.1002, allocations: 192 / 423.1 MB, free: 7.891 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.133e-05/0.1002, allocations: 42.73 kB / 423.2 MB, free: 7.84 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.488e-05/0.1003, allocations: 20.8 kB / 423.2 MB, free: 7.82 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003756/0.1007, allocations: 270.9 kB / 423.5 MB, free: 7.516 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.17e-05/0.1007, allocations: 12.12 kB / 423.5 MB, free: 7.504 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.486e-05/0.1007, allocations: 4 kB / 423.5 MB, free: 7.5 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003277/0.101, allocations: 150.7 kB / 423.6 MB, free: 7.328 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.666e-06/0.101, allocations: 0 / 423.6 MB, free: 7.328 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.134e-05/0.101, allocations: 0 / 423.6 MB, free: 7.328 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.228e-06/0.101, allocations: 0 / 423.6 MB, free: 7.328 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001294/0.1012, allocations: 43.92 kB / 423.7 MB, free: 7.285 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004752/0.1016, allocations: 346.5 kB / 424 MB, free: 6.891 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002427/0.1019, allocations: 115.9 kB / 424.1 MB, free: 6.75 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.765e-05/0.102, allocations: 34.58 kB / 424.2 MB, free: 6.707 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.671e-05/0.102, allocations: 11.92 kB / 424.2 MB, free: 6.695 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001641/0.1022, allocations: 79.34 kB / 424.3 MB, free: 6.605 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.332e-06/0.1022, allocations: 0 / 424.3 MB, free: 6.605 MB / 350.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003533/0.1025, allocations: 137.5 kB / 424.4 MB, free: 6.465 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.929e-05/0.1026, allocations: 132.5 kB / 424.5 MB, free: 6.305 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002814/0.1029, allocations: 264.9 kB / 424.8 MB, free: 6.031 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.102e-05/0.1029, allocations: 29.7 kB / 424.8 MB, free: 5.996 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.938e-05/0.103, allocations: 116.3 kB / 424.9 MB, free: 5.879 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.166e-05/0.103, allocations: 35.83 kB / 425 MB, free: 5.844 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.278e-05/0.1031, allocations: 29.72 kB / 425 MB, free: 5.809 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000149/0.1032, allocations: 330.8 kB / 425.3 MB, free: 5.477 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.124e-05/0.1033, allocations: 16 kB / 425.3 MB, free: 5.461 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001055/0.1034, allocations: 77.86 kB / 425.4 MB, free: 5.363 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001331/0.1035, allocations: 80.52 kB / 425.5 MB, free: 5.27 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.1035, allocations: 0 / 425.5 MB, free: 5.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002234/0.1038, allocations: 117.5 kB / 425.6 MB, free: 5.148 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.582e-05/0.1038, allocations: 8.031 kB / 425.6 MB, free: 5.141 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.31e-06/0.1038, allocations: 0 / 425.6 MB, free: 5.141 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.69e-05/0.1038, allocations: 4 kB / 425.6 MB, free: 5.137 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.237e-05/0.1039, allocations: 19.92 kB / 425.6 MB, free: 5.117 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.017e-05/0.1039, allocations: 7.938 kB / 425.6 MB, free: 5.109 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.575e-05/0.104, allocations: 7.953 kB / 425.6 MB, free: 5.102 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.467e-06/0.104, allocations: 4 kB / 425.6 MB, free: 5.098 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,sample1.u,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.0001376/0.1041, allocations: 142.5 kB / 425.8 MB, free: 4.949 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.605e-05/0.1042, allocations: 69.53 kB / 425.8 MB, free: 4.875 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.129e-05/0.1042, allocations: 21.7 kB / 425.9 MB, free: 4.852 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.1042, allocations: 4 kB / 425.9 MB, free: 4.848 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/0.1043, allocations: 3.938 kB / 425.9 MB, free: 4.844 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.1043, allocations: 0 / 425.9 MB, free: 4.844 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002188/0.1045, allocations: 225.5 kB / 426.1 MB, free: 4.574 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.213e-06/0.1045, allocations: 0 / 426.1 MB, free: 4.574 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.533e-05/0.1045, allocations: 4 kB / 426.1 MB, free: 4.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.268e-06/0.1045, allocations: 3.984 kB / 426.1 MB, free: 4.566 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.266e-05/0.1045, allocations: 4 kB / 426.1 MB, free: 4.562 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.372e-06/0.1045, allocations: 4.062 kB / 426.1 MB, free: 4.559 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.1045, allocations: 3.938 kB / 426.1 MB, free: 4.555 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002668/0.1048, allocations: 150.7 kB / 426.3 MB, free: 4.383 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001118/0.1049, allocations: 112.9 kB / 426.4 MB, free: 4.254 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.332e-05/0.1049, allocations: 16 kB / 426.4 MB, free: 4.238 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.684e-05/0.105, allocations: 4 kB / 426.4 MB, free: 4.234 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4e-05/0.105, allocations: 11.92 kB / 426.4 MB, free: 4.223 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.312e-05/0.105, allocations: 4 kB / 426.4 MB, free: 4.219 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000203/0.1052, allocations: 196.5 kB / 426.6 MB, free: 4.027 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1052, allocations: 0 / 426.6 MB, free: 4.027 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002435/0.1055, allocations: 24.09 kB / 426.6 MB, free: 4.004 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,sample1.u,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.001909/0.1074, allocations: 1.004 MB / 427.6 MB, free: 3.125 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002227/0.1076, allocations: 75.84 kB / 427.7 MB, free: 3.051 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.1076, allocations: 0 / 427.7 MB, free: 3.051 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7e-05/0.1077, allocations: 28.17 kB / 427.7 MB, free: 3.023 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003802/0.1081, allocations: 63.52 kB / 427.8 MB, free: 2.965 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002365/0.1104, allocations: 1.921 MB / 429.7 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004169/0.1109, allocations: 0.728 MB / 430.4 MB, free: 176 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.64e-05/0.1109, allocations: 21.53 kB / 430.5 MB, free: 152 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.166e-05/0.111, allocations: 51.41 kB / 430.5 MB, free: 100 kB / 350.1 MB Notification: Performance of SimCode: time 6.31e-07/0.111, allocations: 4 kB / 430.5 MB, free: 96 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0227/0.1337, allocations: 4.613 MB / 435.1 MB, free: 11.61 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.991/8.125, allocations: 12 kB / 435.1 MB, free: 11.59 MB / 366.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_SubSample_fmu --startTime=0 --stopTime=0.2 --stepSize=3.98963e-05 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_SubSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 10.66469905298436] Failed to read output from testmodel.py, exit status != 0: ['time', 'sample1.y', 'subSample1.y'] 8.301918276993092 8.48420454 8.222678609 Calling exit ...