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.001757/0.001757, allocations: 117.2 kB / 17.78 MB, free: 5.254 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.00146/0.00146, allocations: 185 kB / 18.72 MB, free: 4.332 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.4/1.4, allocations: 222.9 MB / 242.4 MB, free: 15.09 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.216/0.216, allocations: 44.19 MB / 336.8 MB, free: 2.672 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001831/0.001831, allocations: 67.88 kB / 470 MB, free: 13.7 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3309/0.3328, allocations: 60.82 MB / 0.5184 GB, free: 3.281 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStrings): time 0.001524/0.3344, allocations: 491.9 kB / 0.5189 GB, free: 2.988 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002123/0.3365, allocations: 1.301 MB / 0.5201 GB, free: 2.152 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.643e-05/0.3365, allocations: 0 / 0.5201 GB, free: 2.152 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.861e-05/0.3366, allocations: 5.125 kB / 0.5201 GB, free: 2.148 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.292e-06/0.3366, allocations: 0 / 0.5201 GB, free: 2.148 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.00138/0.338, allocations: 0.5742 MB / 0.5207 GB, free: 1.91 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 4.52e-05/0.338, allocations: 9.219 kB / 0.5207 GB, free: 1.902 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.808e-05/0.3381, allocations: 2.016 kB / 0.5207 GB, free: 1.902 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.523e-05/0.3381, allocations: 1.859 kB / 0.5207 GB, free: 1.902 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.983e-05/0.3381, allocations: 1.156 kB / 0.5207 GB, free: 1.902 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.371e-06/0.3381, allocations: 0 / 0.5207 GB, free: 1.902 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01592/0.354, allocations: 2.525 MB / 0.5232 GB, free: 1.23 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.08e-05/0.3541, allocations: 0 / 0.5232 GB, free: 1.23 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.429e-05/0.3541, allocations: 2.188 kB / 0.5232 GB, free: 1.23 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00034/0.3544, allocations: 161.5 kB / 0.5233 GB, free: 1.176 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.3545, allocations: 0 / 0.5233 GB, free: 1.176 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.805e-06/0.3545, allocations: 0.6562 kB / 0.5233 GB, free: 1.176 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.5e-06/0.3545, allocations: 3.938 kB / 0.5233 GB, free: 1.172 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.0002714/0.3548, allocations: 387.8 kB / 0.5237 GB, free: 0.7656 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.586e-05/0.3548, allocations: 14 kB / 0.5237 GB, free: 0.7617 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.578e-05/0.3548, allocations: 31.41 kB / 0.5238 GB, free: 0.7227 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.315e-05/0.3549, allocations: 2.312 kB / 0.5238 GB, free: 0.7227 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.784e-05/0.3549, allocations: 161.1 kB / 0.5239 GB, free: 0.5273 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.184e-05/0.3549, allocations: 2.453 kB / 0.5239 GB, free: 0.5273 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.472e-06/0.3549, allocations: 384 / 0.5239 GB, free: 0.5273 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.535e-05/0.355, allocations: 33.61 kB / 0.524 GB, free: 0.4922 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.285e-06/0.355, allocations: 0 / 0.524 GB, free: 0.4922 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.164e-06/0.355, allocations: 5.359 kB / 0.524 GB, free: 500 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.429e-06/0.3551, allocations: 4 kB / 0.524 GB, free: 496 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.839e-05/0.3551, allocations: 5.969 kB / 0.524 GB, free: 492 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.212e-05/0.3552, allocations: 148.3 kB / 0.5241 GB, free: 296 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.265e-05/0.3552, allocations: 16.66 kB / 0.5241 GB, free: 272 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.267e-05/0.3552, allocations: 6.844 kB / 0.5241 GB, free: 264 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.057e-06/0.3552, allocations: 3.938 kB / 0.5241 GB, free: 260 kB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.391e-05/0.3553, allocations: 62.3 kB / 0.5242 GB, free: 184 kB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.022e-06/0.3553, allocations: 5.312 kB / 0.5242 GB, free: 180 kB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001413/0.3554, allocations: 69.41 kB / 0.5243 GB, free: 108 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.776e-05/0.3555, allocations: 78.48 kB / 0.5243 GB, free: 12 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.743e-05/0.3555, allocations: 89.86 kB / 0.5244 GB, free: 15.91 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.002e-05/0.3556, allocations: 25.7 kB / 0.5245 GB, free: 15.88 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.45e-05/0.3556, allocations: 81.52 kB / 0.5245 GB, free: 15.8 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.127e-05/0.3556, allocations: 0.9844 kB / 0.5245 GB, free: 15.8 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.112e-05/0.3557, allocations: 16.59 kB / 0.5245 GB, free: 15.78 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001343/0.3558, allocations: 315.9 kB / 0.5248 GB, free: 15.46 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.869e-06/0.3558, allocations: 1.375 kB / 0.5248 GB, free: 15.46 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.172e-06/0.3558, allocations: 1.375 kB / 0.5248 GB, free: 15.46 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.53e-05/0.3559, allocations: 60 kB / 0.5249 GB, free: 15.39 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.3559, allocations: 0 / 0.5249 GB, free: 15.39 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.481e-05/0.356, allocations: 68.69 kB / 0.525 GB, free: 15.32 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.522e-05/0.356, allocations: 31.95 kB / 0.525 GB, free: 15.29 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.529e-06/0.356, allocations: 5.469 kB / 0.525 GB, free: 15.29 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.21e-05/0.3561, allocations: 0 / 0.525 GB, free: 15.29 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.333e-06/0.3561, allocations: 0 / 0.525 GB, free: 15.29 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.131e-06/0.3561, allocations: 1.984 kB / 0.525 GB, free: 15.29 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.789e-05/0.3561, allocations: 4 kB / 0.525 GB, free: 15.29 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.637e-06/0.3561, allocations: 5.359 kB / 0.525 GB, free: 15.28 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 9.615e-05/0.3562, allocations: 134.2 kB / 0.5251 GB, free: 15.14 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.013e-05/0.3562, allocations: 5.875 kB / 0.5252 GB, free: 15.13 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.339e-05/0.3562, allocations: 7.688 kB / 0.5252 GB, free: 15.12 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.153e-06/0.3562, allocations: 5.375 kB / 0.5252 GB, free: 15.12 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.306e-06/0.3563, allocations: 0 / 0.5252 GB, free: 15.12 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.615e-06/0.3563, allocations: 4.594 kB / 0.5252 GB, free: 15.12 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001033/0.3564, allocations: 145.1 kB / 0.5253 GB, free: 14.93 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.3564, allocations: 5.375 kB / 0.5253 GB, free: 14.93 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.146e-06/0.3564, allocations: 3.938 kB / 0.5253 GB, free: 14.92 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.913e-06/0.3564, allocations: 0.6094 kB / 0.5253 GB, free: 14.92 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.783e-06/0.3564, allocations: 1.375 kB / 0.5253 GB, free: 14.92 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.3564, allocations: 0 / 0.5253 GB, free: 14.92 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.3564, allocations: 2.172 kB / 0.5253 GB, free: 14.92 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.833e-05/0.3565, allocations: 96.41 kB / 0.5254 GB, free: 14.82 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.034e-05/0.3566, allocations: 81.84 kB / 0.5255 GB, free: 14.72 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.198e-05/0.3566, allocations: 5.922 kB / 0.5255 GB, free: 14.71 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.886e-06/0.3566, allocations: 0 / 0.5255 GB, free: 14.71 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.356e-05/0.3566, allocations: 6.016 kB / 0.5255 GB, free: 14.71 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.688e-06/0.3566, allocations: 4 kB / 0.5255 GB, free: 14.71 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.757e-05/0.3567, allocations: 76.66 kB / 0.5256 GB, free: 14.63 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3567, allocations: 4.031 kB / 0.5256 GB, free: 14.63 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002844/0.357, allocations: 64.83 kB / 0.5256 GB, free: 14.62 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.001273/0.3583, allocations: 0.9273 MB / 0.5266 GB, free: 13.9 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.218e-05/0.3584, allocations: 61.98 kB / 0.5266 GB, free: 13.84 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.3584, allocations: 0 / 0.5266 GB, free: 13.84 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.071e-05/0.3584, allocations: 56.55 kB / 0.5267 GB, free: 13.77 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001182/0.3585, allocations: 5.156 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.0003268/0.3589, allocations: 133.8 kB / 0.5268 GB, free: 13.63 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003317/0.3592, allocations: 0.6793 MB / 0.5275 GB, free: 12.93 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.741e-06/0.3592, allocations: 1.312 kB / 0.5275 GB, free: 12.93 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.763e-05/0.3593, allocations: 10.12 kB / 0.5275 GB, free: 12.92 MB / 398.1 MB Notification: Performance of SimCode: time 2.61e-07/0.3593, allocations: 0 / 0.5275 GB, free: 12.92 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02316/0.3824, allocations: 3.125 MB / 0.5305 GB, free: 11.53 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.321/8.703, allocations: 10.97 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 & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 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.csv","/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