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.001313/0.001313, allocations: 108.6 kB / 19.8 MB, free: 2.5 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.001552/0.001552, allocations: 215.1 kB / 23 MB, free: 5.582 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.497/1.497, allocations: 230.2 MB / 256.2 MB, free: 8.551 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.277/0.277, allocations: 46.89 MB / 359.4 MB, free: 4.906 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.002235/0.002235, allocations: 76.16 kB / 0.4941 GB, free: 9.016 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3535/0.3557, allocations: 65.99 MB / 0.5586 GB, free: 5.172 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.002983/0.3587, allocations: 1.469 MB / 0.56 GB, free: 3.691 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001019/0.3597, allocations: 486.8 kB / 0.5605 GB, free: 3.211 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.527e-05/0.3598, allocations: 4 kB / 0.5605 GB, free: 3.207 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 3.585e-05/0.3598, allocations: 3.938 kB / 0.5605 GB, free: 3.203 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.641e-05/0.3599, allocations: 3.938 kB / 0.5605 GB, free: 3.199 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002633/0.3601, allocations: 31.89 kB / 0.5605 GB, free: 3.168 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001262/0.3603, allocations: 47.8 kB / 0.5606 GB, free: 3.121 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.318e-05/0.3604, allocations: 4 kB / 0.5606 GB, free: 3.117 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001251/0.3605, allocations: 15.98 kB / 0.5606 GB, free: 3.102 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.548e-05/0.3606, allocations: 19.91 kB / 0.5606 GB, free: 3.082 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.663e-05/0.3606, allocations: 4 kB / 0.5606 GB, free: 3.078 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.125e-05/0.3606, allocations: 8 kB / 0.5606 GB, free: 3.07 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.44e-05/0.3606, allocations: 11.92 kB / 0.5606 GB, free: 3.059 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.967e-05/0.3607, allocations: 15.94 kB / 0.5606 GB, free: 3.043 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001291/0.3608, allocations: 37.64 kB / 0.5607 GB, free: 3.008 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.529e-06/0.3608, allocations: 0 / 0.5607 GB, free: 3.008 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.3608, allocations: 4 kB / 0.5607 GB, free: 3.004 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.089e-06/0.3608, allocations: 0 / 0.5607 GB, free: 3.004 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.0005282/0.3613, allocations: 355.3 kB / 0.561 GB, free: 2.609 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.988e-05/0.3614, allocations: 11.97 kB / 0.561 GB, free: 2.598 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.107e-05/0.3614, allocations: 34.75 kB / 0.5611 GB, free: 2.555 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001468/0.3616, allocations: 16.86 kB / 0.5611 GB, free: 2.539 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002732/0.3618, allocations: 176.3 kB / 0.5612 GB, free: 2.328 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.349e-05/0.3618, allocations: 4.375 kB / 0.5612 GB, free: 2.324 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.279e-05/0.3619, allocations: 4.375 kB / 0.5612 GB, free: 2.32 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001643/0.362, allocations: 63.52 kB / 0.5613 GB, free: 2.246 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.456e-06/0.362, allocations: 0 / 0.5613 GB, free: 2.246 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.899e-06/0.362, allocations: 0 / 0.5613 GB, free: 2.246 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.719e-06/0.362, allocations: 0 / 0.5613 GB, free: 2.246 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.926e-05/0.3621, allocations: 23.92 kB / 0.5613 GB, free: 2.223 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004185/0.3626, allocations: 276.8 kB / 0.5616 GB, free: 1.902 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.018e-05/0.3627, allocations: 26.58 kB / 0.5616 GB, free: 1.867 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.395e-05/0.3627, allocations: 16.91 kB / 0.5616 GB, free: 1.848 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.665e-05/0.3627, allocations: 0 / 0.5616 GB, free: 1.848 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.673e-05/0.3628, allocations: 34.56 kB / 0.5617 GB, free: 1.805 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 7.81e-07/0.3628, allocations: 0 / 0.5617 GB, free: 1.805 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002636/0.363, allocations: 65.61 kB / 0.5617 GB, free: 1.734 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.18e-05/0.3631, allocations: 77.11 kB / 0.5618 GB, free: 1.641 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001071/0.3632, allocations: 113.8 kB / 0.5619 GB, free: 1.52 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.006e-05/0.3632, allocations: 25.7 kB / 0.5619 GB, free: 1.488 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.471e-05/0.3633, allocations: 88.14 kB / 0.562 GB, free: 1.398 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.161e-05/0.3633, allocations: 7.938 kB / 0.562 GB, free: 1.391 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.882e-05/0.3633, allocations: 17.72 kB / 0.562 GB, free: 1.367 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001557/0.3635, allocations: 318.9 kB / 0.5623 GB, free: 1.047 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.296e-05/0.3636, allocations: 15.98 kB / 0.5624 GB, free: 1.031 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.568e-05/0.3636, allocations: 25.7 kB / 0.5624 GB, free: 1 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.645e-05/0.3637, allocations: 32.86 kB / 0.5624 GB, free: 0.9648 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.3637, allocations: 0 / 0.5624 GB, free: 0.9648 MB / 398.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001318/0.3638, allocations: 53.69 kB / 0.5625 GB, free: 0.9062 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.53e-05/0.3638, allocations: 8.031 kB / 0.5625 GB, free: 0.8984 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.529e-06/0.3638, allocations: 0 / 0.5625 GB, free: 0.8984 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.45e-05/0.3639, allocations: 0 / 0.5625 GB, free: 0.8984 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.373e-05/0.3639, allocations: 7.984 kB / 0.5625 GB, free: 0.8906 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.22e-06/0.3639, allocations: 384 / 0.5625 GB, free: 0.8906 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.666e-05/0.364, allocations: 27.88 kB / 0.5625 GB, free: 0.8633 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.041e-06/0.364, allocations: 0 / 0.5625 GB, free: 0.8633 MB / 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.853e-05/0.3641, allocations: 113.8 kB / 0.5626 GB, free: 0.7422 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.524e-05/0.3641, allocations: 7.938 kB / 0.5626 GB, free: 0.7344 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.7e-05/0.3642, allocations: 7.531 kB / 0.5626 GB, free: 0.7266 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.877e-06/0.3642, allocations: 4 kB / 0.5626 GB, free: 0.7227 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.3642, allocations: 0 / 0.5626 GB, free: 0.7227 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.595e-06/0.3642, allocations: 3.938 kB / 0.5626 GB, free: 0.7188 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001923/0.3644, allocations: 161.6 kB / 0.5628 GB, free: 0.5117 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.3644, allocations: 0 / 0.5628 GB, free: 0.5117 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.067e-05/0.3644, allocations: 7.984 kB / 0.5628 GB, free: 0.5039 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.814e-06/0.3644, allocations: 0 / 0.5628 GB, free: 0.5039 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.364e-06/0.3644, allocations: 0 / 0.5628 GB, free: 0.5039 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.589e-06/0.3644, allocations: 4 kB / 0.5628 GB, free: 0.5 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.51e-07/0.3644, allocations: 4 kB / 0.5628 GB, free: 0.4961 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001972/0.3646, allocations: 155.4 kB / 0.563 GB, free: 336 kB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.807e-05/0.3647, allocations: 77.11 kB / 0.563 GB, free: 240 kB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.147e-05/0.3647, allocations: 4 kB / 0.563 GB, free: 236 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.57e-05/0.3648, allocations: 7.984 kB / 0.563 GB, free: 228 kB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.846e-05/0.3648, allocations: 8 kB / 0.5631 GB, free: 220 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.492e-06/0.3648, allocations: 8.016 kB / 0.5631 GB, free: 212 kB / 398.1 MB Notification: Performance of sorting global known variables: time 6.415e-05/0.3649, allocations: 91.22 kB / 0.5631 GB, free: 120 kB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3649, allocations: 0 / 0.5631 GB, free: 120 kB / 398.1 MB Notification: Performance of remove unused functions: time 0.000219/0.3651, allocations: 4 kB / 0.5632 GB, free: 116 kB / 398.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.0005685/0.3657, allocations: 0.6851 MB / 0.5638 GB, free: 15.4 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001677/0.3658, allocations: 23.98 kB / 0.5638 GB, free: 15.38 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.3659, allocations: 0 / 0.5638 GB, free: 15.38 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.542e-05/0.3659, allocations: 19.92 kB / 0.5639 GB, free: 15.36 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000215/0.3661, allocations: 2.656 kB / 0.5639 GB, free: 15.36 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001463/0.3676, allocations: 1.285 MB / 0.5651 GB, free: 13.99 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003361/0.3679, allocations: 0.6848 MB / 0.5658 GB, free: 13.28 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 3.402e-05/0.368, allocations: 0 / 0.5658 GB, free: 13.28 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.202e-05/0.368, allocations: 19.56 kB / 0.5658 GB, free: 13.26 MB / 414.1 MB Notification: Performance of SimCode: time 4.41e-07/0.368, allocations: 0 / 0.5658 GB, free: 13.26 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02476/0.3928, allocations: 1.529 MB / 0.5673 GB, free: 11.79 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.063/8.455, allocations: 1.547 kB / 0.5673 GB, free: 11.79 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 --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.303082565020304] Failed to read output from testmodel.py, exit status != 0: ['time', 'hysteresis.y'] 8.52135181199992 8.536503372 8.172694617 Calling exit ...