Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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.001324/0.001324, allocations: 112.2 kB / 21.22 MB, free: 0.75 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.001502/0.001502, allocations: 205.2 kB / 24.52 MB, free: 4.156 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.559/1.559, allocations: 230.6 MB / 258.3 MB, free: 8.016 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2281/0.2281, allocations: 44.91 MB / 359.6 MB, free: 6.297 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4_0_0_ModelicaTest_Blocks_Hysteresis",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Hysteresis,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_Hysteresis",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 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.002116/0.002116, allocations: 63.91 kB / 0.4938 GB, free: 10.73 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3247/0.3268, allocations: 65.47 MB / 0.5578 GB, free: 7.535 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.002692/0.3295, allocations: 1.477 MB / 0.5592 GB, free: 6.297 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009077/0.3304, allocations: 494.8 kB / 0.5597 GB, free: 5.809 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.801e-05/0.3304, allocations: 0 / 0.5597 GB, free: 5.809 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 2.688e-05/0.3304, allocations: 3.938 kB / 0.5597 GB, free: 5.805 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 4.564e-05/0.3305, allocations: 7.922 kB / 0.5597 GB, free: 5.797 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002089/0.3307, allocations: 27.91 kB / 0.5597 GB, free: 5.77 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001079/0.3308, allocations: 35.86 kB / 0.5598 GB, free: 5.734 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.39e-05/0.3309, allocations: 11.98 kB / 0.5598 GB, free: 5.723 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001146/0.331, allocations: 19.92 kB / 0.5598 GB, free: 5.703 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.967e-05/0.3311, allocations: 19.92 kB / 0.5598 GB, free: 5.684 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.099e-05/0.3311, allocations: 4 kB / 0.5598 GB, free: 5.68 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.251e-05/0.3311, allocations: 11.94 kB / 0.5598 GB, free: 5.668 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.406e-05/0.3311, allocations: 7.984 kB / 0.5598 GB, free: 5.66 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.058e-05/0.3312, allocations: 15.92 kB / 0.5598 GB, free: 5.645 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001179/0.3313, allocations: 35.69 kB / 0.5599 GB, free: 5.613 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.379e-06/0.3313, allocations: 0 / 0.5599 GB, free: 5.613 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.3313, allocations: 4 kB / 0.5599 GB, free: 5.609 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.049e-06/0.3313, allocations: 0 / 0.5599 GB, free: 5.609 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.000525/0.3318, allocations: 282.4 kB / 0.5602 GB, free: 5.309 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.248e-05/0.3319, allocations: 16.03 kB / 0.5602 GB, free: 5.293 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.733e-05/0.3319, allocations: 192 / 0.5602 GB, free: 5.293 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.002e-05/0.3319, allocations: 30.75 kB / 0.5602 GB, free: 5.254 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000147/0.3321, allocations: 12.92 kB / 0.5602 GB, free: 5.242 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002147/0.3323, allocations: 126.4 kB / 0.5603 GB, free: 5.094 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.238e-05/0.3323, allocations: 4.375 kB / 0.5603 GB, free: 5.09 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.025e-05/0.3323, allocations: 384 / 0.5603 GB, free: 5.09 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001726/0.3325, allocations: 63.33 kB / 0.5604 GB, free: 5.016 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.035e-06/0.3325, allocations: 4 kB / 0.5604 GB, free: 5.012 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.458e-06/0.3325, allocations: 0 / 0.5604 GB, free: 5.012 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.092e-06/0.3325, allocations: 4 kB / 0.5604 GB, free: 5.008 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.309e-05/0.3326, allocations: 19.98 kB / 0.5604 GB, free: 4.988 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004293/0.333, allocations: 243.8 kB / 0.5607 GB, free: 4.707 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001029/0.3331, allocations: 34.62 kB / 0.5607 GB, free: 4.664 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.97e-05/0.3332, allocations: 20.84 kB / 0.5607 GB, free: 4.641 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.409e-05/0.3332, allocations: 0 / 0.5607 GB, free: 4.641 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.824e-05/0.3332, allocations: 30.56 kB / 0.5607 GB, free: 4.602 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 8.11e-07/0.3332, allocations: 0 / 0.5607 GB, free: 4.602 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002405/0.3335, allocations: 65.61 kB / 0.5608 GB, free: 4.531 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001947/0.3337, allocations: 85.23 kB / 0.5609 GB, free: 4.43 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.833e-05/0.3338, allocations: 109.8 kB / 0.561 GB, free: 4.312 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.214e-05/0.3338, allocations: 25.7 kB / 0.561 GB, free: 4.281 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.892e-05/0.3338, allocations: 84.14 kB / 0.5611 GB, free: 4.195 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.737e-05/0.3338, allocations: 7.953 kB / 0.5611 GB, free: 4.188 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.226e-05/0.3339, allocations: 21.7 kB / 0.5611 GB, free: 4.16 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001424/0.334, allocations: 314.8 kB / 0.5614 GB, free: 3.844 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.553e-05/0.3341, allocations: 19.98 kB / 0.5614 GB, free: 3.824 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.58e-05/0.3341, allocations: 21.72 kB / 0.5615 GB, free: 3.797 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.611e-05/0.3342, allocations: 28.78 kB / 0.5615 GB, free: 3.766 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.3342, allocations: 0 / 0.5615 GB, free: 3.766 MB / 398.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001426/0.3344, allocations: 61.8 kB / 0.5615 GB, free: 3.699 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.396e-05/0.3344, allocations: 8 kB / 0.5616 GB, free: 3.691 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.218e-06/0.3344, allocations: 0 / 0.5616 GB, free: 3.691 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.299e-05/0.3344, allocations: 0 / 0.5616 GB, free: 3.691 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.379e-05/0.3345, allocations: 15.95 kB / 0.5616 GB, free: 3.676 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.611e-06/0.3345, allocations: 0 / 0.5616 GB, free: 3.676 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.837e-05/0.3345, allocations: 8.328 kB / 0.5616 GB, free: 3.668 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.265e-06/0.3346, allocations: 4 kB / 0.5616 GB, free: 3.664 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.34e-05/0.3346, allocations: 113.8 kB / 0.5617 GB, free: 3.543 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.796e-05/0.3347, allocations: 4 kB / 0.5617 GB, free: 3.539 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.596e-05/0.3347, allocations: 11.56 kB / 0.5617 GB, free: 3.523 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.434e-06/0.3347, allocations: 0 / 0.5617 GB, free: 3.523 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.977e-06/0.3347, allocations: 4 kB / 0.5617 GB, free: 3.52 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.952e-06/0.3347, allocations: 4 kB / 0.5617 GB, free: 3.516 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001755/0.3349, allocations: 136.7 kB / 0.5618 GB, free: 3.34 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.11e-07/0.3349, allocations: 0 / 0.5618 GB, free: 3.34 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.771e-05/0.3349, allocations: 7.938 kB / 0.5619 GB, free: 3.332 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.212e-06/0.3349, allocations: 0 / 0.5619 GB, free: 3.332 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.116e-05/0.3349, allocations: 3.984 kB / 0.5619 GB, free: 3.328 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.42e-07/0.3349, allocations: 0 / 0.5619 GB, free: 3.328 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.859e-06/0.3349, allocations: 4 kB / 0.5619 GB, free: 3.324 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001854/0.3351, allocations: 151.4 kB / 0.562 GB, free: 3.16 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.064e-06/0.3351, allocations: 0 / 0.562 GB, free: 3.16 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.405e-05/0.3352, allocations: 7.984 kB / 0.562 GB, free: 3.152 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.966e-05/0.3353, allocations: 12 kB / 0.562 GB, free: 3.141 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.098e-05/0.3353, allocations: 7.984 kB / 0.562 GB, free: 3.133 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.917e-06/0.3353, allocations: 0 / 0.562 GB, free: 3.133 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.669e-05/0.3354, allocations: 91.27 kB / 0.5621 GB, free: 3.043 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3354, allocations: 4.031 kB / 0.5621 GB, free: 3.039 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000218/0.3356, allocations: 4 kB / 0.5621 GB, free: 3.035 MB / 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.000537/0.3361, allocations: 0.6811 MB / 0.5628 GB, free: 2.328 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000146/0.3363, allocations: 28.02 kB / 0.5628 GB, free: 2.301 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.3363, allocations: 4 kB / 0.5628 GB, free: 2.297 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 6.778e-05/0.3363, allocations: 19.92 kB / 0.5628 GB, free: 2.277 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002183/0.3365, allocations: 0 / 0.5628 GB, free: 2.277 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001548/0.3381, allocations: 1.266 MB / 0.5641 GB, free: 0.9336 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000479/0.3386, allocations: 0.6848 MB / 0.5647 GB, free: 228 kB / 398.1 MB Notification: Performance of simCode: alias equations: time 3.152e-05/0.3386, allocations: 4 kB / 0.5647 GB, free: 224 kB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.523e-05/0.3386, allocations: 15.44 kB / 0.5648 GB, free: 208 kB / 398.1 MB Notification: Performance of SimCode: time 4.31e-07/0.3386, allocations: 3.938 kB / 0.5648 GB, free: 204 kB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02206/0.3607, allocations: 1.685 MB / 0.5664 GB, free: 14.65 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.46/11.82, allocations: 11.38 kB / 0.5664 GB, free: 14.64 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Blocks_Hysteresis_fmu --startTime=0 --stopTime=3 --stepSize=0.000598325 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Blocks_Hysteresis.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.813695179007482] Failed to read output from testmodel.py, exit status != 0: ['time', 'hysteresis.y'] 11.990194658981636 12.011455696 11.676245715 Calling exit ...