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.00129/0.00129, allocations: 111.1 kB / 20.44 MB, free: 1.34 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.001466/0.001466, allocations: 208.7 kB / 23.72 MB, free: 4.527 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.481/1.481, allocations: 230.6 MB / 257.5 MB, free: 7.977 MB / 206.1 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.2612/0.2612, allocations: 46.96 MB / 360.9 MB, free: 4.09 MB / 286.1 MB " [Timeout remaining time 179] 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: "" <> buildModelFMU(ModelicaTest.Utilities.TestStrings,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Utilities_TestStrings",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestStrings,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Utilities_TestStrings",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002044/0.002044, allocations: 67.89 kB / 0.4961 GB, free: 7.781 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3572/0.3593, allocations: 66.05 MB / 0.5606 GB, free: 4.25 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStrings): time 0.001672/0.3609, allocations: 481.1 kB / 0.561 GB, free: 3.777 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002623/0.3636, allocations: 1.269 MB / 0.5623 GB, free: 2.504 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.585e-05/0.3636, allocations: 0 / 0.5623 GB, free: 2.504 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.514e-05/0.3636, allocations: 0 / 0.5623 GB, free: 2.504 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.29e-06/0.3636, allocations: 0 / 0.5623 GB, free: 2.504 MB / 398.1 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.001572/0.3652, allocations: 0.5764 MB / 0.5628 GB, free: 1.926 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.062e-05/0.3652, allocations: 8 kB / 0.5628 GB, free: 1.918 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.839e-05/0.3653, allocations: 0 / 0.5628 GB, free: 1.918 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.577e-05/0.3653, allocations: 0 / 0.5628 GB, free: 1.918 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.338e-05/0.3653, allocations: 4 kB / 0.5628 GB, free: 1.914 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.332e-06/0.3653, allocations: 7.938 kB / 0.5629 GB, free: 1.906 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01719/0.3825, allocations: 2.555 MB / 0.5653 GB, free: 15.88 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.67e-05/0.3825, allocations: 0 / 0.5653 GB, free: 15.88 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 3.045e-05/0.3826, allocations: 4 kB / 0.5653 GB, free: 15.88 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004233/0.383, allocations: 163.7 kB / 0.5655 GB, free: 15.71 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.56e-06/0.383, allocations: 0 / 0.5655 GB, free: 15.71 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.383, allocations: 0 / 0.5655 GB, free: 15.71 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.885e-06/0.383, allocations: 0 / 0.5655 GB, free: 15.71 MB / 414.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.0004439/0.3834, allocations: 311.8 kB / 0.5658 GB, free: 15.38 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.65e-05/0.3835, allocations: 8.031 kB / 0.5658 GB, free: 15.37 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.349e-05/0.3835, allocations: 30.75 kB / 0.5658 GB, free: 15.33 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.228e-05/0.3836, allocations: 0.9375 kB / 0.5658 GB, free: 15.33 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.565e-05/0.3837, allocations: 110.5 kB / 0.5659 GB, free: 15.2 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.301e-05/0.3837, allocations: 384 / 0.5659 GB, free: 15.2 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.334e-06/0.3837, allocations: 384 / 0.5659 GB, free: 15.2 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001221/0.3838, allocations: 63.28 kB / 0.566 GB, free: 15.12 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.148e-05/0.3838, allocations: 3.984 kB / 0.566 GB, free: 15.12 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.414e-06/0.3838, allocations: 0 / 0.566 GB, free: 15.12 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.098e-06/0.3838, allocations: 4 kB / 0.566 GB, free: 15.11 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.545e-05/0.3839, allocations: 25.7 kB / 0.566 GB, free: 15.08 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001522/0.384, allocations: 116.8 kB / 0.5662 GB, free: 14.93 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.156e-05/0.3841, allocations: 52.25 kB / 0.5662 GB, free: 14.86 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.834e-05/0.3841, allocations: 34.55 kB / 0.5662 GB, free: 14.82 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.205e-06/0.3841, allocations: 3.938 kB / 0.5662 GB, free: 14.81 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.718e-05/0.3842, allocations: 72.25 kB / 0.5663 GB, free: 14.73 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 1.002e-06/0.3842, allocations: 0 / 0.5663 GB, free: 14.73 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002299/0.3844, allocations: 114.8 kB / 0.5664 GB, free: 14.59 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.996e-05/0.3845, allocations: 81.22 kB / 0.5665 GB, free: 14.49 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.327e-05/0.3846, allocations: 93.86 kB / 0.5666 GB, free: 14.39 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.017e-05/0.3846, allocations: 25.7 kB / 0.5666 GB, free: 14.36 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.964e-05/0.3846, allocations: 80.14 kB / 0.5667 GB, free: 14.28 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.242e-05/0.3847, allocations: 0 / 0.5667 GB, free: 14.28 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.019e-05/0.3847, allocations: 13.72 kB / 0.5667 GB, free: 14.26 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001694/0.3849, allocations: 310.8 kB / 0.567 GB, free: 13.95 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.403e-05/0.3849, allocations: 33.7 kB / 0.567 GB, free: 13.91 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.401e-05/0.3849, allocations: 29.64 kB / 0.5671 GB, free: 13.87 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.954e-05/0.385, allocations: 64.25 kB / 0.5671 GB, free: 13.79 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.454e-06/0.385, allocations: 4.062 kB / 0.5671 GB, free: 13.79 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.57e-05/0.3851, allocations: 93.05 kB / 0.5672 GB, free: 13.68 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.242e-05/0.3851, allocations: 29.7 kB / 0.5672 GB, free: 13.64 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.062e-06/0.3851, allocations: 0 / 0.5672 GB, free: 13.64 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.591e-05/0.3852, allocations: 0 / 0.5672 GB, free: 13.64 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.092e-06/0.3852, allocations: 3.938 kB / 0.5672 GB, free: 13.64 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.251e-06/0.3852, allocations: 4 kB / 0.5672 GB, free: 13.64 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.143e-05/0.3852, allocations: 7.938 kB / 0.5673 GB, free: 13.63 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.156e-06/0.3852, allocations: 0 / 0.5673 GB, free: 13.63 MB / 414.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 0.0001169/0.3853, allocations: 135.5 kB / 0.5674 GB, free: 13.48 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.022e-05/0.3853, allocations: 7.969 kB / 0.5674 GB, free: 13.47 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.463e-05/0.3853, allocations: 3 kB / 0.5674 GB, free: 13.47 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.052e-06/0.3853, allocations: 0 / 0.5674 GB, free: 13.47 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.01e-06/0.3853, allocations: 3.938 kB / 0.5674 GB, free: 13.46 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.944e-06/0.3853, allocations: 0 / 0.5674 GB, free: 13.46 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001107/0.3855, allocations: 120.8 kB / 0.5675 GB, free: 13.3 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.41e-07/0.3855, allocations: 0 / 0.5675 GB, free: 13.3 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.615e-06/0.3855, allocations: 3.938 kB / 0.5675 GB, free: 13.3 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.112e-06/0.3855, allocations: 0 / 0.5675 GB, free: 13.3 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.793e-06/0.3855, allocations: 0 / 0.5675 GB, free: 13.3 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.31e-07/0.3855, allocations: 3.938 kB / 0.5675 GB, free: 13.3 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.865e-06/0.3855, allocations: 8 kB / 0.5675 GB, free: 13.29 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001365/0.3856, allocations: 120.5 kB / 0.5676 GB, free: 13.14 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.113e-06/0.3856, allocations: 3.938 kB / 0.5676 GB, free: 13.14 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.172e-05/0.3856, allocations: 0 / 0.5676 GB, free: 13.14 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.165e-06/0.3856, allocations: 0 / 0.5676 GB, free: 13.14 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.375e-05/0.3856, allocations: 4 kB / 0.5676 GB, free: 13.13 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.525e-06/0.3856, allocations: 0 / 0.5676 GB, free: 13.13 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.619e-05/0.3857, allocations: 75.28 kB / 0.5677 GB, free: 13.06 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3857, allocations: 0 / 0.5677 GB, free: 13.06 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002976/0.386, allocations: 67.86 kB / 0.5678 GB, free: 12.99 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 (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.001538/0.3875, allocations: 0.9769 MB / 0.5687 GB, free: 12.06 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001375/0.3877, allocations: 114.8 kB / 0.5688 GB, free: 11.93 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.3877, allocations: 7.938 kB / 0.5689 GB, free: 11.92 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.7e-05/0.3877, allocations: 77.17 kB / 0.5689 GB, free: 11.82 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001344/0.3879, allocations: 12 kB / 0.5689 GB, free: 11.81 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003683/0.3882, allocations: 160.3 kB / 0.5691 GB, free: 11.61 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.729e-05/0.3883, allocations: 55.34 kB / 0.5691 GB, free: 11.54 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.891e-06/0.3883, allocations: 4 kB / 0.5691 GB, free: 11.53 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.625e-05/0.3883, allocations: 7.438 kB / 0.5692 GB, free: 11.52 MB / 414.1 MB Notification: Performance of SimCode: time 5.61e-07/0.3883, allocations: 0 / 0.5692 GB, free: 11.52 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0307/0.419, allocations: 3.681 MB / 0.5728 GB, free: 7.977 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.93/11.35, allocations: 3.281 kB / 0.5728 GB, free: 7.977 MB / 414.1 MB " [Timeout remaining time 649] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStrings_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Utilities_TestStrings_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Utilities_TestStrings.fmu > ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStrings.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStrings_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestStrings/TestStrings.csv","/var/lib/jenkins1/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: 14.222810653009219]