Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds.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.001508/0.001508, allocations: 105.1 kB / 21.22 MB, free: 0.6289 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.001613/0.001613, allocations: 213.5 kB / 24.52 MB, free: 3.91 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.368/1.368, allocations: 230.5 MB / 258.2 MB, free: 7.785 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2196/0.2196, allocations: 46.94 MB / 361.6 MB, free: 4.02 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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(ModelicaTest.Blocks.ZeroThresholds,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_ZeroThresholds",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.ZeroThresholds,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_ZeroThresholds",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002154/0.002154, allocations: 75.88 kB / 0.4969 GB, free: 7.578 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3004/0.3025, allocations: 66.08 MB / 0.5614 GB, free: 4.039 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ZeroThresholds): time 0.002973/0.3055, allocations: 1.694 MB / 0.5631 GB, free: 2.34 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003803/0.3059, allocations: 155.5 kB / 0.5632 GB, free: 2.188 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.55e-05/0.306, allocations: 7.938 kB / 0.5632 GB, free: 2.18 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 3.708e-05/0.306, allocations: 11.86 kB / 0.5633 GB, free: 2.168 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.684e-05/0.306, allocations: 7.875 kB / 0.5633 GB, free: 2.16 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003225/0.3064, allocations: 111.2 kB / 0.5634 GB, free: 2.055 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001649/0.3065, allocations: 99.75 kB / 0.5635 GB, free: 1.957 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001382/0.3067, allocations: 31.39 kB / 0.5635 GB, free: 1.922 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.075e-05/0.3068, allocations: 39.86 kB / 0.5635 GB, free: 1.883 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.148e-05/0.3068, allocations: 43.84 kB / 0.5636 GB, free: 1.84 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.002e-05/0.3068, allocations: 11.94 kB / 0.5636 GB, free: 1.828 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.891e-05/0.3069, allocations: 8 kB / 0.5636 GB, free: 1.82 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.31e-05/0.3069, allocations: 23.92 kB / 0.5636 GB, free: 1.797 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.198e-05/0.307, allocations: 35.84 kB / 0.5636 GB, free: 1.762 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000167/0.3071, allocations: 91.56 kB / 0.5637 GB, free: 1.672 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.3071, allocations: 0 / 0.5637 GB, free: 1.672 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.3071, allocations: 0 / 0.5637 GB, free: 1.672 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.779e-06/0.3071, allocations: 0 / 0.5637 GB, free: 1.672 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.0006922/0.3078, allocations: 381.7 kB / 0.5641 GB, free: 1.266 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.842e-05/0.3079, allocations: 8.031 kB / 0.5641 GB, free: 1.258 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.978e-05/0.3079, allocations: 4.188 kB / 0.5641 GB, free: 1.254 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.028e-05/0.3079, allocations: 38.75 kB / 0.5641 GB, free: 1.207 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.656e-05/0.308, allocations: 12.84 kB / 0.5642 GB, free: 1.195 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002432/0.3082, allocations: 134.4 kB / 0.5643 GB, free: 1.039 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.551e-05/0.3082, allocations: 12.36 kB / 0.5643 GB, free: 1.027 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.057e-05/0.3082, allocations: 16.36 kB / 0.5643 GB, free: 1.012 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004192/0.3087, allocations: 207.8 kB / 0.5645 GB, free: 0.7773 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.057e-06/0.3087, allocations: 4 kB / 0.5645 GB, free: 0.7734 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.699e-05/0.3087, allocations: 4 kB / 0.5645 GB, free: 0.7695 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.451e-06/0.3087, allocations: 0 / 0.5645 GB, free: 0.7695 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003625/0.3091, allocations: 115.8 kB / 0.5646 GB, free: 0.6562 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007007/0.3098, allocations: 0.496 MB / 0.5651 GB, free: 112 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004148/0.3102, allocations: 138.4 kB / 0.5652 GB, free: 15.96 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001731/0.3103, allocations: 52.84 kB / 0.5653 GB, free: 15.91 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.965e-05/0.3104, allocations: 0 / 0.5653 GB, free: 15.91 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.162e-05/0.3104, allocations: 34.56 kB / 0.5653 GB, free: 15.87 MB / 414.1 MB Notification: Performance of pre-optimization done (n=8): time 9.42e-07/0.3104, allocations: 0 / 0.5653 GB, free: 15.87 MB / 414.1 MB Notification: Performance of matching and sorting (n=8): time 0.0006443/0.311, allocations: 193.5 kB / 0.5655 GB, free: 15.67 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.494e-05/0.3111, allocations: 106.8 kB / 0.5656 GB, free: 15.54 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001417/0.3113, allocations: 140.8 kB / 0.5657 GB, free: 15.39 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.16e-05/0.3113, allocations: 25.7 kB / 0.5658 GB, free: 15.36 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.589e-05/0.3114, allocations: 112.1 kB / 0.5659 GB, free: 15.25 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.201e-05/0.3114, allocations: 15.86 kB / 0.5659 GB, free: 15.23 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.804e-05/0.3115, allocations: 33.7 kB / 0.5659 GB, free: 15.2 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001475/0.3116, allocations: 322.8 kB / 0.5662 GB, free: 14.87 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001773/0.3118, allocations: 51.89 kB / 0.5663 GB, free: 14.82 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002239/0.312, allocations: 143.6 kB / 0.5664 GB, free: 14.65 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003228/0.3123, allocations: 110.5 kB / 0.5665 GB, free: 14.54 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.3123, allocations: 0 / 0.5665 GB, free: 14.54 MB / 414.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003999/0.3127, allocations: 153.8 kB / 0.5667 GB, free: 14.38 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.634e-05/0.3127, allocations: 12.06 kB / 0.5667 GB, free: 14.37 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.609e-06/0.3128, allocations: 0 / 0.5667 GB, free: 14.37 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.241e-05/0.3128, allocations: 0 / 0.5667 GB, free: 14.37 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001474/0.3129, allocations: 31.91 kB / 0.5667 GB, free: 14.34 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.003e-05/0.3129, allocations: 8 kB / 0.5667 GB, free: 14.33 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001335/0.3131, allocations: 31.86 kB / 0.5668 GB, free: 14.3 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.437e-05/0.3131, allocations: 7.984 kB / 0.5668 GB, free: 14.29 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 4 (lessEqualThreshold.y,lessThreshold.y,greaterEqualThreshold.y,greaterThreshold.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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.0001179/0.3132, allocations: 121.8 kB / 0.5669 GB, free: 14.16 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.348e-05/0.3132, allocations: 7.953 kB / 0.5669 GB, free: 14.15 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.599e-05/0.3133, allocations: 12.72 kB / 0.5669 GB, free: 14.14 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.735e-06/0.3133, allocations: 0 / 0.5669 GB, free: 14.14 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.462e-06/0.3133, allocations: 3.938 kB / 0.5669 GB, free: 14.13 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.3133, allocations: 4 kB / 0.5669 GB, free: 14.13 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002331/0.3135, allocations: 160.7 kB / 0.5671 GB, free: 13.93 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.3135, allocations: 0 / 0.5671 GB, free: 13.93 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001103/0.3136, allocations: 23.97 kB / 0.5671 GB, free: 13.91 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.3136, allocations: 0 / 0.5671 GB, free: 13.91 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.508e-06/0.3136, allocations: 8.125 kB / 0.5671 GB, free: 13.9 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.223e-06/0.3136, allocations: 0 / 0.5671 GB, free: 13.9 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.989e-06/0.3136, allocations: 11.88 kB / 0.5671 GB, free: 13.89 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004372/0.3141, allocations: 235.4 kB / 0.5673 GB, free: 13.64 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.603e-05/0.3141, allocations: 7.953 kB / 0.5673 GB, free: 13.63 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.244e-05/0.3141, allocations: 0 / 0.5673 GB, free: 13.63 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001576/0.3143, allocations: 31.97 kB / 0.5674 GB, free: 13.6 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.221e-05/0.3143, allocations: 15.91 kB / 0.5674 GB, free: 13.59 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.496e-06/0.3143, allocations: 3.984 kB / 0.5674 GB, free: 13.58 MB / 414.1 MB Notification: Performance of sorting global known variables: time 7.451e-05/0.3144, allocations: 105.8 kB / 0.5675 GB, free: 13.48 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3144, allocations: 0 / 0.5675 GB, free: 13.48 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002664/0.3147, allocations: 23.94 kB / 0.5675 GB, free: 13.46 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 (greaterThreshold.y,greaterEqualThreshold.y,lessThreshold.y,lessEqualThreshold.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 8 * 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 Backend phase and start with SimCode phase: time 0.000765/0.3154, allocations: 0.7631 MB / 0.5683 GB, free: 12.67 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0003889/0.3158, allocations: 111.8 kB / 0.5684 GB, free: 12.56 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.3158, allocations: 7.938 kB / 0.5684 GB, free: 12.55 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001852/0.316, allocations: 56.08 kB / 0.5684 GB, free: 12.5 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003066/0.3163, allocations: 23.91 kB / 0.5684 GB, free: 12.47 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002316/0.3186, allocations: 1.661 MB / 0.5701 GB, free: 10.72 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.794e-05/0.3187, allocations: 89.31 kB / 0.5701 GB, free: 10.61 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.646e-05/0.3188, allocations: 9.141 kB / 0.5702 GB, free: 10.61 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.003e-05/0.3189, allocations: 27.42 kB / 0.5702 GB, free: 10.58 MB / 414.1 MB Notification: Performance of SimCode: time 3.81e-07/0.3189, allocations: 3.938 kB / 0.5702 GB, free: 10.57 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02165/0.3405, allocations: 3.064 MB / 0.5732 GB, free: 7.621 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.57/10.91, allocations: 4.062 kB / 0.5732 GB, free: 7.617 MB / 414.1 MB " [Timeout remaining time 649] (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_ZeroThresholds_fmu --startTime=0 --stopTime=1 --stepSize=0.00019988 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_ZeroThresholds.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.59680970699992] Failed to read output from testmodel.py, exit status != 0: ['time', 'ramp.y', 'greaterThreshold.y', 'greaterEqualThreshold.y', 'lessThreshold.y', 'lessEqualThreshold.y'] 11.067235479014926 11.081825986 10.771827717 Calling exit ...