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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Utilities.TestStrings,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestStrings",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestStrings,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestStrings",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001544/0.001544, allocations: 114.4 kB / 17.78 MB, free: 5.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001765/0.001765, allocations: 187.8 kB / 18.71 MB, free: 4.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.315/1.315, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2021/0.2021, allocations: 44.18 MB / 336.7 MB, free: 2.672 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001231/0.001231, allocations: 63.91 kB / 470 MB, free: 13.69 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2963/0.2975, allocations: 60.82 MB / 0.5184 GB, free: 3.16 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStrings): time 0.001572/0.2991, allocations: 484.5 kB / 0.5189 GB, free: 2.875 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002038/0.3012, allocations: 1.307 MB / 0.5201 GB, free: 2.031 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.902e-05/0.3012, allocations: 1.062 kB / 0.5201 GB, free: 2.031 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.873e-05/0.3012, allocations: 4 kB / 0.5201 GB, free: 2.027 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.34e-06/0.3013, allocations: 0 / 0.5201 GB, free: 2.027 MB / 382.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.001414/0.3027, allocations: 0.5792 MB / 0.5207 GB, free: 1.785 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 4.12e-05/0.3027, allocations: 1.125 kB / 0.5207 GB, free: 1.785 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.365e-05/0.3028, allocations: 2.672 kB / 0.5207 GB, free: 1.785 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.313e-05/0.3028, allocations: 0 / 0.5207 GB, free: 1.785 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.496e-05/0.3028, allocations: 1.156 kB / 0.5207 GB, free: 1.785 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.31e-06/0.3028, allocations: 0 / 0.5207 GB, free: 1.785 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01238/0.3152, allocations: 2.528 MB / 0.5232 GB, free: 1.105 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.058e-05/0.3152, allocations: 3.422 kB / 0.5232 GB, free: 1.105 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.201e-05/0.3153, allocations: 0 / 0.5232 GB, free: 1.105 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003603/0.3156, allocations: 162.8 kB / 0.5233 GB, free: 1.051 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/0.3156, allocations: 0 / 0.5233 GB, free: 1.051 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.3157, allocations: 0 / 0.5233 GB, free: 1.051 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.421e-06/0.3157, allocations: 3.938 kB / 0.5233 GB, free: 1.047 MB / 382.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.0002761/0.3159, allocations: 376.6 kB / 0.5237 GB, free: 0.6523 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.543e-05/0.316, allocations: 16.7 kB / 0.5237 GB, free: 0.6445 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.719e-05/0.316, allocations: 32.12 kB / 0.5237 GB, free: 0.6055 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.343e-05/0.316, allocations: 5.547 kB / 0.5238 GB, free: 0.6016 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.681e-05/0.3161, allocations: 162.4 kB / 0.5239 GB, free: 416 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.334e-06/0.3161, allocations: 1.125 kB / 0.5239 GB, free: 416 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.308e-06/0.3161, allocations: 1.75 kB / 0.5239 GB, free: 416 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.539e-05/0.3162, allocations: 32.33 kB / 0.5239 GB, free: 380 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.322e-06/0.3162, allocations: 1.375 kB / 0.5239 GB, free: 380 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.033e-06/0.3162, allocations: 0 / 0.5239 GB, free: 380 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.398e-06/0.3162, allocations: 4 kB / 0.5239 GB, free: 376 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.711e-05/0.3162, allocations: 2.031 kB / 0.5239 GB, free: 376 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.711e-05/0.3163, allocations: 148.4 kB / 0.5241 GB, free: 180 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 2.929e-05/0.3164, allocations: 22.03 kB / 0.5241 GB, free: 152 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.024e-05/0.3164, allocations: 6.234 kB / 0.5241 GB, free: 144 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.13e-06/0.3164, allocations: 4.547 kB / 0.5241 GB, free: 140 kB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.289e-05/0.3164, allocations: 58.25 kB / 0.5242 GB, free: 68 kB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 8.52e-07/0.3164, allocations: 7.938 kB / 0.5242 GB, free: 60 kB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001514/0.3166, allocations: 66.17 kB / 0.5242 GB, free: 15.99 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.919e-05/0.3166, allocations: 77.11 kB / 0.5243 GB, free: 15.9 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.69e-05/0.3167, allocations: 94.66 kB / 0.5244 GB, free: 15.8 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.143e-05/0.3167, allocations: 27.08 kB / 0.5244 GB, free: 15.77 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.353e-05/0.3167, allocations: 84.12 kB / 0.5245 GB, free: 15.68 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.564e-05/0.3167, allocations: 3.938 kB / 0.5245 GB, free: 15.68 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.655e-05/0.3168, allocations: 13.03 kB / 0.5245 GB, free: 15.66 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.304e-05/0.3169, allocations: 317 kB / 0.5248 GB, free: 15.34 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.007e-06/0.3169, allocations: 0.6094 kB / 0.5248 GB, free: 15.34 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.951e-06/0.3169, allocations: 1.375 kB / 0.5248 GB, free: 15.34 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.227e-05/0.3169, allocations: 63.81 kB / 0.5249 GB, free: 15.27 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.3169, allocations: 1.375 kB / 0.5249 GB, free: 15.27 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.612e-05/0.317, allocations: 68.03 kB / 0.525 GB, free: 15.2 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.71e-05/0.3171, allocations: 32 kB / 0.525 GB, free: 15.17 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.278e-06/0.3171, allocations: 0.7031 kB / 0.525 GB, free: 15.17 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.238e-05/0.3171, allocations: 4 kB / 0.525 GB, free: 15.16 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.276e-06/0.3171, allocations: 9.359 kB / 0.525 GB, free: 15.16 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.188e-06/0.3171, allocations: 1.125 kB / 0.525 GB, free: 15.16 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.436e-05/0.3171, allocations: 1.375 kB / 0.525 GB, free: 15.16 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.912e-06/0.3171, allocations: 0 / 0.525 GB, free: 15.16 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: 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 7.448e-05/0.3172, allocations: 135 kB / 0.5251 GB, free: 15.01 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.076e-05/0.3172, allocations: 6.297 kB / 0.5251 GB, free: 15.01 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.959e-06/0.3172, allocations: 7.078 kB / 0.5252 GB, free: 15 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-06/0.3172, allocations: 4 kB / 0.5252 GB, free: 15 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.296e-06/0.3173, allocations: 0.8438 kB / 0.5252 GB, free: 15 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.124e-06/0.3173, allocations: 5.312 kB / 0.5252 GB, free: 14.99 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.159e-05/0.3173, allocations: 149.2 kB / 0.5253 GB, free: 14.8 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.3174, allocations: 0 / 0.5253 GB, free: 14.8 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.374e-06/0.3174, allocations: 3.938 kB / 0.5253 GB, free: 14.8 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.3174, allocations: 1.938 kB / 0.5253 GB, free: 14.8 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.76e-06/0.3174, allocations: 0 / 0.5253 GB, free: 14.8 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.3174, allocations: 2.688 kB / 0.5253 GB, free: 14.8 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.3174, allocations: 0 / 0.5253 GB, free: 14.8 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.698e-05/0.3175, allocations: 95.7 kB / 0.5254 GB, free: 14.69 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.672e-05/0.3175, allocations: 81.84 kB / 0.5255 GB, free: 14.59 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.086e-05/0.3175, allocations: 6.062 kB / 0.5255 GB, free: 14.59 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.658e-06/0.3176, allocations: 1.375 kB / 0.5255 GB, free: 14.59 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.169e-05/0.3176, allocations: 0.6094 kB / 0.5255 GB, free: 14.59 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.166e-06/0.3176, allocations: 1.375 kB / 0.5255 GB, free: 14.59 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.231e-05/0.3176, allocations: 75.28 kB / 0.5256 GB, free: 14.52 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3176, allocations: 0 / 0.5256 GB, free: 14.52 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003/0.3179, allocations: 74.11 kB / 0.5256 GB, free: 14.5 MB / 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 (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.001139/0.3191, allocations: 0.9226 MB / 0.5265 GB, free: 13.79 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.389e-05/0.3192, allocations: 70.22 kB / 0.5266 GB, free: 13.71 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.3192, allocations: 1.281 kB / 0.5266 GB, free: 13.71 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.729e-05/0.3192, allocations: 54.69 kB / 0.5267 GB, free: 13.65 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001245/0.3194, allocations: 6.5 kB / 0.5267 GB, free: 13.64 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003211/0.3197, allocations: 138.1 kB / 0.5268 GB, free: 13.5 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002127/0.3199, allocations: 0.6746 MB / 0.5274 GB, free: 12.8 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.532e-06/0.3199, allocations: 5.969 kB / 0.5275 GB, free: 12.8 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.76e-05/0.3199, allocations: 9.656 kB / 0.5275 GB, free: 12.79 MB / 398.1 MB Notification: Performance of SimCode: time 2.51e-07/0.32, allocations: 0 / 0.5275 GB, free: 12.79 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01974/0.3397, allocations: 3.14 MB / 0.5305 GB, free: 11.4 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.779/8.119, allocations: 12.28 kB / 0.5305 GB, free: 11.39 MB / 398.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Utilities_TestStrings_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Utilities_TestStrings.fmu > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings.pipe 2>&1) 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) Reference file matches