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.001812/0.001812, allocations: 116.4 kB / 20.43 MB, free: 1.457 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.00225/0.00225, allocations: 215.1 kB / 23.75 MB, free: 4.672 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.483/1.483, allocations: 230.5 MB / 257.4 MB, free: 8.023 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.2395/0.2395, allocations: 46.93 MB / 360.8 MB, free: 4.273 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.002302/0.002302, allocations: 76.11 kB / 0.4962 GB, free: 7.781 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3605/0.3628, allocations: 66.07 MB / 0.5607 GB, free: 4.43 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.003297/0.3661, allocations: 1.476 MB / 0.5622 GB, free: 2.945 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009673/0.3671, allocations: 486.8 kB / 0.5626 GB, free: 2.465 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.449e-05/0.3672, allocations: 4 kB / 0.5626 GB, free: 2.461 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 2.901e-05/0.3672, allocations: 7.938 kB / 0.5626 GB, free: 2.453 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.304e-05/0.3673, allocations: 3.938 kB / 0.5626 GB, free: 2.449 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002511/0.3675, allocations: 27.91 kB / 0.5627 GB, free: 2.422 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001327/0.3676, allocations: 39.84 kB / 0.5627 GB, free: 2.383 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001068/0.3677, allocations: 15.92 kB / 0.5627 GB, free: 2.367 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001389/0.3679, allocations: 12 kB / 0.5627 GB, free: 2.355 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.972e-05/0.368, allocations: 19.91 kB / 0.5627 GB, free: 2.336 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.363e-05/0.368, allocations: 4 kB / 0.5628 GB, free: 2.332 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.288e-05/0.368, allocations: 4 kB / 0.5628 GB, free: 2.328 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.2e-05/0.368, allocations: 19.92 kB / 0.5628 GB, free: 2.309 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.84e-05/0.3681, allocations: 11.94 kB / 0.5628 GB, free: 2.297 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001263/0.3682, allocations: 41.92 kB / 0.5628 GB, free: 2.258 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.3682, allocations: 0 / 0.5628 GB, free: 2.258 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.3682, allocations: 0 / 0.5628 GB, free: 2.258 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.322e-06/0.3682, allocations: 0 / 0.5628 GB, free: 2.258 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.0004704/0.3687, allocations: 278.2 kB / 0.5631 GB, free: 1.957 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.606e-05/0.3687, allocations: 8.031 kB / 0.5631 GB, free: 1.949 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.218e-05/0.3688, allocations: 34.75 kB / 0.5631 GB, free: 1.906 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001649/0.3689, allocations: 16.92 kB / 0.5631 GB, free: 1.891 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000218/0.3692, allocations: 126.3 kB / 0.5633 GB, free: 1.742 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.183e-05/0.3692, allocations: 4.375 kB / 0.5633 GB, free: 1.738 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.692e-05/0.3692, allocations: 8.375 kB / 0.5633 GB, free: 1.73 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001684/0.3694, allocations: 59.52 kB / 0.5633 GB, free: 1.66 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.007e-05/0.3694, allocations: 0 / 0.5633 GB, free: 1.66 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.879e-06/0.3694, allocations: 0 / 0.5633 GB, free: 1.66 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.512e-06/0.3694, allocations: 4 kB / 0.5633 GB, free: 1.656 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.575e-05/0.3695, allocations: 23.92 kB / 0.5634 GB, free: 1.633 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004123/0.3699, allocations: 235.9 kB / 0.5636 GB, free: 1.359 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.416e-05/0.37, allocations: 30.56 kB / 0.5636 GB, free: 1.32 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.014e-05/0.37, allocations: 16.91 kB / 0.5636 GB, free: 1.301 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.731e-05/0.37, allocations: 4 kB / 0.5636 GB, free: 1.297 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.142e-05/0.3701, allocations: 34.56 kB / 0.5637 GB, free: 1.254 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 1.052e-06/0.3701, allocations: 0 / 0.5637 GB, free: 1.254 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002591/0.3703, allocations: 61.61 kB / 0.5637 GB, free: 1.188 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.56e-05/0.3704, allocations: 81.11 kB / 0.5638 GB, free: 1.09 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.434e-05/0.3705, allocations: 109.8 kB / 0.5639 GB, free: 0.9727 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.412e-05/0.3705, allocations: 29.7 kB / 0.5639 GB, free: 0.9375 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.369e-05/0.3706, allocations: 92.2 kB / 0.564 GB, free: 0.8438 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.704e-05/0.3706, allocations: 3.953 kB / 0.564 GB, free: 0.8398 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.186e-05/0.3706, allocations: 21.7 kB / 0.5641 GB, free: 0.8125 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001453/0.3708, allocations: 318.8 kB / 0.5644 GB, free: 0.4922 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.07e-05/0.3708, allocations: 11.98 kB / 0.5644 GB, free: 492 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.348e-05/0.3709, allocations: 21.72 kB / 0.5644 GB, free: 464 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.322e-05/0.371, allocations: 32.81 kB / 0.5644 GB, free: 428 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.371, allocations: 0 / 0.5644 GB, free: 428 kB / 398.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001307/0.3711, allocations: 61.8 kB / 0.5645 GB, free: 360 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.394e-05/0.3711, allocations: 4 kB / 0.5645 GB, free: 356 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.604e-06/0.3711, allocations: 4 kB / 0.5645 GB, free: 352 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.334e-05/0.3711, allocations: 384 / 0.5645 GB, free: 352 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.835e-05/0.3712, allocations: 3.984 kB / 0.5645 GB, free: 348 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.498e-06/0.3712, allocations: 7.984 kB / 0.5645 GB, free: 340 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.871e-05/0.3713, allocations: 11.95 kB / 0.5645 GB, free: 328 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.38e-06/0.3713, allocations: 7.938 kB / 0.5645 GB, free: 320 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.0001003/0.3714, allocations: 119.1 kB / 0.5646 GB, free: 192 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.443e-05/0.3714, allocations: 3.938 kB / 0.5646 GB, free: 188 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.529e-05/0.3714, allocations: 11.62 kB / 0.5646 GB, free: 172 kB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.413e-06/0.3714, allocations: 0 / 0.5646 GB, free: 172 kB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.556e-06/0.3714, allocations: 0 / 0.5646 GB, free: 172 kB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.334e-06/0.3714, allocations: 0 / 0.5646 GB, free: 172 kB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000209/0.3716, allocations: 140.6 kB / 0.5648 GB, free: 15.99 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.133e-06/0.3716, allocations: 0 / 0.5648 GB, free: 15.99 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.899e-05/0.3717, allocations: 8 kB / 0.5648 GB, free: 15.98 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.473e-06/0.3717, allocations: 0 / 0.5648 GB, free: 15.98 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.104e-05/0.3717, allocations: 3.984 kB / 0.5648 GB, free: 15.98 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.3717, allocations: 0 / 0.5648 GB, free: 15.98 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.3717, allocations: 0 / 0.5648 GB, free: 15.98 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001818/0.3719, allocations: 151.4 kB / 0.5649 GB, free: 15.81 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.166e-05/0.3719, allocations: 8 kB / 0.5649 GB, free: 15.8 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.074e-05/0.3719, allocations: 8.016 kB / 0.565 GB, free: 15.8 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.333e-05/0.372, allocations: 8 kB / 0.565 GB, free: 15.79 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.786e-05/0.372, allocations: 7.984 kB / 0.565 GB, free: 15.78 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.587e-06/0.372, allocations: 0 / 0.565 GB, free: 15.78 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.671e-05/0.3721, allocations: 91.27 kB / 0.5651 GB, free: 15.69 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3721, allocations: 3.938 kB / 0.5651 GB, free: 15.69 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002168/0.3723, allocations: 8 kB / 0.5651 GB, free: 15.68 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.0004776/0.3728, allocations: 0.6812 MB / 0.5657 GB, free: 14.97 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001595/0.373, allocations: 23.98 kB / 0.5658 GB, free: 14.95 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.774e-06/0.373, allocations: 0 / 0.5658 GB, free: 14.95 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.337e-05/0.373, allocations: 19.92 kB / 0.5658 GB, free: 14.93 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002177/0.3732, allocations: 6.125 kB / 0.5658 GB, free: 14.93 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001347/0.3746, allocations: 1.266 MB / 0.567 GB, free: 13.58 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003935/0.375, allocations: 0.6845 MB / 0.5677 GB, free: 12.87 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 3.034e-05/0.375, allocations: 3.984 kB / 0.5677 GB, free: 12.87 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.508e-05/0.375, allocations: 15.44 kB / 0.5677 GB, free: 12.85 MB / 414.1 MB Notification: Performance of SimCode: time 3.21e-07/0.375, allocations: 0 / 0.5677 GB, free: 12.85 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02812/0.4032, allocations: 1.65 MB / 0.5693 GB, free: 11.3 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.14/11.55, allocations: 6.594 kB / 0.5693 GB, free: 11.3 MB / 414.1 MB " [Timeout remaining time 648] (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: 14.532793554011732]