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.001347/0.001347, 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.001503/0.001504, allocations: 187 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.343/1.343, allocations: 222.9 MB / 242.4 MB, free: 15.17 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.2149/0.2149, allocations: 44.18 MB / 336.7 MB, free: 2.688 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001307/0.001308, allocations: 63.89 kB / 470 MB, free: 13.71 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3007/0.302, allocations: 60.82 MB / 0.5184 GB, free: 3.289 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStrings): time 0.001559/0.3036, allocations: 486.5 kB / 0.5189 GB, free: 3 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002135/0.3058, allocations: 1.309 MB / 0.5201 GB, free: 2.156 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.85e-05/0.3058, allocations: 1.156 kB / 0.5201 GB, free: 2.156 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.219e-05/0.3058, allocations: 0 / 0.5201 GB, free: 2.156 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 4.979e-06/0.3058, allocations: 0 / 0.5201 GB, free: 2.156 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.001328/0.3072, allocations: 0.5746 MB / 0.5207 GB, free: 1.918 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.014e-05/0.3072, allocations: 5.766 kB / 0.5207 GB, free: 1.914 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.976e-05/0.3073, allocations: 1.656 kB / 0.5207 GB, free: 1.914 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.273e-05/0.3073, allocations: 5.188 kB / 0.5207 GB, free: 1.91 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.843e-05/0.3073, allocations: 5.188 kB / 0.5207 GB, free: 1.906 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.17e-06/0.3073, allocations: 3.938 kB / 0.5207 GB, free: 1.902 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01265/0.32, allocations: 2.52 MB / 0.5232 GB, free: 1.227 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.452e-05/0.32, allocations: 1.188 kB / 0.5232 GB, free: 1.227 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.125e-05/0.32, allocations: 1.156 kB / 0.5232 GB, free: 1.227 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004953/0.3205, allocations: 162.5 kB / 0.5233 GB, free: 1.172 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.3206, allocations: 0 / 0.5233 GB, free: 1.172 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.635e-06/0.3206, allocations: 0 / 0.5233 GB, free: 1.172 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.184e-05/0.3206, allocations: 7.938 kB / 0.5233 GB, free: 1.164 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.0003218/0.3209, allocations: 376.4 kB / 0.5237 GB, free: 0.7695 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.716e-05/0.321, allocations: 14.72 kB / 0.5237 GB, free: 0.7656 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.398e-05/0.321, allocations: 31.5 kB / 0.5238 GB, free: 0.7266 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.706e-05/0.321, allocations: 0.9375 kB / 0.5238 GB, free: 0.7266 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.746e-05/0.3211, allocations: 163.3 kB / 0.5239 GB, free: 0.5312 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.162e-05/0.3211, allocations: 384 / 0.5239 GB, free: 0.5312 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.522e-06/0.3211, allocations: 384 / 0.5239 GB, free: 0.5312 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.036e-05/0.3212, allocations: 38.89 kB / 0.5239 GB, free: 0.4922 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.805e-06/0.3212, allocations: 3.984 kB / 0.5239 GB, free: 500 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.733e-06/0.3212, allocations: 0 / 0.5239 GB, free: 500 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.348e-06/0.3212, allocations: 3.938 kB / 0.524 GB, free: 496 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.593e-05/0.3212, allocations: 2.344 kB / 0.524 GB, free: 496 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.001e-05/0.3213, allocations: 149.3 kB / 0.5241 GB, free: 300 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.091e-05/0.3214, allocations: 16.39 kB / 0.5241 GB, free: 276 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.197e-05/0.3214, allocations: 7.25 kB / 0.5241 GB, free: 268 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.174e-06/0.3214, allocations: 7.938 kB / 0.5241 GB, free: 260 kB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.858e-05/0.3214, allocations: 59.02 kB / 0.5242 GB, free: 188 kB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 8.61e-07/0.3214, allocations: 3.938 kB / 0.5242 GB, free: 184 kB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.000144/0.3216, allocations: 69.75 kB / 0.5243 GB, free: 112 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.559e-05/0.3216, allocations: 77.11 kB / 0.5243 GB, free: 16 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.331e-05/0.3217, allocations: 89.86 kB / 0.5244 GB, free: 15.92 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.415e-05/0.3217, allocations: 28.88 kB / 0.5244 GB, free: 15.89 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.856e-05/0.3217, allocations: 84.27 kB / 0.5245 GB, free: 15.8 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.447e-05/0.3218, allocations: 3.938 kB / 0.5245 GB, free: 15.8 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.795e-05/0.3218, allocations: 12.28 kB / 0.5245 GB, free: 15.78 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001056/0.3219, allocations: 313.4 kB / 0.5248 GB, free: 15.47 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.204e-05/0.3219, allocations: 4 kB / 0.5248 GB, free: 15.46 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.031e-06/0.3219, allocations: 1.438 kB / 0.5248 GB, free: 15.46 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.6e-05/0.322, allocations: 63.75 kB / 0.5249 GB, free: 15.39 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.322, allocations: 1.344 kB / 0.5249 GB, free: 15.39 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.784e-05/0.3221, allocations: 67.94 kB / 0.525 GB, free: 15.32 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.378e-05/0.3221, allocations: 34.23 kB / 0.525 GB, free: 15.29 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.569e-06/0.3221, allocations: 1.281 kB / 0.525 GB, free: 15.29 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.269e-05/0.3222, allocations: 0.75 kB / 0.525 GB, free: 15.29 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.01e-07/0.3222, allocations: 0 / 0.525 GB, free: 15.29 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.948e-06/0.3222, allocations: 1.344 kB / 0.525 GB, free: 15.29 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.511e-05/0.3222, allocations: 0 / 0.525 GB, free: 15.29 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.822e-06/0.3222, allocations: 2.078 kB / 0.525 GB, free: 15.29 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.12e-05/0.3223, allocations: 138.7 kB / 0.5251 GB, free: 15.14 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.047e-05/0.3223, allocations: 10.78 kB / 0.5251 GB, free: 15.13 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.044e-05/0.3223, allocations: 7.781 kB / 0.5252 GB, free: 15.12 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.403e-06/0.3223, allocations: 0 / 0.5252 GB, free: 15.12 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.957e-06/0.3223, allocations: 0.5625 kB / 0.5252 GB, free: 15.12 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.944e-06/0.3223, allocations: 3.938 kB / 0.5252 GB, free: 15.12 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.845e-05/0.3224, allocations: 146 kB / 0.5253 GB, free: 14.93 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.3224, allocations: 4 kB / 0.5253 GB, free: 14.93 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.903e-06/0.3224, allocations: 3.938 kB / 0.5253 GB, free: 14.93 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.975e-06/0.3225, allocations: 2.656 kB / 0.5253 GB, free: 14.93 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.891e-06/0.3225, allocations: 0 / 0.5253 GB, free: 14.93 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.016e-06/0.3225, allocations: 4.656 kB / 0.5253 GB, free: 14.92 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.3225, allocations: 3.938 kB / 0.5253 GB, free: 14.92 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.095e-05/0.3226, allocations: 88.98 kB / 0.5254 GB, free: 14.82 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.21e-05/0.3226, allocations: 84.97 kB / 0.5255 GB, free: 14.72 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.266e-05/0.3226, allocations: 3.938 kB / 0.5255 GB, free: 14.72 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.448e-06/0.3226, allocations: 0.6562 kB / 0.5255 GB, free: 14.72 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.869e-06/0.3227, allocations: 0 / 0.5255 GB, free: 14.72 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.588e-06/0.3227, allocations: 7.641 kB / 0.5255 GB, free: 14.71 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.224e-05/0.3227, allocations: 75.28 kB / 0.5256 GB, free: 14.64 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3227, allocations: 0 / 0.5256 GB, free: 14.64 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003477/0.3231, allocations: 66.94 kB / 0.5256 GB, free: 14.63 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.001111/0.3242, allocations: 0.9313 MB / 0.5265 GB, free: 13.91 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.134e-05/0.3243, allocations: 62.27 kB / 0.5266 GB, free: 13.84 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.3243, allocations: 0 / 0.5266 GB, free: 13.84 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.12e-05/0.3243, allocations: 56.7 kB / 0.5267 GB, free: 13.78 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001241/0.3245, allocations: 5.312 kB / 0.5267 GB, free: 13.77 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003251/0.3248, allocations: 147.4 kB / 0.5268 GB, free: 13.62 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001979/0.325, allocations: 0.6752 MB / 0.5275 GB, free: 12.92 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 8.186e-06/0.325, allocations: 0 / 0.5275 GB, free: 12.92 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.678e-05/0.325, allocations: 14.12 kB / 0.5275 GB, free: 12.91 MB / 398.1 MB Notification: Performance of SimCode: time 2.61e-07/0.325, allocations: 0 / 0.5275 GB, free: 12.91 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01895/0.344, allocations: 3.123 MB / 0.5305 GB, free: 11.53 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.595/7.939, allocations: 16.53 kB / 0.5305 GB, free: 11.52 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