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.001093/0.001093, allocations: 113.8 kB / 17.78 MB, free: 5.285 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.001186/0.001186, allocations: 175.1 kB / 18.71 MB, free: 4.363 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.389/1.389, 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.2151/0.2151, allocations: 44.19 MB / 336.8 MB, free: 2.66 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001371/0.001371, allocations: 63.91 kB / 470 MB, free: 13.69 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3163/0.3177, allocations: 60.83 MB / 0.5184 GB, free: 3.285 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStrings): time 0.001506/0.3193, allocations: 482.4 kB / 0.5189 GB, free: 3 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002283/0.3216, allocations: 1.305 MB / 0.5201 GB, free: 2.16 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.695e-05/0.3216, allocations: 4 kB / 0.5201 GB, free: 2.156 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.414e-05/0.3216, allocations: 0 / 0.5201 GB, free: 2.156 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.583e-06/0.3217, 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.002074/0.3238, allocations: 0.575 MB / 0.5207 GB, free: 1.918 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.77e-05/0.3238, allocations: 6 kB / 0.5207 GB, free: 1.914 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.168e-05/0.3239, allocations: 1.719 kB / 0.5207 GB, free: 1.914 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.8e-05/0.3239, allocations: 4.688 kB / 0.5207 GB, free: 1.91 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.164e-05/0.3239, allocations: 1.125 kB / 0.5207 GB, free: 1.91 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.023e-06/0.324, allocations: 4 kB / 0.5207 GB, free: 1.906 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01297/0.3369, allocations: 2.533 MB / 0.5232 GB, free: 1.227 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.457e-05/0.337, allocations: 4 kB / 0.5232 GB, free: 1.223 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.016e-05/0.337, allocations: 1.312 kB / 0.5232 GB, free: 1.223 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004588/0.3375, allocations: 153.8 kB / 0.5233 GB, free: 1.176 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.636e-06/0.3375, allocations: 6.094 kB / 0.5234 GB, free: 1.172 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.006e-06/0.3375, allocations: 0 / 0.5234 GB, free: 1.172 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.813e-06/0.3375, allocations: 3.938 kB / 0.5234 GB, free: 1.168 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.0003398/0.3379, allocations: 384.8 kB / 0.5237 GB, free: 0.7656 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.487e-05/0.3379, allocations: 12.91 kB / 0.5237 GB, free: 0.7617 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.489e-05/0.338, allocations: 30.75 kB / 0.5238 GB, free: 0.7227 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.328e-05/0.338, allocations: 2.844 kB / 0.5238 GB, free: 0.7227 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.538e-05/0.3381, allocations: 161 kB / 0.5239 GB, free: 0.5273 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.291e-05/0.3381, allocations: 1.375 kB / 0.5239 GB, free: 0.5273 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.436e-06/0.3381, allocations: 1.469 kB / 0.5239 GB, free: 0.5273 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.344e-05/0.3382, allocations: 37.34 kB / 0.524 GB, free: 500 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.434e-06/0.3382, allocations: 0 / 0.524 GB, free: 500 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.666e-06/0.3382, allocations: 4.703 kB / 0.524 GB, free: 496 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.319e-06/0.3382, allocations: 1.094 kB / 0.524 GB, free: 496 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.897e-05/0.3383, allocations: 5 kB / 0.524 GB, free: 492 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001023/0.3384, allocations: 144.8 kB / 0.5241 GB, free: 300 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.641e-05/0.3384, allocations: 16.58 kB / 0.5241 GB, free: 276 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.487e-05/0.3384, allocations: 6.484 kB / 0.5241 GB, free: 268 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.646e-06/0.3384, allocations: 5.062 kB / 0.5241 GB, free: 264 kB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.725e-05/0.3385, allocations: 66.33 kB / 0.5242 GB, free: 184 kB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.974e-06/0.3385, allocations: 7.922 kB / 0.5242 GB, free: 176 kB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001773/0.3387, allocations: 65.16 kB / 0.5243 GB, free: 108 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.882e-05/0.3387, allocations: 78.3 kB / 0.5243 GB, free: 12 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.65e-05/0.3388, allocations: 90.52 kB / 0.5244 GB, free: 15.91 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.582e-05/0.3388, allocations: 26.83 kB / 0.5245 GB, free: 15.88 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.14e-05/0.3389, allocations: 80.14 kB / 0.5245 GB, free: 15.8 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.185e-05/0.3389, allocations: 5.25 kB / 0.5245 GB, free: 15.8 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.197e-05/0.339, allocations: 16.92 kB / 0.5246 GB, free: 15.78 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001305/0.3391, allocations: 311.5 kB / 0.5248 GB, free: 15.46 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.403e-05/0.3391, allocations: 1.75 kB / 0.5248 GB, free: 15.46 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.544e-06/0.3391, allocations: 1.188 kB / 0.5249 GB, free: 15.46 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.049e-05/0.3392, allocations: 60.09 kB / 0.5249 GB, free: 15.39 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.3392, allocations: 1.062 kB / 0.5249 GB, free: 15.39 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.23e-05/0.3393, allocations: 71.66 kB / 0.525 GB, free: 15.32 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.028e-05/0.3394, allocations: 37.17 kB / 0.525 GB, free: 15.29 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.732e-06/0.3394, allocations: 0 / 0.525 GB, free: 15.29 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.802e-05/0.3394, allocations: 0.8906 kB / 0.525 GB, free: 15.29 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.72e-07/0.3394, allocations: 0 / 0.525 GB, free: 15.29 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.979e-06/0.3394, allocations: 1.625 kB / 0.525 GB, free: 15.29 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.908e-05/0.3394, allocations: 0 / 0.525 GB, free: 15.29 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.438e-06/0.3395, allocations: 2.125 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 8.851e-05/0.3396, allocations: 134 kB / 0.5251 GB, free: 15.14 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.158e-05/0.3396, allocations: 5.797 kB / 0.5252 GB, free: 15.14 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.638e-05/0.3396, allocations: 11.78 kB / 0.5252 GB, free: 15.12 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.988e-06/0.3396, allocations: 4 kB / 0.5252 GB, free: 15.12 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.3396, allocations: 1.281 kB / 0.5252 GB, free: 15.12 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/0.3396, allocations: 3.938 kB / 0.5252 GB, free: 15.12 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001226/0.3397, allocations: 149.6 kB / 0.5253 GB, free: 14.93 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.42e-07/0.3398, allocations: 0 / 0.5253 GB, free: 14.93 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.555e-06/0.3398, allocations: 5.281 kB / 0.5253 GB, free: 14.92 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.894e-06/0.3398, allocations: 0.7969 kB / 0.5253 GB, free: 14.92 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.795e-06/0.3398, allocations: 1.406 kB / 0.5253 GB, free: 14.92 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.3398, allocations: 0 / 0.5253 GB, free: 14.92 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.3398, allocations: 0.7031 kB / 0.5253 GB, free: 14.92 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001131/0.3399, allocations: 96.55 kB / 0.5254 GB, free: 14.82 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.154e-05/0.34, allocations: 81.7 kB / 0.5255 GB, free: 14.72 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.454e-05/0.34, allocations: 5.953 kB / 0.5255 GB, free: 14.71 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.073e-05/0.34, allocations: 1.688 kB / 0.5255 GB, free: 14.71 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.214e-05/0.34, allocations: 0.5156 kB / 0.5255 GB, free: 14.71 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.528e-06/0.34, allocations: 2.562 kB / 0.5255 GB, free: 14.71 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.26e-05/0.3401, allocations: 75.31 kB / 0.5256 GB, free: 14.64 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3401, allocations: 4 kB / 0.5256 GB, free: 14.64 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00038/0.3405, allocations: 68.45 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.00153/0.342, allocations: 0.9285 MB / 0.5265 GB, free: 13.91 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001521/0.3422, allocations: 63.14 kB / 0.5266 GB, free: 13.84 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.3422, allocations: 0 / 0.5266 GB, free: 13.84 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.367e-05/0.3422, allocations: 58.89 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.0001557/0.3424, allocations: 7.453 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.0004435/0.3428, allocations: 129.5 kB / 0.5268 GB, free: 13.63 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003471/0.3432, allocations: 0.6786 MB / 0.5275 GB, free: 12.93 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 9.007e-06/0.3432, allocations: 0.5156 kB / 0.5275 GB, free: 12.93 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.214e-05/0.3432, allocations: 10.19 kB / 0.5275 GB, free: 12.92 MB / 398.1 MB Notification: Performance of SimCode: time 7.41e-07/0.3433, allocations: 0 / 0.5275 GB, free: 12.92 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02263/0.3659, allocations: 3.134 MB / 0.5305 GB, free: 11.53 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.671/8.037, allocations: 9.719 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