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.001637/0.001637, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.002015/0.002015, allocations: 215.8 kB / 23.73 MB, free: 4.16 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.584/1.584, allocations: 230.6 MB / 257.5 MB, free: 7.793 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.2376/0.2376, allocations: 46.96 MB / 360.9 MB, free: 4.039 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+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.00206/0.00206, allocations: 67.89 kB / 0.4961 GB, free: 7.742 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3446/0.3467, allocations: 66.03 MB / 0.5606 GB, free: 4.113 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStrings): time 0.001616/0.3483, allocations: 495.6 kB / 0.561 GB, free: 3.629 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002565/0.3508, allocations: 1.261 MB / 0.5623 GB, free: 2.363 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.226e-05/0.3508, allocations: 0 / 0.5623 GB, free: 2.363 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.012e-05/0.3509, allocations: 0 / 0.5623 GB, free: 2.363 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 4.889e-06/0.3509, allocations: 4 kB / 0.5623 GB, free: 2.359 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.001387/0.3523, allocations: 0.5726 MB / 0.5628 GB, free: 1.785 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.238e-05/0.3523, allocations: 4 kB / 0.5628 GB, free: 1.781 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.754e-05/0.3523, allocations: 0 / 0.5628 GB, free: 1.781 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.188e-05/0.3523, allocations: 7.984 kB / 0.5628 GB, free: 1.773 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.307e-05/0.3524, allocations: 11.92 kB / 0.5629 GB, free: 1.762 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.611e-06/0.3524, allocations: 0 / 0.5629 GB, free: 1.762 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01721/0.3696, allocations: 2.538 MB / 0.5653 GB, free: 15.75 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.336e-05/0.3696, allocations: 7.984 kB / 0.5653 GB, free: 15.74 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.205e-05/0.3696, allocations: 0 / 0.5653 GB, free: 15.74 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003502/0.37, allocations: 159.8 kB / 0.5655 GB, free: 15.59 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.37, allocations: 0 / 0.5655 GB, free: 15.59 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.37, allocations: 0 / 0.5655 GB, free: 15.59 MB / 414.1 MB Notification: Performance of Transformations before backend: time 4.839e-06/0.37, allocations: 0 / 0.5655 GB, free: 15.59 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.0003721/0.3703, allocations: 315.7 kB / 0.5658 GB, free: 15.24 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.898e-05/0.3704, allocations: 8.031 kB / 0.5658 GB, free: 15.23 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.417e-05/0.3704, allocations: 34.75 kB / 0.5658 GB, free: 15.19 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.542e-05/0.3705, allocations: 0.9375 kB / 0.5658 GB, free: 15.19 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.403e-05/0.3705, allocations: 106.5 kB / 0.5659 GB, free: 15.06 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.039e-05/0.3705, allocations: 384 / 0.5659 GB, free: 15.06 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.024e-06/0.3706, allocations: 384 / 0.5659 GB, free: 15.06 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001006/0.3707, allocations: 67.31 kB / 0.566 GB, free: 14.98 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.003e-06/0.3707, allocations: 0 / 0.566 GB, free: 14.98 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.373e-06/0.3707, allocations: 3.938 kB / 0.566 GB, free: 14.98 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.466e-06/0.3707, allocations: 0 / 0.566 GB, free: 14.98 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.256e-05/0.3707, allocations: 33.69 kB / 0.566 GB, free: 14.94 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001295/0.3708, allocations: 120.8 kB / 0.5662 GB, free: 14.78 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.677e-05/0.3709, allocations: 44.31 kB / 0.5662 GB, free: 14.72 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.248e-05/0.3709, allocations: 34.55 kB / 0.5662 GB, free: 14.68 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.937e-06/0.371, allocations: 3.938 kB / 0.5662 GB, free: 14.68 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.252e-05/0.371, allocations: 60.33 kB / 0.5663 GB, free: 14.6 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 9.52e-07/0.371, allocations: 0 / 0.5663 GB, free: 14.6 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002064/0.3712, allocations: 118.8 kB / 0.5664 GB, free: 14.46 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.866e-05/0.3713, allocations: 85.03 kB / 0.5665 GB, free: 14.36 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.362e-05/0.3713, allocations: 89.86 kB / 0.5666 GB, free: 14.26 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.447e-05/0.3713, allocations: 25.7 kB / 0.5666 GB, free: 14.23 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.592e-05/0.3714, allocations: 84.27 kB / 0.5667 GB, free: 14.14 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.829e-05/0.3714, allocations: 4 kB / 0.5667 GB, free: 14.14 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.171e-05/0.3714, allocations: 17.66 kB / 0.5667 GB, free: 14.12 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001498/0.3716, allocations: 310.8 kB / 0.567 GB, free: 13.8 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.32e-05/0.3716, allocations: 29.7 kB / 0.567 GB, free: 13.77 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.925e-05/0.3716, allocations: 25.7 kB / 0.567 GB, free: 13.74 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.931e-05/0.3717, allocations: 68.19 kB / 0.5671 GB, free: 13.66 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.3717, allocations: 0 / 0.5671 GB, free: 13.66 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.8e-05/0.3718, allocations: 93.05 kB / 0.5672 GB, free: 13.55 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.525e-05/0.3718, allocations: 33.8 kB / 0.5672 GB, free: 13.51 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.968e-06/0.3718, allocations: 0 / 0.5672 GB, free: 13.51 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.206e-05/0.3718, allocations: 0 / 0.5672 GB, free: 13.51 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.665e-06/0.3719, allocations: 7.984 kB / 0.5672 GB, free: 13.5 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.015e-05/0.3719, allocations: 3.984 kB / 0.5672 GB, free: 13.5 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.8e-05/0.3719, allocations: 3.953 kB / 0.5672 GB, free: 13.49 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.582e-06/0.3719, allocations: 0 / 0.5672 GB, free: 13.49 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 9.638e-05/0.372, allocations: 135.5 kB / 0.5674 GB, free: 13.34 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.517e-06/0.372, allocations: 3.938 kB / 0.5674 GB, free: 13.34 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.191e-05/0.372, allocations: 3 kB / 0.5674 GB, free: 13.34 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.282e-06/0.372, allocations: 4 kB / 0.5674 GB, free: 13.33 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.457e-06/0.372, allocations: 0 / 0.5674 GB, free: 13.33 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.034e-06/0.372, allocations: 0 / 0.5674 GB, free: 13.33 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001139/0.3721, allocations: 124.8 kB / 0.5675 GB, free: 13.17 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.81e-07/0.3721, allocations: 0 / 0.5675 GB, free: 13.17 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.026e-06/0.3721, allocations: 3.938 kB / 0.5675 GB, free: 13.16 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.072e-06/0.3721, allocations: 0 / 0.5675 GB, free: 13.16 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.386e-06/0.3721, allocations: 4 kB / 0.5675 GB, free: 13.16 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.156e-06/0.3721, allocations: 7.938 kB / 0.5675 GB, free: 13.15 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.3721, allocations: 0 / 0.5675 GB, free: 13.15 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001293/0.3723, allocations: 116.5 kB / 0.5676 GB, free: 13.01 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.861e-06/0.3723, allocations: 7.969 kB / 0.5676 GB, free: 13 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.068e-05/0.3723, allocations: 0 / 0.5676 GB, free: 13 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.456e-06/0.3723, allocations: 0 / 0.5676 GB, free: 13 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.245e-05/0.3723, allocations: 7.938 kB / 0.5676 GB, free: 12.99 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.224e-06/0.3723, allocations: 0 / 0.5676 GB, free: 12.99 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.588e-05/0.3723, allocations: 75.28 kB / 0.5677 GB, free: 12.92 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3723, allocations: 0 / 0.5677 GB, free: 12.92 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002984/0.3726, allocations: 67.86 kB / 0.5678 GB, free: 12.85 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.001417/0.3741, allocations: 0.9743 MB / 0.5687 GB, free: 11.93 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001437/0.3742, allocations: 118.8 kB / 0.5688 GB, free: 11.79 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.3742, allocations: 0 / 0.5688 GB, free: 11.79 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.289e-05/0.3743, allocations: 81.11 kB / 0.5689 GB, free: 11.69 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001233/0.3744, allocations: 2.953 kB / 0.5689 GB, free: 11.69 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003778/0.3748, allocations: 172.3 kB / 0.5691 GB, free: 11.48 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.549e-05/0.3748, allocations: 59.36 kB / 0.5692 GB, free: 11.4 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 7.064e-06/0.3748, allocations: 3.938 kB / 0.5692 GB, free: 11.39 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.607e-05/0.3748, allocations: 7.438 kB / 0.5692 GB, free: 11.39 MB / 414.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3749, allocations: 0 / 0.5692 GB, free: 11.39 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03121/0.4061, allocations: 3.658 MB / 0.5727 GB, free: 7.859 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.25/11.65, allocations: 3.938 kB / 0.5727 GB, free: 7.855 MB / 414.1 MB " [Timeout remaining time 648] (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.624601216055453]