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.001316/0.001316, allocations: 112.4 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.001464/0.001464, allocations: 206.2 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.458/1.458, allocations: 230.2 MB / 257.8 MB, free: 8.508 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.2893/0.2893, allocations: 46.89 MB / 361.1 MB, free: 4.656 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.002417/0.002417, allocations: 87.84 kB / 0.4967 GB, free: 7.855 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2774/0.2798, allocations: 65.97 MB / 0.5612 GB, free: 5.055 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.002575/0.2824, allocations: 1.488 MB / 0.5626 GB, free: 3.559 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008237/0.2832, allocations: 490.8 kB / 0.5631 GB, free: 3.074 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.545e-05/0.2833, allocations: 0 / 0.5631 GB, free: 3.074 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 2.312e-05/0.2833, allocations: 7.984 kB / 0.5631 GB, free: 3.066 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 4.25e-05/0.2833, allocations: 7.875 kB / 0.5631 GB, free: 3.059 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001962/0.2835, allocations: 19.98 kB / 0.5631 GB, free: 3.039 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 9.743e-05/0.2836, allocations: 43.83 kB / 0.5632 GB, free: 2.996 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.734e-05/0.2837, allocations: 8 kB / 0.5632 GB, free: 2.988 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001083/0.2838, allocations: 19.92 kB / 0.5632 GB, free: 2.969 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.096e-05/0.2839, allocations: 23.91 kB / 0.5632 GB, free: 2.945 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.133e-05/0.2839, allocations: 0 / 0.5632 GB, free: 2.945 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.794e-05/0.2839, allocations: 11.94 kB / 0.5632 GB, free: 2.934 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.274e-05/0.2839, allocations: 7.938 kB / 0.5632 GB, free: 2.926 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.568e-05/0.284, allocations: 19.92 kB / 0.5633 GB, free: 2.906 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001016/0.2841, allocations: 34.7 kB / 0.5633 GB, free: 2.875 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.935e-06/0.2841, allocations: 0 / 0.5633 GB, free: 2.875 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.2841, allocations: 0 / 0.5633 GB, free: 2.875 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.695e-06/0.2841, allocations: 4 kB / 0.5633 GB, free: 2.871 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.0004632/0.2845, allocations: 355.3 kB / 0.5636 GB, free: 2.477 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.879e-05/0.2846, allocations: 8.031 kB / 0.5636 GB, free: 2.469 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001435/0.2847, allocations: 8.938 kB / 0.5636 GB, free: 2.461 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000234/0.2849, allocations: 184.3 kB / 0.5638 GB, free: 2.242 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.137e-06/0.285, allocations: 384 / 0.5638 GB, free: 2.242 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.745e-06/0.285, allocations: 384 / 0.5638 GB, free: 2.242 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001548/0.2851, allocations: 67.64 kB / 0.5639 GB, free: 2.164 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.775e-06/0.2851, allocations: 3.938 kB / 0.5639 GB, free: 2.16 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.857e-06/0.2851, allocations: 0 / 0.5639 GB, free: 2.16 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.727e-06/0.2851, allocations: 0 / 0.5639 GB, free: 2.16 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.349e-05/0.2852, allocations: 23.98 kB / 0.5639 GB, free: 2.137 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003772/0.2856, allocations: 264.8 kB / 0.5642 GB, free: 1.828 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.268e-05/0.2857, allocations: 34.56 kB / 0.5642 GB, free: 1.785 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.687e-05/0.2857, allocations: 16.86 kB / 0.5642 GB, free: 1.766 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.73e-05/0.2858, allocations: 3.938 kB / 0.5642 GB, free: 1.762 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.129e-05/0.2858, allocations: 38.56 kB / 0.5643 GB, free: 1.715 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 1.082e-06/0.2858, allocations: 0 / 0.5643 GB, free: 1.715 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002371/0.286, allocations: 61.67 kB / 0.5643 GB, free: 1.648 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.737e-05/0.2861, allocations: 77.11 kB / 0.5644 GB, free: 1.555 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.114e-05/0.2862, allocations: 113.8 kB / 0.5645 GB, free: 1.434 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.066e-05/0.2862, allocations: 25.7 kB / 0.5645 GB, free: 1.402 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.589e-05/0.2863, allocations: 88.14 kB / 0.5646 GB, free: 1.312 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.695e-05/0.2863, allocations: 12.02 kB / 0.5646 GB, free: 1.301 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.737e-05/0.2863, allocations: 17.72 kB / 0.5646 GB, free: 1.277 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001379/0.2864, allocations: 314.8 kB / 0.5649 GB, free: 0.9609 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.218e-05/0.2865, allocations: 15.94 kB / 0.565 GB, free: 0.9453 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.344e-05/0.2866, allocations: 29.69 kB / 0.565 GB, free: 0.9102 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.19e-05/0.2866, allocations: 28.78 kB / 0.565 GB, free: 0.8789 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.2866, allocations: 4.031 kB / 0.565 GB, free: 0.875 MB / 398.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001338/0.2868, allocations: 61.67 kB / 0.5651 GB, free: 0.8086 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.162e-05/0.2868, allocations: 4 kB / 0.5651 GB, free: 0.8047 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.136e-06/0.2868, allocations: 0 / 0.5651 GB, free: 0.8047 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.097e-05/0.2868, allocations: 0 / 0.5651 GB, free: 0.8047 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.467e-05/0.2869, allocations: 4 kB / 0.5651 GB, free: 0.8008 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.548e-06/0.2869, allocations: 3.938 kB / 0.5651 GB, free: 0.7969 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.109e-05/0.2869, allocations: 11.94 kB / 0.5651 GB, free: 0.7852 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.227e-06/0.2869, allocations: 7.984 kB / 0.5651 GB, free: 0.7773 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 8.476e-05/0.287, allocations: 113.8 kB / 0.5652 GB, free: 0.6562 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.942e-05/0.2871, allocations: 8 kB / 0.5652 GB, free: 0.6484 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.053e-05/0.2871, allocations: 7.891 kB / 0.5652 GB, free: 0.6445 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.052e-06/0.2871, allocations: 0 / 0.5652 GB, free: 0.6445 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.063e-06/0.2871, allocations: 8 kB / 0.5652 GB, free: 0.6367 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.693e-06/0.2871, allocations: 0 / 0.5652 GB, free: 0.6367 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001785/0.2873, allocations: 169.5 kB / 0.5654 GB, free: 432 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.2873, allocations: 0 / 0.5654 GB, free: 432 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.999e-05/0.2873, allocations: 4 kB / 0.5654 GB, free: 428 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.523e-06/0.2873, allocations: 4 kB / 0.5654 GB, free: 424 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.652e-06/0.2873, allocations: 0 / 0.5654 GB, free: 424 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.2873, allocations: 3.938 kB / 0.5654 GB, free: 420 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.338e-06/0.2873, allocations: 4 kB / 0.5654 GB, free: 416 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001782/0.2875, allocations: 155.4 kB / 0.5656 GB, free: 244 kB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.692e-05/0.2875, allocations: 77.11 kB / 0.5656 GB, free: 148 kB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.652e-05/0.2876, allocations: 0 / 0.5656 GB, free: 148 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.253e-05/0.2877, allocations: 20.02 kB / 0.5656 GB, free: 128 kB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.732e-05/0.2877, allocations: 7.984 kB / 0.5657 GB, free: 120 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.696e-06/0.2877, allocations: 0 / 0.5657 GB, free: 120 kB / 398.1 MB Notification: Performance of sorting global known variables: time 5.404e-05/0.2878, allocations: 91.27 kB / 0.5657 GB, free: 28 kB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2878, allocations: 0 / 0.5657 GB, free: 28 kB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002169/0.288, allocations: 4 kB / 0.5657 GB, free: 24 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.0001134/0.2881, allocations: 91.25 kB / 0.5658 GB, free: 15.92 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001609/0.2882, allocations: 31.98 kB / 0.5659 GB, free: 15.89 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.2882, allocations: 0 / 0.5659 GB, free: 15.89 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.172e-05/0.2883, allocations: 15.92 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.0002126/0.2885, allocations: 16.97 kB / 0.5659 GB, free: 15.86 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002952/0.2888, allocations: 126.7 kB / 0.566 GB, free: 15.71 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003141/0.2891, allocations: 0.6768 MB / 0.5667 GB, free: 15.01 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 2.934e-05/0.2891, allocations: 8.062 kB / 0.5667 GB, free: 15 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.879e-05/0.2892, allocations: 11.42 kB / 0.5667 GB, free: 14.99 MB / 414.1 MB Notification: Performance of SimCode: time 3.2e-07/0.2892, allocations: 0 / 0.5667 GB, free: 14.99 MB / 414.1 MB Notification: Performance of Templates: time 0.002882/0.2921, allocations: 0.6033 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 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_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: 4.740227387286723]