Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001366/0.001366, allocations: 73.25 kB / 21.24 MB, free: 0.5547 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001647/0.001647, allocations: 159.2 kB / 24.5 MB, free: 3.715 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.469/1.469, allocations: 177.2 MB / 204.9 MB, free: 8.98 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2244/0.2244, allocations: 32.82 MB / 294.1 MB, free: 24 kB / 270.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestStrings,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings") translateModel(ModelicaTest.Utilities.TestStrings,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings") [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002101/0.002101, allocations: 66.69 kB / 440.5 MB, free: 9.469 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3153/0.3174, allocations: 65.44 MB / 0.4941 GB, free: 31.6 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStrings): time 0.001514/0.3189, allocations: 495.4 kB / 0.4946 GB, free: 31.31 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001911/0.3208, allocations: 1.275 MB / 0.4958 GB, free: 30.54 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.437e-05/0.3208, allocations: 0 / 0.4958 GB, free: 30.54 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 1.744e-05/0.3208, allocations: 0 / 0.4958 GB, free: 30.54 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 5.06e-06/0.3208, allocations: 0 / 0.4958 GB, free: 30.54 MB / 446.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:4:3-220:14:writable] Warning: Pure function 'ModelicaTest.Utilities.Strings' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.001245/0.3221, allocations: 0.5723 MB / 0.4964 GB, free: 30.29 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 5.104e-05/0.3221, allocations: 4 kB / 0.4964 GB, free: 30.29 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.291e-05/0.3222, allocations: 14.52 kB / 0.4964 GB, free: 30.28 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.633e-05/0.3222, allocations: 0 / 0.4964 GB, free: 30.28 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.309e-05/0.3222, allocations: 4 kB / 0.4964 GB, free: 30.28 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 5.901e-06/0.3222, allocations: 0 / 0.4964 GB, free: 30.28 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01594/0.3382, allocations: 2.539 MB / 0.4989 GB, free: 29.57 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 1.051e-05/0.3382, allocations: 3.938 kB / 0.4989 GB, free: 29.57 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 2.088e-05/0.3382, allocations: 3.984 kB / 0.4989 GB, free: 29.56 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002748/0.3385, allocations: 161.1 kB / 0.4991 GB, free: 29.5 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.417e-06/0.3385, allocations: 0 / 0.4991 GB, free: 29.5 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.3385, allocations: 3 kB / 0.4991 GB, free: 29.5 MB / 446.1 MB Notification: Performance of Transformations before backend: time 5.47e-06/0.3385, allocations: 4 kB / 0.4991 GB, free: 29.5 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0002578/0.3387, allocations: 305 kB / 0.4994 GB, free: 29.2 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.042e-05/0.3388, allocations: 10.38 kB / 0.4994 GB, free: 29.2 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.732e-05/0.3388, allocations: 0.9375 kB / 0.4994 GB, free: 29.2 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.125e-05/0.3388, allocations: 102.5 kB / 0.4995 GB, free: 29.07 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.013e-06/0.3388, allocations: 384 / 0.4995 GB, free: 29.07 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.042e-05/0.3389, allocations: 7.594 kB / 0.4995 GB, free: 29.07 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.161e-05/0.3389, allocations: 58.95 kB / 0.4995 GB, free: 29 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.023e-06/0.3389, allocations: 3.188 kB / 0.4995 GB, free: 29 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.833e-06/0.3389, allocations: 0 / 0.4995 GB, free: 29 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.487e-06/0.3389, allocations: 3.938 kB / 0.4995 GB, free: 29 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.996e-05/0.339, allocations: 33.64 kB / 0.4996 GB, free: 28.96 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.195e-05/0.339, allocations: 100.7 kB / 0.4997 GB, free: 28.83 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.995e-05/0.3391, allocations: 47.09 kB / 0.4997 GB, free: 28.78 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.405e-05/0.3391, allocations: 30.56 kB / 0.4997 GB, free: 28.74 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.607e-06/0.3391, allocations: 0 / 0.4997 GB, free: 28.74 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.449e-05/0.3391, allocations: 59.58 kB / 0.4998 GB, free: 28.67 MB / 446.1 MB Notification: Performance of pre-optimization done (n=1): time 8.32e-07/0.3391, allocations: 0 / 0.4998 GB, free: 28.67 MB / 446.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001474/0.3393, allocations: 128.4 kB / 0.4999 GB, free: 28.53 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.312e-05/0.3393, allocations: 80.45 kB / 0.5 GB, free: 28.43 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.695e-05/0.3393, allocations: 93.98 kB / 0.5001 GB, free: 28.33 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 5.41e-06/0.3393, allocations: 25.7 kB / 0.5001 GB, free: 28.3 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.398e-06/0.3393, allocations: 80.14 kB / 0.5002 GB, free: 28.22 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.685e-05/0.3393, allocations: 0 / 0.5002 GB, free: 28.22 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.372e-05/0.3394, allocations: 16.84 kB / 0.5002 GB, free: 28.2 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.78e-05/0.3394, allocations: 310.8 kB / 0.5005 GB, free: 27.89 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.402e-05/0.3394, allocations: 32.39 kB / 0.5005 GB, free: 27.86 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.867e-06/0.3394, allocations: 25.7 kB / 0.5006 GB, free: 27.82 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.879e-05/0.3394, allocations: 59.58 kB / 0.5006 GB, free: 27.75 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.684e-06/0.3394, allocations: 2.75 kB / 0.5006 GB, free: 27.75 MB / 446.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.15e-05/0.3395, allocations: 99.02 kB / 0.5007 GB, free: 27.65 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.021e-05/0.3395, allocations: 32.17 kB / 0.5007 GB, free: 27.62 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.519e-06/0.3395, allocations: 3.938 kB / 0.5007 GB, free: 27.61 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.443e-05/0.3395, allocations: 0 / 0.5007 GB, free: 27.61 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.81e-07/0.3395, allocations: 0 / 0.5007 GB, free: 27.61 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.907e-06/0.3395, allocations: 0 / 0.5007 GB, free: 27.61 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.37e-05/0.3396, allocations: 3.953 kB / 0.5007 GB, free: 27.61 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.031e-06/0.3396, allocations: 3 kB / 0.5007 GB, free: 27.61 MB / 446.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: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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 4.018e-05/0.3396, allocations: 138.1 kB / 0.5009 GB, free: 27.46 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.404e-06/0.3396, allocations: 0 / 0.5009 GB, free: 27.46 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.667e-06/0.3396, allocations: 14.97 kB / 0.5009 GB, free: 27.45 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.51e-07/0.3396, allocations: 0 / 0.5009 GB, free: 27.45 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.946e-06/0.3396, allocations: 3.938 kB / 0.5009 GB, free: 27.45 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.774e-06/0.3396, allocations: 0 / 0.5009 GB, free: 27.45 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.444e-05/0.3397, allocations: 96.42 kB / 0.501 GB, free: 27.32 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.3397, allocations: 7.422 kB / 0.501 GB, free: 27.32 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.51e-07/0.3397, allocations: 0 / 0.501 GB, free: 27.32 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.022e-06/0.3397, allocations: 0 / 0.501 GB, free: 27.32 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.059e-06/0.3397, allocations: 3.219 kB / 0.501 GB, free: 27.32 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.3397, allocations: 3.938 kB / 0.501 GB, free: 27.32 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.3397, allocations: 0 / 0.501 GB, free: 27.32 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.601e-05/0.3397, allocations: 124.6 kB / 0.5011 GB, free: 27.18 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.338e-06/0.3397, allocations: 7.875 kB / 0.5011 GB, free: 27.17 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.064e-05/0.3398, allocations: 3.125 kB / 0.5011 GB, free: 27.17 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.297e-06/0.3398, allocations: 3.938 kB / 0.5011 GB, free: 27.17 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.416e-06/0.3398, allocations: 0 / 0.5011 GB, free: 27.17 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.925e-06/0.3398, allocations: 3.984 kB / 0.5011 GB, free: 27.16 MB / 446.1 MB Notification: Performance of sorting global known variables: time 9.799e-06/0.3398, allocations: 75.28 kB / 0.5012 GB, free: 27.09 MB / 446.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3398, allocations: 3.062 kB / 0.5012 GB, free: 27.09 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002644/0.34, allocations: 67.72 kB / 0.5013 GB, free: 27.08 MB / 446.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 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.0008976/0.3409, allocations: 424.2 kB / 0.5017 GB, free: 26.91 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 8.016e-05/0.341, allocations: 112.9 kB / 0.5018 GB, free: 26.78 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.341, allocations: 0 / 0.5018 GB, free: 26.78 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 2.262e-05/0.341, allocations: 87.67 kB / 0.5019 GB, free: 26.68 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001186/0.3412, allocations: 128 / 0.5019 GB, free: 26.68 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000135/0.3413, allocations: 109.9 kB / 0.502 GB, free: 26.55 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.271e-05/0.3413, allocations: 61.58 kB / 0.502 GB, free: 26.48 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 5.43e-06/0.3413, allocations: 3.984 kB / 0.502 GB, free: 26.47 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.012e-05/0.3413, allocations: 11.59 kB / 0.5021 GB, free: 26.46 MB / 446.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3413, allocations: 0 / 0.5021 GB, free: 26.46 MB / 446.1 MB Notification: Performance of Templates: time 0.004348/0.3457, allocations: 2.151 MB / 0.5042 GB, free: 26.24 MB / 446.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings.sim & ./ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestStrings/TestStrings.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings.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.184255033964291]