Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_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.00151/0.00151, 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.001916/0.001916, allocations: 207.4 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.388/1.388, 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 trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2158/0.2158, allocations: 46.93 MB / 361.6 MB, free: 4.176 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.Hysteresis,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_Hysteresis",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Hysteresis,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_Hysteresis",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002131/0.002131, allocations: 75.88 kB / 0.497 GB, free: 7.773 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3045/0.3067, allocations: 66.09 MB / 0.5615 GB, free: 4.309 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.002557/0.3092, allocations: 1.473 MB / 0.5629 GB, free: 2.828 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008213/0.31, allocations: 486.8 kB / 0.5634 GB, free: 2.348 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.582e-05/0.3101, allocations: 0 / 0.5634 GB, free: 2.348 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 2.64e-05/0.3101, allocations: 7.938 kB / 0.5634 GB, free: 2.34 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 4.401e-05/0.3102, allocations: 3.938 kB / 0.5634 GB, free: 2.336 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000208/0.3104, allocations: 31.91 kB / 0.5634 GB, free: 2.305 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001127/0.3105, allocations: 39.84 kB / 0.5635 GB, free: 2.266 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.798e-05/0.3106, allocations: 8 kB / 0.5635 GB, free: 2.258 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001182/0.3107, allocations: 23.92 kB / 0.5635 GB, free: 2.234 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.143e-05/0.3107, allocations: 15.92 kB / 0.5635 GB, free: 2.219 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.374e-05/0.3108, allocations: 4 kB / 0.5635 GB, free: 2.215 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.847e-05/0.3108, allocations: 7.984 kB / 0.5635 GB, free: 2.207 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.655e-05/0.3108, allocations: 11.94 kB / 0.5635 GB, free: 2.195 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.604e-05/0.3108, allocations: 15.92 kB / 0.5636 GB, free: 2.18 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001104/0.3109, allocations: 37.8 kB / 0.5636 GB, free: 2.145 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.311, allocations: 0 / 0.5636 GB, free: 2.145 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.311, allocations: 0 / 0.5636 GB, free: 2.145 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.745e-06/0.311, allocations: 0 / 0.5636 GB, free: 2.145 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.0004264/0.3114, allocations: 278.2 kB / 0.5639 GB, free: 1.844 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.576e-05/0.3114, allocations: 12.02 kB / 0.5639 GB, free: 1.832 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.511e-05/0.3114, allocations: 12.12 kB / 0.5639 GB, free: 1.82 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.048e-05/0.3115, allocations: 30.75 kB / 0.5639 GB, free: 1.781 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001311/0.3116, allocations: 8.938 kB / 0.5639 GB, free: 1.773 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001715/0.3118, allocations: 114.5 kB / 0.564 GB, free: 1.637 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.256e-05/0.3118, allocations: 12.3 kB / 0.564 GB, free: 1.625 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.325e-05/0.3118, allocations: 4.375 kB / 0.564 GB, free: 1.621 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001534/0.312, allocations: 63.33 kB / 0.5641 GB, free: 1.547 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.003e-06/0.312, allocations: 0 / 0.5641 GB, free: 1.547 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.466e-06/0.312, allocations: 0 / 0.5641 GB, free: 1.547 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.005e-06/0.312, allocations: 4 kB / 0.5641 GB, free: 1.543 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.362e-05/0.3121, allocations: 19.92 kB / 0.5641 GB, free: 1.523 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003569/0.3124, allocations: 251.9 kB / 0.5644 GB, free: 1.234 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.939e-05/0.3125, allocations: 34.5 kB / 0.5644 GB, free: 1.191 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.591e-05/0.3126, allocations: 12.92 kB / 0.5644 GB, free: 1.176 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.562e-05/0.3126, allocations: 4 kB / 0.5644 GB, free: 1.172 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.586e-05/0.3126, allocations: 30.56 kB / 0.5644 GB, free: 1.133 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 1.353e-06/0.3126, allocations: 0 / 0.5644 GB, free: 1.133 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002322/0.3128, allocations: 65.61 kB / 0.5645 GB, free: 1.062 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.139e-05/0.3129, allocations: 81.11 kB / 0.5646 GB, free: 0.9648 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.49e-05/0.313, allocations: 109.8 kB / 0.5647 GB, free: 0.8477 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.831e-05/0.313, allocations: 29.7 kB / 0.5647 GB, free: 0.8125 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.706e-05/0.313, allocations: 88.12 kB / 0.5648 GB, free: 0.7227 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.569e-05/0.3131, allocations: 3.953 kB / 0.5648 GB, free: 0.7188 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.513e-05/0.3131, allocations: 17.72 kB / 0.5648 GB, free: 0.6953 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001503/0.3132, allocations: 326.9 kB / 0.5651 GB, free: 376 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.615e-05/0.3133, allocations: 8 kB / 0.5651 GB, free: 368 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.53e-05/0.3134, allocations: 29.7 kB / 0.5652 GB, free: 332 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.642e-05/0.3134, allocations: 20.84 kB / 0.5652 GB, free: 308 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.462e-06/0.3134, allocations: 4 kB / 0.5652 GB, free: 304 kB / 398.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001256/0.3136, allocations: 53.62 kB / 0.5652 GB, free: 244 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.741e-05/0.3136, allocations: 11.98 kB / 0.5653 GB, free: 232 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.038e-06/0.3136, allocations: 4.031 kB / 0.5653 GB, free: 228 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.136e-05/0.3136, allocations: 0 / 0.5653 GB, free: 228 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.399e-05/0.3137, allocations: 4 kB / 0.5653 GB, free: 224 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.719e-06/0.3137, allocations: 0 / 0.5653 GB, free: 224 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.917e-05/0.3137, allocations: 19.88 kB / 0.5653 GB, free: 204 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.99e-06/0.3137, allocations: 0 / 0.5653 GB, free: 204 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 8.982e-05/0.3138, allocations: 115.1 kB / 0.5654 GB, free: 80 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.584e-05/0.3138, allocations: 4 kB / 0.5654 GB, free: 76 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.524e-05/0.3139, allocations: 11.62 kB / 0.5654 GB, free: 60 kB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.252e-06/0.3139, allocations: 0 / 0.5654 GB, free: 60 kB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/0.3139, allocations: 0 / 0.5654 GB, free: 60 kB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.378e-06/0.3139, allocations: 4.5 kB / 0.5654 GB, free: 56 kB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001739/0.314, allocations: 132.7 kB / 0.5655 GB, free: 15.88 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.314, allocations: 0 / 0.5655 GB, free: 15.88 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.832e-05/0.3141, allocations: 11.97 kB / 0.5656 GB, free: 15.87 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.282e-06/0.3141, allocations: 3.938 kB / 0.5656 GB, free: 15.87 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.663e-06/0.3141, allocations: 0 / 0.5656 GB, free: 15.87 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.42e-07/0.3141, allocations: 0 / 0.5656 GB, free: 15.87 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.418e-06/0.3141, allocations: 7.922 kB / 0.5656 GB, free: 15.86 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00018/0.3143, allocations: 163.4 kB / 0.5657 GB, free: 15.68 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.562e-06/0.3143, allocations: 0 / 0.5657 GB, free: 15.68 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.587e-05/0.3143, allocations: 0 / 0.5657 GB, free: 15.68 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.806e-05/0.3144, allocations: 15.98 kB / 0.5657 GB, free: 15.67 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.835e-05/0.3144, allocations: 7.984 kB / 0.5657 GB, free: 15.66 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.871e-06/0.3144, allocations: 4 kB / 0.5657 GB, free: 15.66 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.994e-05/0.3145, allocations: 91.3 kB / 0.5658 GB, free: 15.57 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3145, allocations: 0 / 0.5658 GB, free: 15.57 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002099/0.3147, allocations: 8 kB / 0.5658 GB, free: 15.56 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.0004832/0.3152, allocations: 0.6811 MB / 0.5665 GB, free: 14.85 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001375/0.3153, allocations: 28.02 kB / 0.5665 GB, free: 14.82 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.3153, allocations: 0 / 0.5665 GB, free: 14.82 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.071e-05/0.3154, allocations: 12 kB / 0.5665 GB, free: 14.81 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002003/0.3156, allocations: 4 kB / 0.5665 GB, free: 14.81 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001337/0.3169, allocations: 1.274 MB / 0.5678 GB, free: 13.46 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003148/0.3172, allocations: 0.6807 MB / 0.5685 GB, free: 12.75 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 2.96e-05/0.3173, allocations: 4 kB / 0.5685 GB, free: 12.75 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.548e-05/0.3173, allocations: 15.42 kB / 0.5685 GB, free: 12.73 MB / 414.1 MB Notification: Performance of SimCode: time 3.01e-07/0.3173, allocations: 0 / 0.5685 GB, free: 12.73 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01958/0.3369, allocations: 1.678 MB / 0.5701 GB, free: 11.16 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.26/10.59, allocations: 10.11 kB / 0.5701 GB, free: 11.16 MB / 414.1 MB " [Timeout remaining time 649] (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_Hysteresis_fmu --startTime=0 --stopTime=3 --stepSize=0.000598325 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_Hysteresis.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.339005268004257] Failed to read output from testmodel.py, exit status != 0: ['time', 'hysteresis.y'] 10.751308580045588 10.77534835 10.460955721 Calling exit ...