Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.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.001314/0.001314, allocations: 126 kB / 17.84 MB, free: 5.258 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: 200.7 kB / 20.79 MB, free: 2.32 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.475/1.475, allocations: 207.6 MB / 231.2 MB, free: 4.105 MB / 174.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3779/0.3779, allocations: 44.23 MB / 327.3 MB, free: 6.746 MB / 254.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(ModelicaTest.Blocks.Hysteresis,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_Hysteresis",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Hysteresis,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_Hysteresis",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00222/0.00222, allocations: 64.38 kB / 462.9 MB, free: 0.9258 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.303/0.3052, allocations: 61 MB / 0.5116 GB, free: 13.19 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.002617/0.3078, allocations: 1.444 MB / 0.513 GB, free: 12.05 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007281/0.3085, allocations: 463.6 kB / 0.5135 GB, free: 11.7 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.148e-05/0.3086, allocations: 0 / 0.5135 GB, free: 11.7 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 3.652e-05/0.3086, allocations: 11.86 kB / 0.5135 GB, free: 11.69 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.138e-05/0.3087, allocations: 7.922 kB / 0.5135 GB, free: 11.68 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002234/0.3089, allocations: 15.42 kB / 0.5135 GB, free: 11.67 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 7.922e-05/0.309, allocations: 36.58 kB / 0.5135 GB, free: 11.64 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001153/0.3091, allocations: 6.469 kB / 0.5136 GB, free: 11.64 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.653e-05/0.3092, allocations: 23.59 kB / 0.5136 GB, free: 11.62 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.616e-05/0.3093, allocations: 15.77 kB / 0.5136 GB, free: 11.61 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.084e-05/0.3093, allocations: 3.5 kB / 0.5136 GB, free: 11.61 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.045e-05/0.3093, allocations: 3.688 kB / 0.5136 GB, free: 11.61 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.697e-05/0.3093, allocations: 4 kB / 0.5136 GB, free: 11.61 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.974e-05/0.3093, allocations: 15.42 kB / 0.5136 GB, free: 11.6 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 9.476e-05/0.3094, allocations: 28.42 kB / 0.5136 GB, free: 11.58 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.3094, allocations: 3.938 kB / 0.5136 GB, free: 11.57 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.3094, allocations: 0 / 0.5136 GB, free: 11.57 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.193e-06/0.3094, allocations: 4 kB / 0.5137 GB, free: 11.57 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0004431/0.3099, allocations: 355.2 kB / 0.514 GB, free: 11.2 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.886e-05/0.3099, allocations: 14.05 kB / 0.514 GB, free: 11.2 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.016e-05/0.3099, allocations: 192 / 0.514 GB, free: 11.2 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.99e-05/0.31, allocations: 33 kB / 0.514 GB, free: 11.16 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.758e-05/0.31, allocations: 5.984 kB / 0.514 GB, free: 11.15 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.914e-05/0.3101, allocations: 162.5 kB / 0.5142 GB, free: 10.96 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.114e-05/0.3101, allocations: 1.656 kB / 0.5142 GB, free: 10.96 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.005e-05/0.3101, allocations: 9.781 kB / 0.5142 GB, free: 10.95 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001466/0.3102, allocations: 65.8 kB / 0.5143 GB, free: 10.88 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.047e-06/0.3103, allocations: 0 / 0.5143 GB, free: 10.88 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.134e-05/0.3103, allocations: 1.031 kB / 0.5143 GB, free: 10.88 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.438e-06/0.3103, allocations: 3.938 kB / 0.5143 GB, free: 10.88 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.048e-05/0.3104, allocations: 19.61 kB / 0.5143 GB, free: 10.87 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003328/0.3107, allocations: 262.1 kB / 0.5145 GB, free: 10.58 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.424e-05/0.3108, allocations: 27.64 kB / 0.5146 GB, free: 10.55 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.542e-05/0.3108, allocations: 19.66 kB / 0.5146 GB, free: 10.54 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.689e-05/0.3108, allocations: 0 / 0.5146 GB, free: 10.54 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.948e-05/0.3109, allocations: 39.69 kB / 0.5146 GB, free: 10.49 MB / 382.1 MB Notification: Performance of pre-optimization done (n=2): time 1.002e-06/0.3109, allocations: 0 / 0.5146 GB, free: 10.49 MB / 382.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002383/0.3111, allocations: 70.84 kB / 0.5147 GB, free: 10.43 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.404e-05/0.3111, allocations: 78.48 kB / 0.5148 GB, free: 10.34 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.08e-05/0.3112, allocations: 112 kB / 0.5149 GB, free: 10.23 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.092e-05/0.3112, allocations: 25.7 kB / 0.5149 GB, free: 10.2 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.122e-05/0.3112, allocations: 86.83 kB / 0.515 GB, free: 10.11 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.811e-05/0.3113, allocations: 11.88 kB / 0.515 GB, free: 10.1 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.584e-05/0.3113, allocations: 17 kB / 0.515 GB, free: 10.08 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.076e-05/0.3114, allocations: 324.2 kB / 0.5153 GB, free: 9.758 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.896e-05/0.3114, allocations: 15.7 kB / 0.5153 GB, free: 9.75 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.035e-05/0.3115, allocations: 29.83 kB / 0.5154 GB, free: 9.723 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.025e-05/0.3115, allocations: 29.95 kB / 0.5154 GB, free: 9.703 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.3115, allocations: 0 / 0.5154 GB, free: 9.703 MB / 382.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001196/0.3117, allocations: 55.06 kB / 0.5154 GB, free: 9.66 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.517e-05/0.3117, allocations: 9.719 kB / 0.5155 GB, free: 9.656 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.089e-06/0.3117, allocations: 0 / 0.5155 GB, free: 9.656 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.412e-05/0.3117, allocations: 1.312 kB / 0.5155 GB, free: 9.656 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.42e-05/0.3118, allocations: 6.953 kB / 0.5155 GB, free: 9.652 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.372e-06/0.3118, allocations: 0 / 0.5155 GB, free: 9.652 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.009e-05/0.3118, allocations: 14.55 kB / 0.5155 GB, free: 9.645 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.621e-06/0.3118, allocations: 0 / 0.5155 GB, free: 9.645 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (hysteresis.y,$PRE.hysteresis.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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 6.247e-05/0.3119, allocations: 121.7 kB / 0.5156 GB, free: 9.52 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.635e-05/0.3119, allocations: 9.484 kB / 0.5156 GB, free: 9.512 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.416e-05/0.312, allocations: 4.969 kB / 0.5156 GB, free: 9.504 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.203e-06/0.312, allocations: 0 / 0.5156 GB, free: 9.504 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.396e-06/0.312, allocations: 3.938 kB / 0.5156 GB, free: 9.5 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.837e-06/0.312, allocations: 1.438 kB / 0.5156 GB, free: 9.5 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001245/0.3121, allocations: 167.5 kB / 0.5158 GB, free: 9.293 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.11e-07/0.3121, allocations: 0 / 0.5158 GB, free: 9.293 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.915e-05/0.3121, allocations: 6.984 kB / 0.5158 GB, free: 9.289 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.293e-06/0.3121, allocations: 0 / 0.5158 GB, free: 9.289 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.632e-06/0.3121, allocations: 1.312 kB / 0.5158 GB, free: 9.289 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.3121, allocations: 0 / 0.5158 GB, free: 9.289 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.3121, allocations: 4 kB / 0.5158 GB, free: 9.285 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001332/0.3123, allocations: 148.8 kB / 0.5159 GB, free: 9.141 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.967e-05/0.3123, allocations: 83.03 kB / 0.516 GB, free: 9.043 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.798e-05/0.3123, allocations: 1.812 kB / 0.516 GB, free: 9.043 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.971e-05/0.3124, allocations: 13.48 kB / 0.516 GB, free: 9.035 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.753e-05/0.3125, allocations: 5.781 kB / 0.516 GB, free: 9.031 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.2e-06/0.3125, allocations: 9.766 kB / 0.516 GB, free: 9.023 MB / 382.1 MB Notification: Performance of sorting global known variables: time 2.962e-05/0.3125, allocations: 84.72 kB / 0.5161 GB, free: 8.945 MB / 382.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3125, allocations: 3.938 kB / 0.5161 GB, free: 8.941 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002147/0.3127, allocations: 5.375 kB / 0.5161 GB, free: 8.941 MB / 382.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: 1 (hysteresis.y) * Number of discrete states: 1 (hysteresis.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.0003412/0.313, allocations: 0.684 MB / 0.5168 GB, free: 8.262 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001542/0.3132, allocations: 28.3 kB / 0.5168 GB, free: 8.25 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.794e-06/0.3132, allocations: 0 / 0.5168 GB, free: 8.25 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 4.793e-05/0.3132, allocations: 16.42 kB / 0.5168 GB, free: 8.242 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000208/0.3135, allocations: 2.094 kB / 0.5168 GB, free: 8.242 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003903/0.3138, allocations: 161.8 kB / 0.517 GB, free: 8.074 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001145/0.314, allocations: 0.6822 MB / 0.5177 GB, free: 7.371 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 3.112e-05/0.314, allocations: 6.891 kB / 0.5177 GB, free: 7.367 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.294e-05/0.314, allocations: 12.81 kB / 0.5177 GB, free: 7.355 MB / 382.1 MB Notification: Performance of SimCode: time 3.01e-07/0.314, allocations: 0 / 0.5177 GB, free: 7.355 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01866/0.3327, allocations: 1.548 MB / 0.5192 GB, free: 6.395 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.692/9.025, allocations: 11.34 kB / 0.5192 GB, free: 6.387 MB / 382.1 MB " [Timeout remaining time 651] (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Blocks_Hysteresis_fmu --startTime=0 --stopTime=3 --stepSize=0.000598325 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Blocks_Hysteresis.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.987033112032805] Failed to read output from testmodel.py, exit status != 0: ['time', 'hysteresis.y'] 9.151741150999442 9.172724189 8.858720711 Calling exit ...