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.001251/0.001251, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.001385/0.001385, allocations: 213.6 kB / 23.73 MB, free: 4.16 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.394/1.394, allocations: 230.5 MB / 257.4 MB, free: 7.789 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.2281/0.2281, allocations: 46.94 MB / 360.8 MB, free: 3.941 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Hysteresis,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00237/0.00237, allocations: 79.88 kB / 0.4961 GB, free: 7.582 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3188/0.3212, allocations: 66.09 MB / 0.5607 GB, free: 4.035 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.002668/0.3238, allocations: 1.457 MB / 0.5621 GB, free: 2.57 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008332/0.3247, allocations: 450.9 kB / 0.5625 GB, free: 2.125 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.9e-05/0.3247, allocations: 0 / 0.5625 GB, free: 2.125 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 2.747e-05/0.3247, allocations: 3.938 kB / 0.5625 GB, free: 2.121 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 4.04e-05/0.3248, allocations: 7.938 kB / 0.5625 GB, free: 2.113 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000217/0.325, allocations: 31.91 kB / 0.5626 GB, free: 2.082 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000102/0.3251, allocations: 35.92 kB / 0.5626 GB, free: 2.047 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.267e-05/0.3252, allocations: 7.969 kB / 0.5626 GB, free: 2.039 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001168/0.3253, allocations: 23.88 kB / 0.5626 GB, free: 2.016 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.671e-05/0.3254, allocations: 15.92 kB / 0.5627 GB, free: 2 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.652e-05/0.3254, allocations: 4 kB / 0.5627 GB, free: 1.996 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.095e-05/0.3254, allocations: 4 kB / 0.5627 GB, free: 1.992 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.631e-05/0.3254, allocations: 15.91 kB / 0.5627 GB, free: 1.977 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.423e-05/0.3255, allocations: 11.94 kB / 0.5627 GB, free: 1.965 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001144/0.3256, allocations: 45.59 kB / 0.5627 GB, free: 1.922 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.476e-06/0.3256, allocations: 4 kB / 0.5627 GB, free: 1.918 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.3256, allocations: 0 / 0.5627 GB, free: 1.918 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.559e-06/0.3256, allocations: 0 / 0.5627 GB, free: 1.918 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.0004305/0.326, allocations: 274.2 kB / 0.563 GB, free: 1.621 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.717e-05/0.3261, allocations: 8.031 kB / 0.563 GB, free: 1.613 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.837e-05/0.3261, allocations: 34.75 kB / 0.563 GB, free: 1.57 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001395/0.3262, allocations: 12.92 kB / 0.5631 GB, free: 1.559 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001972/0.3264, allocations: 126.4 kB / 0.5632 GB, free: 1.41 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.151e-05/0.3265, allocations: 4.375 kB / 0.5632 GB, free: 1.406 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.201e-05/0.3265, allocations: 4.375 kB / 0.5632 GB, free: 1.402 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001698/0.3266, allocations: 89.22 kB / 0.5633 GB, free: 1.297 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.264e-06/0.3266, allocations: 0 / 0.5633 GB, free: 1.297 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.365e-06/0.3267, allocations: 0 / 0.5633 GB, free: 1.297 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.272e-06/0.3267, allocations: 4 kB / 0.5633 GB, free: 1.293 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.142e-05/0.3267, allocations: 15.98 kB / 0.5633 GB, free: 1.277 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003748/0.3271, allocations: 239.8 kB / 0.5635 GB, free: 1 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.422e-05/0.3272, allocations: 30.56 kB / 0.5635 GB, free: 0.9609 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.113e-05/0.3273, allocations: 24.91 kB / 0.5636 GB, free: 0.9336 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.419e-05/0.3273, allocations: 0 / 0.5636 GB, free: 0.9336 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.755e-05/0.3273, allocations: 30.56 kB / 0.5636 GB, free: 0.8945 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 7.72e-07/0.3273, allocations: 0 / 0.5636 GB, free: 0.8945 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.000225/0.3275, allocations: 65.61 kB / 0.5637 GB, free: 0.8242 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.42e-05/0.3276, allocations: 77.11 kB / 0.5637 GB, free: 0.7305 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.994e-05/0.3277, allocations: 113.8 kB / 0.5638 GB, free: 0.6094 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.869e-05/0.3277, allocations: 25.7 kB / 0.5639 GB, free: 0.5781 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.982e-05/0.3278, allocations: 92.64 kB / 0.564 GB, free: 496 kB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.666e-05/0.3278, allocations: 3.953 kB / 0.564 GB, free: 492 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.814e-05/0.3278, allocations: 21.7 kB / 0.564 GB, free: 464 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001404/0.328, allocations: 314.8 kB / 0.5643 GB, free: 140 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.143e-05/0.328, allocations: 19.92 kB / 0.5643 GB, free: 120 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.921e-05/0.3281, allocations: 47.42 kB / 0.5643 GB, free: 60 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.539e-05/0.3282, allocations: 28.78 kB / 0.5644 GB, free: 28 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.3282, allocations: 3.938 kB / 0.5644 GB, free: 24 kB / 398.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001448/0.3283, allocations: 61.81 kB / 0.5644 GB, free: 15.96 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.305e-05/0.3283, allocations: 8.031 kB / 0.5644 GB, free: 15.95 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.677e-06/0.3283, allocations: 0 / 0.5644 GB, free: 15.95 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.354e-05/0.3284, allocations: 3.984 kB / 0.5644 GB, free: 15.95 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.169e-05/0.3284, allocations: 7.984 kB / 0.5645 GB, free: 15.94 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.468e-06/0.3284, allocations: 0 / 0.5645 GB, free: 15.94 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.788e-05/0.3285, allocations: 11.95 kB / 0.5645 GB, free: 15.93 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.839e-06/0.3285, allocations: 0 / 0.5645 GB, free: 15.93 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.181e-05/0.3286, allocations: 117.8 kB / 0.5646 GB, free: 15.8 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.316e-05/0.3286, allocations: 0 / 0.5646 GB, free: 15.8 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.974e-05/0.3286, allocations: 15.62 kB / 0.5646 GB, free: 15.78 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.263e-06/0.3286, allocations: 0 / 0.5646 GB, free: 15.78 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.948e-06/0.3286, allocations: 0 / 0.5646 GB, free: 15.78 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.023e-06/0.3286, allocations: 0 / 0.5646 GB, free: 15.78 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001634/0.3288, allocations: 132.7 kB / 0.5647 GB, free: 15.61 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.12e-07/0.3288, allocations: 0 / 0.5647 GB, free: 15.61 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.16e-05/0.3288, allocations: 11.92 kB / 0.5647 GB, free: 15.6 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.433e-06/0.3288, allocations: 0 / 0.5647 GB, free: 15.6 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.783e-06/0.3289, allocations: 0 / 0.5647 GB, free: 15.6 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.52e-07/0.3289, allocations: 0 / 0.5647 GB, free: 15.6 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.12e-07/0.3289, allocations: 0 / 0.5647 GB, free: 15.6 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001773/0.329, allocations: 167.4 kB / 0.5649 GB, free: 15.42 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.404e-06/0.329, allocations: 0 / 0.5649 GB, free: 15.42 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.583e-05/0.3291, allocations: 0 / 0.5649 GB, free: 15.42 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.982e-05/0.3291, allocations: 8 kB / 0.5649 GB, free: 15.41 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.265e-05/0.3292, allocations: 7.984 kB / 0.5649 GB, free: 15.4 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.104e-05/0.3292, allocations: 7.984 kB / 0.5649 GB, free: 15.39 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001068/0.3293, allocations: 79.28 kB / 0.565 GB, free: 15.32 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3293, allocations: 4 kB / 0.565 GB, free: 15.31 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002124/0.3295, allocations: 8.281 kB / 0.565 GB, free: 15.3 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.0004683/0.33, allocations: 0.6889 MB / 0.5657 GB, free: 14.59 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001342/0.3301, allocations: 27.98 kB / 0.5657 GB, free: 14.56 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.3301, allocations: 0 / 0.5657 GB, free: 14.56 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.963e-05/0.3302, allocations: 19.92 kB / 0.5657 GB, free: 14.54 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002027/0.3304, allocations: 3.938 kB / 0.5657 GB, free: 14.54 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001312/0.3317, allocations: 1.27 MB / 0.567 GB, free: 13.19 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.043e-05/0.3317, allocations: 63.34 kB / 0.567 GB, free: 13.11 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 3.161e-05/0.3318, allocations: 0 / 0.567 GB, free: 13.11 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.239e-05/0.3318, allocations: 15.44 kB / 0.567 GB, free: 13.09 MB / 414.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3318, allocations: 0 / 0.567 GB, free: 13.09 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02791/0.3597, allocations: 2.101 MB / 0.5691 GB, free: 11.09 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.61/10.97, allocations: 11.94 kB / 0.5691 GB, free: 11.08 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] diffSimulationResults("ModelicaTest_trunk_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_trunk_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: 13.725384188815951]