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.001492/0.001492, allocations: 113.1 kB / 21.85 MB, free: 80 kB / 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.001625/0.001625, allocations: 216.8 kB / 25.13 MB, free: 3.609 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.389/1.389, allocations: 230.4 MB / 258.7 MB, free: 8.051 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.214/0.214, allocations: 46.94 MB / 362 MB, free: 4.223 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.002349/0.002349, allocations: 75.88 kB / 0.4978 GB, free: 7.406 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2743/0.2766, allocations: 66.09 MB / 0.5623 GB, free: 4.273 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.002714/0.2793, allocations: 1.476 MB / 0.5638 GB, free: 2.789 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008192/0.2802, allocations: 482.8 kB / 0.5642 GB, free: 2.312 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.852e-05/0.2802, allocations: 0 / 0.5642 GB, free: 2.312 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 2.865e-05/0.2802, allocations: 3.938 kB / 0.5642 GB, free: 2.309 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 3.587e-05/0.2803, allocations: 3.938 kB / 0.5642 GB, free: 2.305 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000206/0.2805, allocations: 39.91 kB / 0.5643 GB, free: 2.266 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 9.792e-05/0.2806, allocations: 35.8 kB / 0.5643 GB, free: 2.23 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.817e-05/0.2807, allocations: 15.92 kB / 0.5643 GB, free: 2.215 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001064/0.2808, allocations: 19.98 kB / 0.5643 GB, free: 2.195 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.461e-05/0.2808, allocations: 15.92 kB / 0.5643 GB, free: 2.18 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.361e-05/0.2808, allocations: 4 kB / 0.5644 GB, free: 2.176 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.522e-05/0.2809, allocations: 4 kB / 0.5644 GB, free: 2.172 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.315e-05/0.2809, allocations: 15.91 kB / 0.5644 GB, free: 2.156 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.599e-05/0.2809, allocations: 11.94 kB / 0.5644 GB, free: 2.145 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001024/0.281, allocations: 39.55 kB / 0.5644 GB, free: 2.109 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.281, allocations: 4 kB / 0.5644 GB, free: 2.105 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.281, allocations: 0 / 0.5644 GB, free: 2.105 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.629e-06/0.281, allocations: 0 / 0.5644 GB, free: 2.105 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.0004008/0.2814, allocations: 277 kB / 0.5647 GB, free: 1.809 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.176e-05/0.2815, allocations: 8.031 kB / 0.5647 GB, free: 1.801 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001364/0.2816, allocations: 12.92 kB / 0.5647 GB, free: 1.789 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001913/0.2818, allocations: 130.3 kB / 0.5648 GB, free: 1.637 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.011e-05/0.2818, allocations: 4.375 kB / 0.5648 GB, free: 1.633 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.005e-06/0.2818, allocations: 4.375 kB / 0.5648 GB, free: 1.629 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001626/0.282, allocations: 89.42 kB / 0.5649 GB, free: 1.523 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.194e-06/0.282, allocations: 0 / 0.5649 GB, free: 1.523 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.038e-05/0.282, allocations: 4 kB / 0.5649 GB, free: 1.52 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.149e-06/0.282, allocations: 3.984 kB / 0.5649 GB, free: 1.516 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.532e-05/0.2821, allocations: 23.97 kB / 0.565 GB, free: 1.492 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003514/0.2824, allocations: 239.9 kB / 0.5652 GB, free: 1.215 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.38e-05/0.2825, allocations: 30.62 kB / 0.5652 GB, free: 1.176 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.329e-05/0.2826, allocations: 12.86 kB / 0.5652 GB, free: 1.16 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.093e-05/0.2826, allocations: 0 / 0.5652 GB, free: 1.16 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.88e-05/0.2826, allocations: 34.55 kB / 0.5653 GB, free: 1.117 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 8.32e-07/0.2826, allocations: 0 / 0.5653 GB, free: 1.117 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002206/0.2828, allocations: 69.62 kB / 0.5653 GB, free: 1.043 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.823e-05/0.2829, allocations: 81.09 kB / 0.5654 GB, free: 0.9453 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.713e-05/0.283, allocations: 113.8 kB / 0.5655 GB, free: 0.8242 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.944e-05/0.283, allocations: 29.7 kB / 0.5655 GB, free: 0.7891 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.886e-05/0.283, allocations: 80.14 kB / 0.5656 GB, free: 0.707 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.077e-05/0.2831, allocations: 15.89 kB / 0.5656 GB, free: 0.6914 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.385e-05/0.2831, allocations: 13.72 kB / 0.5656 GB, free: 0.6719 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001283/0.2832, allocations: 323 kB / 0.566 GB, free: 356 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.985e-05/0.2833, allocations: 8 kB / 0.566 GB, free: 348 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.43e-05/0.2833, allocations: 51.41 kB / 0.566 GB, free: 284 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.585e-05/0.2834, allocations: 36.72 kB / 0.566 GB, free: 244 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.2834, allocations: 0 / 0.566 GB, free: 244 kB / 398.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001235/0.2835, allocations: 53.67 kB / 0.5661 GB, free: 184 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.107e-05/0.2836, allocations: 12.03 kB / 0.5661 GB, free: 172 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.548e-06/0.2836, allocations: 0 / 0.5661 GB, free: 172 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.291e-05/0.2836, allocations: 0 / 0.5661 GB, free: 172 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.018e-05/0.2836, allocations: 4 kB / 0.5661 GB, free: 168 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.797e-06/0.2836, allocations: 0 / 0.5661 GB, free: 168 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.745e-05/0.2837, allocations: 11.94 kB / 0.5661 GB, free: 156 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.734e-06/0.2837, allocations: 4 kB / 0.5661 GB, free: 152 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 8.26e-05/0.2838, allocations: 114.7 kB / 0.5662 GB, free: 28 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.763e-05/0.2838, allocations: 11.94 kB / 0.5662 GB, free: 16 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.218e-05/0.2838, allocations: 7.609 kB / 0.5663 GB, free: 4 kB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.232e-06/0.2838, allocations: 0 / 0.5663 GB, free: 4 kB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.765e-06/0.2838, allocations: 0 / 0.5663 GB, free: 4 kB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.038e-06/0.2838, allocations: 4 kB / 0.5663 GB, free: 0 / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001687/0.284, allocations: 136.7 kB / 0.5664 GB, free: 15.82 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.01e-07/0.284, allocations: 0 / 0.5664 GB, free: 15.82 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.776e-05/0.284, allocations: 7.938 kB / 0.5664 GB, free: 15.82 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.452e-06/0.2841, allocations: 0 / 0.5664 GB, free: 15.82 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.101e-06/0.2841, allocations: 0 / 0.5664 GB, free: 15.82 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.2841, allocations: 0 / 0.5664 GB, free: 15.82 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.548e-06/0.2841, allocations: 11.98 kB / 0.5664 GB, free: 15.8 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001615/0.2842, allocations: 151.4 kB / 0.5666 GB, free: 15.64 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.782e-06/0.2842, allocations: 0 / 0.5666 GB, free: 15.64 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.929e-05/0.2843, allocations: 8 kB / 0.5666 GB, free: 15.63 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.293e-05/0.2843, allocations: 7.984 kB / 0.5666 GB, free: 15.62 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.795e-05/0.2844, allocations: 7.984 kB / 0.5666 GB, free: 15.62 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.867e-06/0.2844, allocations: 4.031 kB / 0.5666 GB, free: 15.61 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.743e-05/0.2844, allocations: 95.58 kB / 0.5667 GB, free: 15.52 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2844, allocations: 0 / 0.5667 GB, free: 15.52 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000213/0.2846, allocations: 4 kB / 0.5667 GB, free: 15.52 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 8.374e-05/0.2847, allocations: 99.19 kB / 0.5668 GB, free: 15.41 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001381/0.2849, allocations: 24.12 kB / 0.5668 GB, free: 15.39 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.552e-06/0.2849, allocations: 0 / 0.5668 GB, free: 15.39 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.138e-05/0.2849, allocations: 19.98 kB / 0.5668 GB, free: 15.37 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002013/0.2851, allocations: 6.125 kB / 0.5668 GB, free: 15.36 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002648/0.2854, allocations: 126.9 kB / 0.5669 GB, free: 15.21 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002907/0.2857, allocations: 0.6807 MB / 0.5676 GB, free: 14.51 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 2.718e-05/0.2857, allocations: 4.078 kB / 0.5676 GB, free: 14.5 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.299e-05/0.2857, allocations: 19.42 kB / 0.5676 GB, free: 14.48 MB / 414.1 MB Notification: Performance of SimCode: time 3e-07/0.2857, allocations: 4.062 kB / 0.5676 GB, free: 14.48 MB / 414.1 MB Notification: Performance of Templates: time 0.0028/0.2885, allocations: 0.5953 MB / 0.5682 GB, free: 13.89 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 gbode -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/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-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: 4.558085735887289]