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.001205/0.001205, allocations: 109.1 kB / 21.22 MB, free: 0.7344 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.001315/0.001315, allocations: 208.2 kB / 24.53 MB, free: 4.07 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.356/1.356, allocations: 230.5 MB / 258.2 MB, free: 8.027 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.2163/0.2163, allocations: 46.93 MB / 361.6 MB, free: 4.16 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.002265/0.002265, allocations: 75.89 kB / 0.497 GB, free: 7.758 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3012/0.3035, allocations: 66.07 MB / 0.5615 GB, free: 4.305 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ZeroThresholds): time 0.003214/0.3067, allocations: 1.745 MB / 0.5632 GB, free: 2.555 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004777/0.3072, allocations: 151.6 kB / 0.5633 GB, free: 2.406 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.908e-05/0.3073, allocations: 7.938 kB / 0.5633 GB, free: 2.398 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 3.863e-05/0.3073, allocations: 15.86 kB / 0.5634 GB, free: 2.383 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.938e-05/0.3074, allocations: 11.86 kB / 0.5634 GB, free: 2.371 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003375/0.3077, allocations: 99.06 kB / 0.5635 GB, free: 2.277 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001755/0.3079, allocations: 107.8 kB / 0.5636 GB, free: 2.172 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001283/0.308, allocations: 31.53 kB / 0.5636 GB, free: 2.137 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.813e-05/0.3081, allocations: 39.86 kB / 0.5636 GB, free: 2.098 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.679e-05/0.3082, allocations: 39.78 kB / 0.5637 GB, free: 2.059 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.585e-05/0.3082, allocations: 8 kB / 0.5637 GB, free: 2.051 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.911e-05/0.3082, allocations: 12 kB / 0.5637 GB, free: 2.039 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.827e-05/0.3082, allocations: 23.91 kB / 0.5637 GB, free: 2.016 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.432e-05/0.3083, allocations: 47.8 kB / 0.5638 GB, free: 1.969 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001475/0.3084, allocations: 91.56 kB / 0.5638 GB, free: 1.879 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.027e-06/0.3084, allocations: 0 / 0.5638 GB, free: 1.879 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.3084, allocations: 0 / 0.5638 GB, free: 1.879 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.72e-06/0.3085, allocations: 0 / 0.5638 GB, free: 1.879 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.0007081/0.3092, allocations: 377.7 kB / 0.5642 GB, free: 1.477 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.108e-05/0.3092, allocations: 12.03 kB / 0.5642 GB, free: 1.465 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.579e-05/0.3092, allocations: 192 / 0.5642 GB, free: 1.465 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.008e-05/0.3093, allocations: 38.75 kB / 0.5643 GB, free: 1.418 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.208e-05/0.3093, allocations: 12.84 kB / 0.5643 GB, free: 1.406 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002504/0.3095, allocations: 144.7 kB / 0.5644 GB, free: 1.242 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.091e-05/0.3096, allocations: 8.375 kB / 0.5644 GB, free: 1.234 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.882e-05/0.3096, allocations: 12.31 kB / 0.5644 GB, free: 1.223 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003836/0.31, allocations: 158.2 kB / 0.5646 GB, free: 1.047 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.867e-06/0.31, allocations: 0 / 0.5646 GB, free: 1.047 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.821e-05/0.31, allocations: 8 kB / 0.5646 GB, free: 1.039 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.5e-06/0.31, allocations: 0 / 0.5646 GB, free: 1.039 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003777/0.3104, allocations: 111.8 kB / 0.5647 GB, free: 0.9297 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007702/0.3111, allocations: 0.5116 MB / 0.5652 GB, free: 376 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004149/0.3116, allocations: 130.5 kB / 0.5653 GB, free: 236 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001953/0.3118, allocations: 56.92 kB / 0.5654 GB, free: 176 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.386e-05/0.3118, allocations: 7.984 kB / 0.5654 GB, free: 168 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.807e-05/0.3118, allocations: 30.56 kB / 0.5654 GB, free: 128 kB / 398.1 MB Notification: Performance of pre-optimization done (n=8): time 1.102e-06/0.3118, allocations: 0 / 0.5654 GB, free: 128 kB / 398.1 MB Notification: Performance of matching and sorting (n=8): time 0.0006712/0.3125, allocations: 189.5 kB / 0.5656 GB, free: 15.93 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.926e-05/0.3125, allocations: 106.8 kB / 0.5657 GB, free: 15.8 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001428/0.3127, allocations: 140.8 kB / 0.5658 GB, free: 15.66 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.067e-05/0.3127, allocations: 25.7 kB / 0.5658 GB, free: 15.62 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.896e-05/0.3128, allocations: 120 kB / 0.566 GB, free: 15.5 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.934e-05/0.3128, allocations: 19.8 kB / 0.566 GB, free: 15.48 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.95e-05/0.3129, allocations: 33.7 kB / 0.566 GB, free: 15.45 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001407/0.313, allocations: 318.8 kB / 0.5663 GB, free: 15.12 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001762/0.3132, allocations: 47.95 kB / 0.5664 GB, free: 15.08 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002221/0.3134, allocations: 96.17 kB / 0.5665 GB, free: 14.97 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003374/0.3138, allocations: 102.8 kB / 0.5666 GB, free: 14.86 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.3138, allocations: 0 / 0.5666 GB, free: 14.86 MB / 414.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004263/0.3142, allocations: 161.5 kB / 0.5667 GB, free: 14.7 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.852e-05/0.3142, allocations: 8 kB / 0.5667 GB, free: 14.69 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.09e-06/0.3142, allocations: 0 / 0.5667 GB, free: 14.69 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.401e-05/0.3142, allocations: 0 / 0.5667 GB, free: 14.69 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001566/0.3144, allocations: 31.91 kB / 0.5667 GB, free: 14.66 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.687e-06/0.3144, allocations: 12 kB / 0.5668 GB, free: 14.64 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001473/0.3145, allocations: 31.86 kB / 0.5668 GB, free: 14.61 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.205e-05/0.3145, allocations: 7.984 kB / 0.5668 GB, free: 14.61 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.000121/0.3147, allocations: 117.8 kB / 0.5669 GB, free: 14.48 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.394e-05/0.3147, allocations: 7.953 kB / 0.5669 GB, free: 14.47 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.72e-05/0.3147, allocations: 12.72 kB / 0.5669 GB, free: 14.46 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.493e-06/0.3147, allocations: 0 / 0.5669 GB, free: 14.46 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.899e-06/0.3147, allocations: 7.938 kB / 0.5669 GB, free: 14.45 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.866e-06/0.3148, allocations: 0 / 0.5669 GB, free: 14.45 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002199/0.315, allocations: 176.7 kB / 0.5671 GB, free: 14.23 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.315, allocations: 0 / 0.5671 GB, free: 14.23 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001189/0.3151, allocations: 27.91 kB / 0.5671 GB, free: 14.21 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.583e-06/0.3151, allocations: 0 / 0.5671 GB, free: 14.21 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.716e-06/0.3151, allocations: 0 / 0.5671 GB, free: 14.21 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/0.3151, allocations: 0 / 0.5671 GB, free: 14.21 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/0.3151, allocations: 3.938 kB / 0.5671 GB, free: 14.2 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004497/0.3156, allocations: 247.3 kB / 0.5674 GB, free: 13.95 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.355e-05/0.3156, allocations: 7.953 kB / 0.5674 GB, free: 13.94 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.176e-05/0.3156, allocations: 3.984 kB / 0.5674 GB, free: 13.93 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001533/0.3157, allocations: 23.97 kB / 0.5674 GB, free: 13.91 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.686e-05/0.3158, allocations: 15.92 kB / 0.5674 GB, free: 13.89 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.675e-06/0.3158, allocations: 4 kB / 0.5674 GB, free: 13.89 MB / 414.1 MB Notification: Performance of sorting global known variables: time 9.584e-05/0.3159, allocations: 102 kB / 0.5675 GB, free: 13.79 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3159, allocations: 0 / 0.5675 GB, free: 13.79 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002306/0.3161, allocations: 27.81 kB / 0.5675 GB, free: 13.77 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.0007615/0.3169, allocations: 0.7709 MB / 0.5683 GB, free: 12.97 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0004304/0.3173, allocations: 119.9 kB / 0.5684 GB, free: 12.85 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.3173, allocations: 4 kB / 0.5684 GB, free: 12.85 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001909/0.3175, allocations: 51.95 kB / 0.5685 GB, free: 12.8 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003082/0.3178, allocations: 23.86 kB / 0.5685 GB, free: 12.77 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002339/0.3202, allocations: 1.665 MB / 0.5701 GB, free: 11.02 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003197/0.3205, allocations: 0.6963 MB / 0.5708 GB, free: 10.29 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.177e-05/0.3205, allocations: 16.64 kB / 0.5708 GB, free: 10.28 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.679e-05/0.3206, allocations: 31.42 kB / 0.5708 GB, free: 10.25 MB / 414.1 MB Notification: Performance of SimCode: time 3e-07/0.3206, allocations: 0 / 0.5708 GB, free: 10.25 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02157/0.3422, allocations: 2.927 MB / 0.5737 GB, free: 7.426 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.45/10.79, allocations: 17.84 kB / 0.5737 GB, free: 7.414 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.517255086975638] Failed to read output from testmodel.py, exit status != 0: ['time', 'ramp.y', 'greaterThreshold.y', 'greaterEqualThreshold.y', 'lessThreshold.y', 'lessEqualThreshold.y'] 10.945602347026579 10.960086891 10.648704116 Calling exit ...