Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.001819/0.001819, allocations: 84.34 kB / 20.95 MB, free: 3.449 MB / 18.57 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.001942/0.001942, allocations: 165.3 kB / 24.27 MB, free: 144 kB / 18.57 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.576/1.576, allocations: 177.1 MB / 204.6 MB, free: 5.582 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.3365/0.3365, allocations: 34.26 MB / 295.3 MB, free: 0.6445 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.1.0_ModelicaTest.Utilities.TestStrings") translateModel(ModelicaTest.Utilities.TestStrings,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStrings") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.613e-06/1.613e-06, allocations: 0 / 377.3 MB, free: 2.965 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.747e-05/2.908e-05, allocations: 2.312 kB / 377.3 MB, free: 2.961 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStrings): time 0.001544/0.001573, allocations: 0.4886 MB / 377.7 MB, free: 2.473 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.003016/0.004589, allocations: 1.258 MB / 379 MB, free: 1.207 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.525e-05/0.004605, allocations: 4 kB / 379 MB, free: 1.203 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.213e-05/0.004617, allocations: 0 / 379 MB, free: 1.203 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 5.5e-06/0.004622, allocations: 0 / 379 MB, free: 1.203 MB / 346.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/Utilities.mo:4:3-219: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.001705/0.006328, allocations: 0.5878 MB / 379.6 MB, free: 0.6133 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 4.931e-05/0.006377, allocations: 4 kB / 379.6 MB, free: 0.6094 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.429e-05/0.006411, allocations: 4 kB / 379.6 MB, free: 0.6055 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.471e-05/0.006436, allocations: 0 / 379.6 MB, free: 0.6055 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.17e-05/0.006458, allocations: 3.938 kB / 379.6 MB, free: 0.6016 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 8.076e-06/0.006466, allocations: 4 kB / 379.6 MB, free: 0.5977 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02047/0.02694, allocations: 3.744 MB / 383.4 MB, free: 13.81 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 1.265e-05/0.02695, allocations: 0 / 383.4 MB, free: 13.81 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 3.433e-05/0.02698, allocations: 4 kB / 383.4 MB, free: 13.81 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005591/0.02754, allocations: 207.6 kB / 383.6 MB, free: 13.61 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.177e-06/0.02755, allocations: 3.938 kB / 383.6 MB, free: 13.6 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.934e-06/0.02755, allocations: 0 / 383.6 MB, free: 13.6 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.971e-06/0.02755, allocations: 0 / 383.6 MB, free: 13.6 MB / 362.7 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.0004586/0.02801, allocations: 303.9 kB / 383.9 MB, free: 13.27 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.141e-05/0.02805, allocations: 12.03 kB / 383.9 MB, free: 13.26 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.615e-05/0.0281, allocations: 0.9375 kB / 383.9 MB, free: 13.26 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001041/0.02821, allocations: 105.8 kB / 384 MB, free: 13.13 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.364e-05/0.02822, allocations: 384 / 384 MB, free: 13.13 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.787e-06/0.02823, allocations: 384 / 384 MB, free: 13.13 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001173/0.02834, allocations: 59.95 kB / 384 MB, free: 13.06 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.629e-05/0.02836, allocations: 192 / 384 MB, free: 13.06 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.646e-05/0.02838, allocations: 8.125 kB / 384 MB, free: 13.05 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.338e-06/0.02838, allocations: 0 / 384 MB, free: 13.05 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.261e-05/0.02842, allocations: 29.64 kB / 384.1 MB, free: 13.02 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001444/0.02857, allocations: 105.3 kB / 384.2 MB, free: 12.88 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.282e-05/0.02864, allocations: 44.31 kB / 384.2 MB, free: 12.82 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.503e-05/0.02868, allocations: 34.55 kB / 384.3 MB, free: 12.78 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.186e-06/0.02868, allocations: 0 / 384.3 MB, free: 12.78 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.561e-05/0.02875, allocations: 56.27 kB / 384.3 MB, free: 12.71 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 9.92e-07/0.02875, allocations: 8 kB / 384.3 MB, free: 12.7 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002641/0.02902, allocations: 122.7 kB / 384.4 MB, free: 12.56 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.343e-05/0.02909, allocations: 81.05 kB / 384.5 MB, free: 12.46 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.742e-05/0.02916, allocations: 89.86 kB / 384.6 MB, free: 12.36 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.148e-05/0.02918, allocations: 25.7 kB / 384.6 MB, free: 12.33 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.802e-05/0.02923, allocations: 84.27 kB / 384.7 MB, free: 12.25 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.76e-05/0.02924, allocations: 0 / 384.7 MB, free: 12.25 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.431e-05/0.02929, allocations: 17.72 kB / 384.7 MB, free: 12.22 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001767/0.02946, allocations: 310.8 kB / 385 MB, free: 11.91 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.072e-05/0.0295, allocations: 29.7 kB / 385.1 MB, free: 11.88 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.604e-05/0.02952, allocations: 25.7 kB / 385.1 MB, free: 11.84 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.219e-05/0.02959, allocations: 64.25 kB / 385.1 MB, free: 11.77 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.02959, allocations: 0 / 385.1 MB, free: 11.77 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001118/0.02971, allocations: 93.05 kB / 385.2 MB, free: 11.66 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.257e-05/0.02975, allocations: 33.8 kB / 385.3 MB, free: 11.62 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.275e-06/0.02976, allocations: 3.984 kB / 385.3 MB, free: 11.61 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.066e-05/0.02978, allocations: 4 kB / 385.3 MB, free: 11.61 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.41e-07/0.02978, allocations: 0 / 385.3 MB, free: 11.61 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.304e-06/0.02979, allocations: 3.938 kB / 385.3 MB, free: 11.61 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.538e-05/0.0298, allocations: 0 / 385.3 MB, free: 11.61 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.161e-06/0.02981, allocations: 0 / 385.3 MB, free: 11.61 MB / 362.7 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 0.0001158/0.02992, allocations: 135.5 kB / 385.4 MB, free: 11.46 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.197e-06/0.02993, allocations: 0 / 385.4 MB, free: 11.46 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.947e-06/0.02994, allocations: 3 kB / 385.4 MB, free: 11.46 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.462e-06/0.02994, allocations: 4 kB / 385.4 MB, free: 11.45 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.662e-06/0.02995, allocations: 7.938 kB / 385.4 MB, free: 11.45 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.364e-06/0.02995, allocations: 0 / 385.4 MB, free: 11.45 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001062/0.03006, allocations: 109.2 kB / 385.5 MB, free: 11.31 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.03006, allocations: 0 / 385.5 MB, free: 11.31 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.92e-07/0.03006, allocations: 0 / 385.5 MB, free: 11.31 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.783e-06/0.03006, allocations: 0 / 385.5 MB, free: 11.31 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.522e-06/0.03007, allocations: 4 kB / 385.5 MB, free: 11.3 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.03007, allocations: 0 / 385.5 MB, free: 11.3 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.03007, allocations: 0 / 385.5 MB, free: 11.3 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001729/0.03024, allocations: 128.4 kB / 385.7 MB, free: 11.15 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.119e-06/0.03025, allocations: 4.031 kB / 385.7 MB, free: 11.14 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.506e-05/0.03026, allocations: 7.938 kB / 385.7 MB, free: 11.14 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.234e-05/0.03028, allocations: 4 kB / 385.7 MB, free: 11.13 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.578e-05/0.03029, allocations: 0 / 385.7 MB, free: 11.13 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.26e-06/0.0303, allocations: 3.938 kB / 385.7 MB, free: 11.13 MB / 362.7 MB Notification: Performance of sorting global known variables: time 4.825e-05/0.03035, allocations: 75.28 kB / 385.8 MB, free: 11.05 MB / 362.7 MB Notification: Performance of sort global known variables: time 7e-08/0.03035, allocations: 0 / 385.8 MB, free: 11.05 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003436/0.03069, allocations: 71.86 kB / 385.8 MB, free: 10.98 MB / 362.7 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.001214/0.0319, allocations: 441 kB / 386.3 MB, free: 10.64 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001541/0.03206, allocations: 114.8 kB / 386.4 MB, free: 10.5 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.03206, allocations: 3.938 kB / 386.4 MB, free: 10.5 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 7.362e-05/0.03213, allocations: 77.11 kB / 386.5 MB, free: 10.41 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001363/0.03227, allocations: 8 kB / 386.5 MB, free: 10.4 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002675/0.03254, allocations: 112 kB / 386.6 MB, free: 10.25 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.465e-05/0.0326, allocations: 67.36 kB / 386.6 MB, free: 10.17 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.861e-06/0.03261, allocations: 0 / 386.6 MB, free: 10.17 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.393e-05/0.03263, allocations: 8.5 kB / 386.6 MB, free: 10.16 MB / 362.7 MB Notification: Performance of SimCode: time 9.72e-07/0.03263, allocations: 0 / 386.6 MB, free: 10.16 MB / 362.7 MB Notification: Performance of Templates: time 0.00676/0.03939, allocations: 2.171 MB / 388.8 MB, free: 7.992 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStrings.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStrings.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStrings.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStrings.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStrings.sim & ./ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStrings -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStrings.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStrings_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestStrings/TestStrings.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.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: 4.946841737022623]