Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.001301/0.001301, allocations: 107.1 kB / 20.44 MB, free: 1.195 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.00148/0.00148, allocations: 205.3 kB / 23.73 MB, free: 4.402 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.469/1.469, allocations: 230.6 MB / 257.5 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2472/0.2472, allocations: 46.95 MB / 360.9 MB, free: 4.031 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+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_1_0_ModelicaTest_Blocks_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Hysteresis,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Blocks_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002153/0.002153, allocations: 71.89 kB / 0.4961 GB, free: 7.715 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3031/0.3053, allocations: 66.04 MB / 0.5606 GB, free: 4.203 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.002665/0.3079, allocations: 1.461 MB / 0.562 GB, free: 2.73 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00083/0.3088, allocations: 451 kB / 0.5624 GB, free: 2.285 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.839e-05/0.3088, allocations: 0 / 0.5624 GB, free: 2.285 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 2.92e-05/0.3089, allocations: 3.938 kB / 0.5624 GB, free: 2.281 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.186e-05/0.3089, allocations: 11.92 kB / 0.5625 GB, free: 2.27 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002284/0.3091, allocations: 23.92 kB / 0.5625 GB, free: 2.246 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001043/0.3092, allocations: 35.86 kB / 0.5625 GB, free: 2.211 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.02e-05/0.3093, allocations: 11.98 kB / 0.5625 GB, free: 2.199 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001169/0.3095, allocations: 19.92 kB / 0.5625 GB, free: 2.18 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.918e-05/0.3095, allocations: 19.92 kB / 0.5626 GB, free: 2.16 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.461e-05/0.3095, allocations: 4 kB / 0.5626 GB, free: 2.156 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.344e-05/0.3096, allocations: 4 kB / 0.5626 GB, free: 2.152 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.116e-05/0.3096, allocations: 19.91 kB / 0.5626 GB, free: 2.133 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.506e-05/0.3096, allocations: 7.938 kB / 0.5626 GB, free: 2.125 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001192/0.3097, allocations: 37.66 kB / 0.5626 GB, free: 2.09 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.3097, allocations: 0 / 0.5626 GB, free: 2.09 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.3097, allocations: 0 / 0.5626 GB, free: 2.09 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.568e-06/0.3097, allocations: 0 / 0.5626 GB, free: 2.09 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.0004609/0.3102, allocations: 278.2 kB / 0.5629 GB, free: 1.789 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.71e-05/0.3102, allocations: 16.03 kB / 0.5629 GB, free: 1.773 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.342e-05/0.3103, allocations: 30.75 kB / 0.5629 GB, free: 1.734 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001351/0.3104, allocations: 12.92 kB / 0.563 GB, free: 1.723 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001972/0.3106, allocations: 126.4 kB / 0.5631 GB, free: 1.574 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.596e-06/0.3106, allocations: 4.312 kB / 0.5631 GB, free: 1.57 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.343e-05/0.3106, allocations: 4.375 kB / 0.5631 GB, free: 1.566 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000169/0.3108, allocations: 85.22 kB / 0.5632 GB, free: 1.465 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.688e-06/0.3108, allocations: 0 / 0.5632 GB, free: 1.465 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.756e-06/0.3108, allocations: 4 kB / 0.5632 GB, free: 1.461 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.838e-06/0.3108, allocations: 4 kB / 0.5632 GB, free: 1.457 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.501e-05/0.3109, allocations: 19.98 kB / 0.5632 GB, free: 1.438 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003947/0.3113, allocations: 235.8 kB / 0.5634 GB, free: 1.164 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001112/0.3114, allocations: 34.56 kB / 0.5635 GB, free: 1.121 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.746e-05/0.3115, allocations: 16.84 kB / 0.5635 GB, free: 1.102 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.393e-05/0.3115, allocations: 0 / 0.5635 GB, free: 1.102 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.148e-05/0.3115, allocations: 38.56 kB / 0.5635 GB, free: 1.055 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 8.42e-07/0.3115, allocations: 0 / 0.5635 GB, free: 1.055 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002247/0.3117, allocations: 65.61 kB / 0.5636 GB, free: 0.9844 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.359e-05/0.3118, allocations: 77.11 kB / 0.5636 GB, free: 0.8906 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.391e-05/0.3119, allocations: 113.8 kB / 0.5637 GB, free: 0.7695 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.966e-05/0.3119, allocations: 25.7 kB / 0.5638 GB, free: 0.7383 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.481e-05/0.312, allocations: 88.14 kB / 0.5639 GB, free: 0.6484 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.457e-05/0.312, allocations: 3.953 kB / 0.5639 GB, free: 0.6445 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.488e-05/0.312, allocations: 17.7 kB / 0.5639 GB, free: 0.6211 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001359/0.3121, allocations: 318.8 kB / 0.5642 GB, free: 308 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.054e-05/0.3122, allocations: 15.98 kB / 0.5642 GB, free: 292 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.554e-05/0.3123, allocations: 51.55 kB / 0.5642 GB, free: 228 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.858e-05/0.3123, allocations: 28.92 kB / 0.5643 GB, free: 196 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.3123, allocations: 3.938 kB / 0.5643 GB, free: 192 kB / 398.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001258/0.3125, allocations: 57.67 kB / 0.5643 GB, free: 128 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.274e-05/0.3125, allocations: 4 kB / 0.5643 GB, free: 124 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.336e-06/0.3125, allocations: 4 kB / 0.5643 GB, free: 120 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.16e-05/0.3125, allocations: 0 / 0.5643 GB, free: 120 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.446e-05/0.3126, allocations: 7.984 kB / 0.5643 GB, free: 112 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.052e-05/0.3126, allocations: 3.984 kB / 0.5644 GB, free: 108 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.484e-05/0.3126, allocations: 11.98 kB / 0.5644 GB, free: 96 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.779e-06/0.3126, allocations: 384 / 0.5644 GB, free: 96 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 0.0001036/0.3127, allocations: 121.8 kB / 0.5645 GB, free: 15.96 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.556e-05/0.3128, allocations: 4 kB / 0.5645 GB, free: 15.96 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.418e-05/0.3128, allocations: 7.625 kB / 0.5645 GB, free: 15.95 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.312e-06/0.3128, allocations: 3.938 kB / 0.5645 GB, free: 15.95 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.604e-06/0.3128, allocations: 4 kB / 0.5645 GB, free: 15.94 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.084e-06/0.3128, allocations: 0 / 0.5645 GB, free: 15.94 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001584/0.3129, allocations: 132.7 kB / 0.5646 GB, free: 15.77 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.3129, allocations: 4 kB / 0.5646 GB, free: 15.77 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.251e-05/0.313, allocations: 11.92 kB / 0.5646 GB, free: 15.75 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-06/0.313, allocations: 0 / 0.5646 GB, free: 15.75 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.134e-06/0.313, allocations: 0 / 0.5646 GB, free: 15.75 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.001e-06/0.313, allocations: 3.938 kB / 0.5646 GB, free: 15.75 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.72e-07/0.313, allocations: 0 / 0.5646 GB, free: 15.75 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001819/0.3132, allocations: 159.4 kB / 0.5648 GB, free: 15.58 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.394e-06/0.3132, allocations: 0 / 0.5648 GB, free: 15.58 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.809e-05/0.3132, allocations: 4 kB / 0.5648 GB, free: 15.57 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.523e-05/0.3133, allocations: 12.02 kB / 0.5648 GB, free: 15.56 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.225e-05/0.3133, allocations: 7.984 kB / 0.5648 GB, free: 15.55 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.626e-06/0.3133, allocations: 0 / 0.5648 GB, free: 15.55 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.742e-05/0.3134, allocations: 87.28 kB / 0.5649 GB, free: 15.47 MB / 414.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3134, allocations: 0 / 0.5649 GB, free: 15.47 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002257/0.3136, allocations: 4 kB / 0.5649 GB, free: 15.46 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.0004819/0.3141, allocations: 0.685 MB / 0.5656 GB, free: 14.75 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001489/0.3143, allocations: 36 kB / 0.5656 GB, free: 14.72 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.3143, allocations: 0 / 0.5656 GB, free: 14.72 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.902e-05/0.3143, allocations: 11.94 kB / 0.5656 GB, free: 14.71 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002136/0.3145, allocations: 10.95 kB / 0.5656 GB, free: 14.7 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00132/0.3158, allocations: 1.262 MB / 0.5669 GB, free: 13.36 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.395e-05/0.3159, allocations: 63.34 kB / 0.5669 GB, free: 13.28 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 3.637e-05/0.3159, allocations: 8.344 kB / 0.5669 GB, free: 13.27 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.451e-05/0.316, allocations: 11.44 kB / 0.5669 GB, free: 13.26 MB / 414.1 MB Notification: Performance of SimCode: time 3.01e-07/0.316, allocations: 0 / 0.5669 GB, free: 13.26 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02738/0.3434, allocations: 2.089 MB / 0.569 GB, free: 11.3 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.93/11.27, allocations: 7.938 kB / 0.569 GB, free: 11.29 MB / 414.1 MB " [Timeout remaining time 649] (rm -f ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Blocks_Hysteresis_fmu --startTime=0 --stopTime=3 --stepSize=0.000598325 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Blocks_Hysteresis.fmu > ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/Hysteresis/Hysteresis.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.21482430305332]