Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Hysteresis.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.00192/0.00192, allocations: 109 kB / 21.23 MB, free: 0.6641 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.001598/0.001598, allocations: 213.9 kB / 24.54 MB, free: 4.02 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.536/1.536, allocations: 230.5 MB / 258.2 MB, free: 8.012 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2461/0.2461, allocations: 46.93 MB / 361.6 MB, free: 4.191 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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.Hysteresis,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Hysteresis,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002701/0.002701, allocations: 91.84 kB / 0.497 GB, free: 7.773 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4085/0.4112, allocations: 66.08 MB / 0.5615 GB, free: 4.32 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.002722/0.4139, allocations: 1.465 MB / 0.5629 GB, free: 2.848 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001045/0.415, allocations: 490.8 kB / 0.5634 GB, free: 2.363 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.561e-05/0.4151, allocations: 4 kB / 0.5634 GB, free: 2.359 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 2.921e-05/0.4151, allocations: 3.938 kB / 0.5634 GB, free: 2.355 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.454e-05/0.4151, allocations: 11.86 kB / 0.5634 GB, free: 2.344 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002875/0.4154, allocations: 27.91 kB / 0.5634 GB, free: 2.316 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001283/0.4156, allocations: 39.86 kB / 0.5635 GB, free: 2.277 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001132/0.4157, allocations: 7.984 kB / 0.5635 GB, free: 2.27 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001388/0.4158, allocations: 23.94 kB / 0.5635 GB, free: 2.246 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.08e-05/0.4159, allocations: 19.91 kB / 0.5635 GB, free: 2.227 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.244e-05/0.4159, allocations: 4 kB / 0.5635 GB, free: 2.223 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.688e-05/0.4159, allocations: 7.984 kB / 0.5635 GB, free: 2.215 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.09e-05/0.416, allocations: 11.94 kB / 0.5636 GB, free: 2.203 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.206e-05/0.416, allocations: 11.94 kB / 0.5636 GB, free: 2.191 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000134/0.4161, allocations: 41.78 kB / 0.5636 GB, free: 2.152 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.4161, allocations: 0 / 0.5636 GB, free: 2.152 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.4161, allocations: 0 / 0.5636 GB, free: 2.152 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.152e-06/0.4161, allocations: 4 kB / 0.5636 GB, free: 2.148 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0006053/0.4167, allocations: 274.2 kB / 0.5639 GB, free: 1.852 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.721e-05/0.4168, allocations: 12.03 kB / 0.5639 GB, free: 1.84 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.16e-05/0.4168, allocations: 34.69 kB / 0.5639 GB, free: 1.797 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001699/0.417, allocations: 16.92 kB / 0.5639 GB, free: 1.781 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002283/0.4172, allocations: 118.4 kB / 0.564 GB, free: 1.641 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.248e-06/0.4173, allocations: 384 / 0.564 GB, free: 1.641 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.098e-05/0.4173, allocations: 4.375 kB / 0.564 GB, free: 1.637 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001657/0.4174, allocations: 67.52 kB / 0.5641 GB, free: 1.559 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.466e-06/0.4174, allocations: 0 / 0.5641 GB, free: 1.559 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.177e-06/0.4174, allocations: 0 / 0.5641 GB, free: 1.559 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.793e-06/0.4175, allocations: 4 kB / 0.5641 GB, free: 1.555 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.048e-05/0.4175, allocations: 15.98 kB / 0.5641 GB, free: 1.539 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003994/0.4179, allocations: 243.8 kB / 0.5644 GB, free: 1.258 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.89e-05/0.418, allocations: 34.56 kB / 0.5644 GB, free: 1.215 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.289e-05/0.4181, allocations: 16.91 kB / 0.5644 GB, free: 1.195 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.296e-05/0.4181, allocations: 0 / 0.5644 GB, free: 1.195 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.018e-05/0.4181, allocations: 30.56 kB / 0.5644 GB, free: 1.156 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 8.01e-07/0.4181, allocations: 0 / 0.5644 GB, free: 1.156 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002546/0.4184, allocations: 65.7 kB / 0.5645 GB, free: 1.086 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.239e-05/0.4185, allocations: 85.14 kB / 0.5646 GB, free: 0.9844 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.655e-05/0.4186, allocations: 109.8 kB / 0.5647 GB, free: 0.8672 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.331e-05/0.4186, allocations: 33.7 kB / 0.5647 GB, free: 0.8281 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.706e-05/0.4187, allocations: 84.14 kB / 0.5648 GB, free: 0.7422 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.871e-05/0.4187, allocations: 3.953 kB / 0.5648 GB, free: 0.7383 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.625e-05/0.4187, allocations: 17.7 kB / 0.5648 GB, free: 0.7148 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002126/0.4189, allocations: 322.8 kB / 0.5651 GB, free: 400 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001161/0.419, allocations: 15.98 kB / 0.5651 GB, free: 384 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.15e-05/0.4191, allocations: 21.72 kB / 0.5652 GB, free: 356 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.036e-05/0.4192, allocations: 28.92 kB / 0.5652 GB, free: 324 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.4192, allocations: 0 / 0.5652 GB, free: 324 kB / 398.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001311/0.4193, allocations: 61.61 kB / 0.5653 GB, free: 256 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.414e-05/0.4193, allocations: 6.344 kB / 0.5653 GB, free: 252 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.477e-06/0.4193, allocations: 4 kB / 0.5653 GB, free: 248 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.349e-05/0.4193, allocations: 4.031 kB / 0.5653 GB, free: 244 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.496e-05/0.4194, allocations: 7.984 kB / 0.5653 GB, free: 236 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.04e-06/0.4194, allocations: 0 / 0.5653 GB, free: 236 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.504e-05/0.4195, allocations: 7.953 kB / 0.5653 GB, free: 228 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.35e-06/0.4195, allocations: 3.938 kB / 0.5653 GB, free: 224 kB / 398.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 9.723e-05/0.4196, allocations: 121.8 kB / 0.5654 GB, free: 92 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.691e-05/0.4196, allocations: 4 kB / 0.5654 GB, free: 88 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.049e-05/0.4197, allocations: 11.62 kB / 0.5654 GB, free: 72 kB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/0.4197, allocations: 4 kB / 0.5654 GB, free: 68 kB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.4197, allocations: 0 / 0.5654 GB, free: 68 kB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.265e-06/0.4197, allocations: 0 / 0.5654 GB, free: 68 kB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001934/0.4199, allocations: 136.7 kB / 0.5656 GB, free: 15.89 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.4199, allocations: 0 / 0.5656 GB, free: 15.89 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.794e-05/0.4199, allocations: 4 kB / 0.5656 GB, free: 15.89 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.392e-06/0.4199, allocations: 0 / 0.5656 GB, free: 15.89 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.021e-05/0.4199, allocations: 3.984 kB / 0.5656 GB, free: 15.88 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.257e-06/0.4199, allocations: 3.938 kB / 0.5656 GB, free: 15.88 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.01e-07/0.4199, allocations: 0 / 0.5656 GB, free: 15.88 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000179/0.4201, allocations: 159.4 kB / 0.5657 GB, free: 15.71 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.207e-06/0.4201, allocations: 3.984 kB / 0.5657 GB, free: 15.7 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.606e-05/0.4201, allocations: 0 / 0.5657 GB, free: 15.7 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.267e-05/0.4202, allocations: 8 kB / 0.5657 GB, free: 15.7 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.126e-05/0.4202, allocations: 3.984 kB / 0.5657 GB, free: 15.69 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.647e-06/0.4202, allocations: 384 / 0.5657 GB, free: 15.69 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001133/0.4204, allocations: 95.2 kB / 0.5658 GB, free: 15.6 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4204, allocations: 4.031 kB / 0.5658 GB, free: 15.59 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002211/0.4206, allocations: 8 kB / 0.5658 GB, free: 15.59 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: 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.0005486/0.4211, allocations: 0.6811 MB / 0.5665 GB, free: 14.88 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001482/0.4213, allocations: 32.02 kB / 0.5665 GB, free: 14.85 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.4213, allocations: 0 / 0.5665 GB, free: 14.85 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.879e-05/0.4213, allocations: 11.98 kB / 0.5665 GB, free: 14.84 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000211/0.4215, allocations: 11.94 kB / 0.5666 GB, free: 14.82 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001433/0.423, allocations: 1.274 MB / 0.5678 GB, free: 13.47 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003466/0.4233, allocations: 0.6807 MB / 0.5685 GB, free: 12.77 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 3.376e-05/0.4234, allocations: 4 kB / 0.5685 GB, free: 12.76 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.799e-05/0.4234, allocations: 15.44 kB / 0.5685 GB, free: 12.75 MB / 414.1 MB Notification: Performance of SimCode: time 5.71e-07/0.4234, allocations: 0 / 0.5685 GB, free: 12.75 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02787/0.4513, allocations: 1.552 MB / 0.57 GB, free: 11.26 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.083/8.534, allocations: 64 / 0.57 GB, free: 11.26 MB / 414.1 MB " [Timeout remaining time 651] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Hysteresis.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Hysteresis.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Hysteresis.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Hysteresis.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Hysteresis_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_Hysteresis_fmu --startTime=0 --stopTime=3 --stepSize=0.000598325 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_Hysteresis.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.480987378861755] Failed to read output from testmodel.py, exit status != 0: ['time', 'hysteresis.y'] 8.604027458000928 8.620379052 8.200729458 Calling exit ...