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.001671/0.001671, allocations: 109.1 kB / 21.22 MB, free: 0.6484 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.00177/0.00177, allocations: 208.7 kB / 24.51 MB, free: 3.941 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.399/1.399, allocations: 230.5 MB / 258.2 MB, free: 7.797 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.2114/0.2114, allocations: 46.95 MB / 361.6 MB, free: 3.945 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.002146/0.002146, allocations: 79.88 kB / 0.4969 GB, free: 7.578 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3049/0.307, allocations: 66.08 MB / 0.5614 GB, free: 4.051 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.0027/0.3097, allocations: 1.461 MB / 0.5629 GB, free: 2.582 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008572/0.3106, allocations: 443 kB / 0.5633 GB, free: 2.145 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.02e-05/0.3106, allocations: 4 kB / 0.5633 GB, free: 2.141 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 3.183e-05/0.3106, allocations: 3.938 kB / 0.5633 GB, free: 2.137 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 4.36e-05/0.3107, allocations: 7.938 kB / 0.5633 GB, free: 2.129 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002304/0.3109, allocations: 31.91 kB / 0.5633 GB, free: 2.098 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001166/0.311, allocations: 39.84 kB / 0.5634 GB, free: 2.059 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.897e-05/0.3111, allocations: 8 kB / 0.5634 GB, free: 2.051 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001318/0.3113, allocations: 19.92 kB / 0.5634 GB, free: 2.031 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.873e-05/0.3113, allocations: 15.92 kB / 0.5634 GB, free: 2.016 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.465e-05/0.3113, allocations: 4 kB / 0.5634 GB, free: 2.012 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.275e-05/0.3114, allocations: 11.98 kB / 0.5634 GB, free: 2 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.186e-05/0.3114, allocations: 15.92 kB / 0.5634 GB, free: 1.984 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.799e-05/0.3114, allocations: 11.94 kB / 0.5634 GB, free: 1.973 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001233/0.3115, allocations: 45.58 kB / 0.5635 GB, free: 1.93 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.019e-06/0.3116, allocations: 0 / 0.5635 GB, free: 1.93 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.3116, allocations: 0 / 0.5635 GB, free: 1.93 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.991e-06/0.3116, allocations: 0 / 0.5635 GB, free: 1.93 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.0004543/0.312, allocations: 274.2 kB / 0.5637 GB, free: 1.633 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.111e-05/0.3121, allocations: 12.03 kB / 0.5638 GB, free: 1.621 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.376e-05/0.3121, allocations: 192 / 0.5638 GB, free: 1.621 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.303e-05/0.3121, allocations: 38.69 kB / 0.5638 GB, free: 1.574 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001447/0.3123, allocations: 12.92 kB / 0.5638 GB, free: 1.562 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001988/0.3125, allocations: 118.5 kB / 0.5639 GB, free: 1.422 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.358e-05/0.3125, allocations: 4.375 kB / 0.5639 GB, free: 1.418 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.355e-05/0.3125, allocations: 384 / 0.5639 GB, free: 1.418 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001865/0.3127, allocations: 89.05 kB / 0.564 GB, free: 1.312 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.011e-05/0.3127, allocations: 3.984 kB / 0.564 GB, free: 1.309 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.458e-06/0.3127, allocations: 0 / 0.564 GB, free: 1.309 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.863e-06/0.3127, allocations: 0 / 0.564 GB, free: 1.309 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.307e-05/0.3128, allocations: 27.92 kB / 0.564 GB, free: 1.281 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003681/0.3132, allocations: 231.9 kB / 0.5643 GB, free: 1.012 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.469e-05/0.3133, allocations: 30.56 kB / 0.5643 GB, free: 0.9727 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.65e-05/0.3133, allocations: 12.92 kB / 0.5643 GB, free: 0.957 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.725e-05/0.3133, allocations: 4 kB / 0.5643 GB, free: 0.9531 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.396e-05/0.3134, allocations: 38.55 kB / 0.5643 GB, free: 0.9062 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 9.82e-07/0.3134, allocations: 0 / 0.5643 GB, free: 0.9062 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002406/0.3136, allocations: 65.72 kB / 0.5644 GB, free: 0.8359 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.269e-05/0.3136, allocations: 85.09 kB / 0.5645 GB, free: 0.7344 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.928e-05/0.3137, allocations: 105.8 kB / 0.5646 GB, free: 0.6211 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.092e-05/0.3138, allocations: 33.64 kB / 0.5646 GB, free: 0.582 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.918e-05/0.3138, allocations: 84.14 kB / 0.5647 GB, free: 0.4961 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.687e-05/0.3138, allocations: 4.328 kB / 0.5647 GB, free: 0.4922 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.055e-05/0.3139, allocations: 21.7 kB / 0.5647 GB, free: 476 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001488/0.314, allocations: 318.8 kB / 0.565 GB, free: 148 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.904e-05/0.3141, allocations: 11.98 kB / 0.565 GB, free: 136 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.69e-05/0.3141, allocations: 55.36 kB / 0.5651 GB, free: 68 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.863e-05/0.3142, allocations: 32.84 kB / 0.5651 GB, free: 32 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.402e-06/0.3142, allocations: 0 / 0.5651 GB, free: 32 kB / 398.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001406/0.3143, allocations: 57.67 kB / 0.5652 GB, free: 15.97 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.735e-05/0.3144, allocations: 8 kB / 0.5652 GB, free: 15.96 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.777e-06/0.3144, allocations: 0 / 0.5652 GB, free: 15.96 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.203e-05/0.3144, allocations: 0 / 0.5652 GB, free: 15.96 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.478e-05/0.3144, allocations: 4 kB / 0.5652 GB, free: 15.96 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.954e-06/0.3145, allocations: 3.984 kB / 0.5652 GB, free: 15.95 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.275e-05/0.3145, allocations: 7.953 kB / 0.5652 GB, free: 15.95 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.165e-06/0.3145, allocations: 8 kB / 0.5652 GB, free: 15.94 MB / 414.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.152e-05/0.3146, allocations: 115.2 kB / 0.5653 GB, free: 15.82 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.146e-05/0.3146, allocations: 11.97 kB / 0.5653 GB, free: 15.8 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.388e-05/0.3147, allocations: 7.562 kB / 0.5653 GB, free: 15.79 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.343e-06/0.3147, allocations: 0 / 0.5653 GB, free: 15.79 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.216e-06/0.3147, allocations: 0 / 0.5653 GB, free: 15.79 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.475e-06/0.3147, allocations: 4 kB / 0.5653 GB, free: 15.79 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001644/0.3148, allocations: 128.7 kB / 0.5655 GB, free: 15.62 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.91e-07/0.3148, allocations: 0 / 0.5655 GB, free: 15.62 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.759e-05/0.3149, allocations: 4 kB / 0.5655 GB, free: 15.62 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.507e-06/0.3149, allocations: 7.984 kB / 0.5655 GB, free: 15.61 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.087e-06/0.3149, allocations: 4 kB / 0.5655 GB, free: 15.61 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.3149, allocations: 0 / 0.5655 GB, free: 15.61 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.3149, allocations: 4 kB / 0.5655 GB, free: 15.6 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001712/0.3151, allocations: 147.4 kB / 0.5656 GB, free: 15.44 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.059e-05/0.3151, allocations: 7.984 kB / 0.5656 GB, free: 15.43 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.652e-05/0.3151, allocations: 0 / 0.5656 GB, free: 15.43 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.746e-05/0.3152, allocations: 4 kB / 0.5656 GB, free: 15.43 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.612e-05/0.3152, allocations: 11.98 kB / 0.5656 GB, free: 15.42 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.122e-06/0.3152, allocations: 8.016 kB / 0.5657 GB, free: 15.41 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.218e-05/0.3153, allocations: 95.16 kB / 0.5657 GB, free: 15.32 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3153, allocations: 0 / 0.5657 GB, free: 15.32 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002087/0.3155, allocations: 4 kB / 0.5658 GB, free: 15.31 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.0004834/0.316, allocations: 0.6853 MB / 0.5664 GB, free: 14.6 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001442/0.3161, allocations: 27.92 kB / 0.5664 GB, free: 14.57 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.3161, allocations: 0 / 0.5664 GB, free: 14.57 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.977e-05/0.3162, allocations: 20.02 kB / 0.5665 GB, free: 14.55 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002051/0.3164, allocations: 5.875 kB / 0.5665 GB, free: 14.55 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001291/0.3177, allocations: 1.266 MB / 0.5677 GB, free: 13.21 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.799e-05/0.3177, allocations: 63.34 kB / 0.5678 GB, free: 13.12 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 2.84e-05/0.3177, allocations: 0 / 0.5678 GB, free: 13.12 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.528e-05/0.3178, allocations: 15.5 kB / 0.5678 GB, free: 13.11 MB / 414.1 MB Notification: Performance of SimCode: time 2.91e-07/0.3178, allocations: 4 kB / 0.5678 GB, free: 13.11 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01993/0.3377, allocations: 1.756 MB / 0.5695 GB, free: 11.46 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.54/10.87, allocations: 12.05 kB / 0.5695 GB, free: 11.45 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.577022003941238] Failed to read output from testmodel.py, exit status != 0: ['time', 'hysteresis.y'] 11.027947445982136 11.048637266 10.733241227 Calling exit ...