Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_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.001318/0.001318, allocations: 114.5 kB / 21.17 MB, free: 0.6172 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.001412/0.001412, allocations: 209.4 kB / 24.47 MB, free: 4.023 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.5/1.5, allocations: 230.2 MB / 257.8 MB, free: 8.5 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2361/0.2361, allocations: 46.89 MB / 361.1 MB, free: 4.641 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-beta.om/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: translateModel(ModelicaTest.Blocks.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5014,variableFilter="time|hysteresis.y",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Hysteresis") translateModel(ModelicaTest.Blocks.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5014,variableFilter="time|hysteresis.y",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Hysteresis") [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.00234/0.00234, allocations: 80.14 kB / 0.4967 GB, free: 7.848 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3768/0.3791, allocations: 65.99 MB / 0.5612 GB, free: 5.055 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.002971/0.3821, allocations: 1.476 MB / 0.5626 GB, free: 3.57 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00093/0.383, allocations: 494.8 kB / 0.5631 GB, free: 3.082 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.882e-05/0.3831, allocations: 0 / 0.5631 GB, free: 3.082 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 3.238e-05/0.3831, allocations: 3.938 kB / 0.5631 GB, free: 3.078 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 4.817e-05/0.3831, allocations: 3.938 kB / 0.5631 GB, free: 3.074 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000268/0.3834, allocations: 35.89 kB / 0.5631 GB, free: 3.039 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001159/0.3835, allocations: 35.86 kB / 0.5632 GB, free: 3.004 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000104/0.3836, allocations: 11.98 kB / 0.5632 GB, free: 2.992 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001303/0.3838, allocations: 23.92 kB / 0.5632 GB, free: 2.969 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.959e-05/0.3838, allocations: 19.91 kB / 0.5632 GB, free: 2.949 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.597e-05/0.3838, allocations: 7.938 kB / 0.5632 GB, free: 2.941 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.481e-05/0.3839, allocations: 4 kB / 0.5632 GB, free: 2.938 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.316e-05/0.3839, allocations: 4 kB / 0.5632 GB, free: 2.934 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.87e-05/0.3839, allocations: 15.92 kB / 0.5633 GB, free: 2.918 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001239/0.3841, allocations: 38.7 kB / 0.5633 GB, free: 2.883 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.928e-06/0.3841, allocations: 0 / 0.5633 GB, free: 2.883 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.3841, allocations: 0 / 0.5633 GB, free: 2.883 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.35e-06/0.3841, allocations: 4 kB / 0.5633 GB, free: 2.879 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.0005822/0.3846, allocations: 355.2 kB / 0.5636 GB, free: 2.484 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.967e-05/0.3847, allocations: 12.03 kB / 0.5636 GB, free: 2.473 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001649/0.3849, allocations: 12.92 kB / 0.5637 GB, free: 2.461 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000258/0.3851, allocations: 176.3 kB / 0.5638 GB, free: 2.25 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.059e-05/0.3851, allocations: 384 / 0.5638 GB, free: 2.25 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.595e-05/0.3851, allocations: 4.312 kB / 0.5638 GB, free: 2.246 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001701/0.3853, allocations: 67.7 kB / 0.5639 GB, free: 2.168 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.137e-06/0.3853, allocations: 0 / 0.5639 GB, free: 2.168 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.064e-05/0.3853, allocations: 0 / 0.5639 GB, free: 2.168 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.011e-06/0.3853, allocations: 4 kB / 0.5639 GB, free: 2.164 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.264e-05/0.3854, allocations: 19.98 kB / 0.5639 GB, free: 2.145 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004644/0.3859, allocations: 272.8 kB / 0.5642 GB, free: 1.828 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001147/0.386, allocations: 38.5 kB / 0.5642 GB, free: 1.781 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.34e-05/0.3861, allocations: 12.92 kB / 0.5642 GB, free: 1.766 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.237e-05/0.3861, allocations: 4 kB / 0.5642 GB, free: 1.762 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.862e-05/0.3861, allocations: 30.56 kB / 0.5643 GB, free: 1.723 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 1.032e-06/0.3861, allocations: 0 / 0.5643 GB, free: 1.723 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.000291/0.3864, allocations: 65.67 kB / 0.5643 GB, free: 1.652 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.59e-05/0.3865, allocations: 81.05 kB / 0.5644 GB, free: 1.555 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001107/0.3866, allocations: 109.8 kB / 0.5645 GB, free: 1.438 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.31e-05/0.3866, allocations: 25.7 kB / 0.5645 GB, free: 1.406 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.077e-05/0.3867, allocations: 92.12 kB / 0.5646 GB, free: 1.312 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.231e-05/0.3867, allocations: 7.891 kB / 0.5646 GB, free: 1.305 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.276e-05/0.3867, allocations: 17.72 kB / 0.5646 GB, free: 1.281 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001908/0.3869, allocations: 319 kB / 0.5649 GB, free: 0.9609 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.888e-05/0.387, allocations: 12 kB / 0.565 GB, free: 0.9492 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.311e-05/0.3871, allocations: 25.7 kB / 0.565 GB, free: 0.918 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.354e-05/0.3871, allocations: 28.78 kB / 0.565 GB, free: 0.8867 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.424e-06/0.3871, allocations: 0 / 0.565 GB, free: 0.8867 MB / 398.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001437/0.3873, allocations: 65.61 kB / 0.5651 GB, free: 0.8164 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.457e-05/0.3873, allocations: 4 kB / 0.5651 GB, free: 0.8125 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.538e-06/0.3873, allocations: 32 / 0.5651 GB, free: 0.8125 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.657e-05/0.3873, allocations: 8 kB / 0.5651 GB, free: 0.8047 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.131e-05/0.3874, allocations: 0 / 0.5651 GB, free: 0.8047 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.941e-06/0.3874, allocations: 3.938 kB / 0.5651 GB, free: 0.8008 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.58e-05/0.3875, allocations: 15.94 kB / 0.5651 GB, free: 0.7852 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.691e-06/0.3875, allocations: 0 / 0.5651 GB, free: 0.7852 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 0.0001022/0.3876, allocations: 117.9 kB / 0.5652 GB, free: 0.6602 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.715e-05/0.3876, allocations: 3.984 kB / 0.5652 GB, free: 0.6562 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.222e-05/0.3876, allocations: 7.531 kB / 0.5652 GB, free: 0.6523 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.142e-06/0.3876, allocations: 4 kB / 0.5652 GB, free: 0.6484 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.905e-06/0.3876, allocations: 3.984 kB / 0.5652 GB, free: 0.6445 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.983e-06/0.3876, allocations: 0 / 0.5652 GB, free: 0.6445 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001846/0.3878, allocations: 170 kB / 0.5654 GB, free: 440 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.02e-07/0.3878, allocations: 0 / 0.5654 GB, free: 440 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.625e-05/0.3879, allocations: 0 / 0.5654 GB, free: 440 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.01e-06/0.3879, allocations: 4 kB / 0.5654 GB, free: 436 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.023e-06/0.3879, allocations: 3.938 kB / 0.5654 GB, free: 432 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.12e-07/0.3879, allocations: 0 / 0.5654 GB, free: 432 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.12e-07/0.3879, allocations: 0 / 0.5654 GB, free: 432 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001825/0.3881, allocations: 159.4 kB / 0.5656 GB, free: 256 kB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.902e-05/0.3881, allocations: 81.11 kB / 0.5656 GB, free: 156 kB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.044e-05/0.3881, allocations: 4 kB / 0.5656 GB, free: 152 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.629e-05/0.3882, allocations: 11.98 kB / 0.5656 GB, free: 140 kB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.957e-05/0.3883, allocations: 7.984 kB / 0.5657 GB, free: 132 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.507e-06/0.3883, allocations: 0 / 0.5657 GB, free: 132 kB / 398.1 MB Notification: Performance of sorting global known variables: time 5.453e-05/0.3883, allocations: 95.3 kB / 0.5657 GB, free: 36 kB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3883, allocations: 0 / 0.5657 GB, free: 36 kB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002192/0.3885, allocations: 4 kB / 0.5657 GB, free: 32 kB / 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.0001588/0.3887, allocations: 95.3 kB / 0.5658 GB, free: 15.92 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001877/0.3889, allocations: 31.88 kB / 0.5659 GB, free: 15.89 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.963e-06/0.3889, allocations: 0 / 0.5659 GB, free: 15.89 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.007e-05/0.3889, allocations: 11.98 kB / 0.5659 GB, free: 15.88 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002206/0.3892, allocations: 14.19 kB / 0.5659 GB, free: 15.87 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003296/0.3895, allocations: 130.7 kB / 0.566 GB, free: 15.71 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003423/0.3898, allocations: 0.6807 MB / 0.5667 GB, free: 15.01 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 2.812e-05/0.3899, allocations: 0 / 0.5667 GB, free: 15.01 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.197e-05/0.3899, allocations: 7.438 kB / 0.5667 GB, free: 15 MB / 414.1 MB Notification: Performance of SimCode: time 6.71e-07/0.3899, allocations: 7.938 kB / 0.5667 GB, free: 14.99 MB / 414.1 MB Notification: Performance of Templates: time 0.003195/0.3931, allocations: 0.6071 MB / 0.5673 GB, free: 14.39 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Hysteresis.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Hysteresis.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Hysteresis.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Hysteresis.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Hysteresis.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Hysteresis -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Hysteresis_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/Hysteresis/Hysteresis.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_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: 5.15343612106517]