Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestStrings.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Utilities.TestStrings,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Utilities_TestStrings",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestStrings,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Utilities_TestStrings",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009496/0.0009496, allocations: 198.3 kB / 16.1 MB, free: 5.707 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.226/1.226, allocations: 226.5 MB / 243.4 MB, free: 6.391 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007777/0.0007778, allocations: 88.75 kB / 295.4 MB, free: 6.68 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3353/0.3353, allocations: 44.82 MB / 392.3 MB, free: 35.62 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004355/0.0004356, allocations: 7.984 kB / 465.4 MB, free: 12.59 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3336/0.3341, allocations: 62.96 MB / 0.516 GB, free: 37.44 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStrings): time 0.0005113/0.3346, allocations: 212.4 kB / 0.5162 GB, free: 37.29 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001537/0.3362, allocations: 1.208 MB / 0.5173 GB, free: 36.51 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.294e-05/0.3362, allocations: 3.031 kB / 0.5173 GB, free: 36.51 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 8.546e-06/0.3362, allocations: 3.938 kB / 0.5173 GB, free: 36.5 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 5.821e-06/0.3362, allocations: 0 / 0.5173 GB, free: 36.5 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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.000902/0.3372, allocations: 448.4 kB / 0.5178 GB, free: 36.3 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 2.734e-05/0.3372, allocations: 0 / 0.5178 GB, free: 36.3 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.719e-05/0.3372, allocations: 4 kB / 0.5178 GB, free: 36.3 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.515e-05/0.3373, allocations: 2.906 kB / 0.5178 GB, free: 36.3 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.132e-05/0.3373, allocations: 3.984 kB / 0.5178 GB, free: 36.29 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 5.259e-06/0.3373, allocations: 0 / 0.5178 GB, free: 36.29 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01394/0.3512, allocations: 2.294 MB / 0.52 GB, free: 35.65 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 1.19e-05/0.3513, allocations: 3.984 kB / 0.52 GB, free: 35.64 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 3.242e-05/0.3513, allocations: 25.7 kB / 0.52 GB, free: 35.61 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002268/0.3516, allocations: 113.8 kB / 0.5202 GB, free: 35.57 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.3516, allocations: 2.625 kB / 0.5202 GB, free: 35.57 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.814e-06/0.3516, allocations: 0 / 0.5202 GB, free: 35.57 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.208e-06/0.3516, allocations: 0 / 0.5202 GB, free: 35.57 MB / 378.7 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.0002718/0.3519, allocations: 379.3 kB / 0.5205 GB, free: 35.18 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.171e-05/0.3519, allocations: 16.03 kB / 0.5205 GB, free: 35.17 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.767e-05/0.3519, allocations: 41.41 kB / 0.5206 GB, free: 35.12 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.152e-05/0.352, allocations: 0.9375 kB / 0.5206 GB, free: 35.12 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.314e-05/0.352, allocations: 160.4 kB / 0.5207 GB, free: 34.93 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.989e-06/0.3521, allocations: 384 / 0.5207 GB, free: 34.93 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.354e-06/0.3521, allocations: 3 kB / 0.5207 GB, free: 34.93 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.103e-05/0.3522, allocations: 37.02 kB / 0.5208 GB, free: 34.89 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.302e-06/0.3522, allocations: 2.594 kB / 0.5208 GB, free: 34.89 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.084e-06/0.3522, allocations: 0 / 0.5208 GB, free: 34.89 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.218e-06/0.3522, allocations: 0 / 0.5208 GB, free: 34.89 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.703e-05/0.3522, allocations: 0 / 0.5208 GB, free: 34.89 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.173e-05/0.3523, allocations: 152.3 kB / 0.5209 GB, free: 34.69 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.754e-05/0.3523, allocations: 24.61 kB / 0.5209 GB, free: 34.66 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.283e-05/0.3524, allocations: 4.859 kB / 0.5209 GB, free: 34.66 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.63e-06/0.3524, allocations: 3.938 kB / 0.5209 GB, free: 34.65 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.026e-05/0.3524, allocations: 58.95 kB / 0.521 GB, free: 34.58 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 1.192e-06/0.3524, allocations: 0 / 0.521 GB, free: 34.58 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001543/0.3526, allocations: 70.95 kB / 0.5211 GB, free: 34.51 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.705e-05/0.3526, allocations: 81.05 kB / 0.5211 GB, free: 34.41 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.056e-05/0.3526, allocations: 89.86 kB / 0.5212 GB, free: 34.32 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.334e-06/0.3527, allocations: 25.7 kB / 0.5213 GB, free: 34.29 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.108e-05/0.3527, allocations: 80.14 kB / 0.5213 GB, free: 34.2 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.932e-05/0.3527, allocations: 2.562 kB / 0.5213 GB, free: 34.2 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.285e-06/0.3527, allocations: 0 / 0.5213 GB, free: 34.2 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.931e-05/0.3528, allocations: 314.8 kB / 0.5216 GB, free: 33.89 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.686e-06/0.3528, allocations: 128 / 0.5216 GB, free: 33.89 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.31e-06/0.3528, allocations: 6.844 kB / 0.5216 GB, free: 33.88 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.169e-05/0.3528, allocations: 62.55 kB / 0.5217 GB, free: 33.81 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.3528, allocations: 0 / 0.5217 GB, free: 33.81 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.573e-05/0.3529, allocations: 61.16 kB / 0.5218 GB, free: 33.75 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.683e-05/0.3529, allocations: 31.55 kB / 0.5218 GB, free: 33.71 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.558e-06/0.3529, allocations: 3.938 kB / 0.5218 GB, free: 33.71 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.168e-05/0.3529, allocations: 2.906 kB / 0.5218 GB, free: 33.71 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.124e-06/0.353, allocations: 3.328 kB / 0.5218 GB, free: 33.71 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.28e-06/0.353, allocations: 4.094 kB / 0.5218 GB, free: 33.71 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.685e-05/0.353, allocations: 0 / 0.5218 GB, free: 33.71 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.141e-06/0.353, allocations: 3.938 kB / 0.5218 GB, free: 33.7 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 4.958e-05/0.3531, allocations: 138.4 kB / 0.5219 GB, free: 33.55 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.046e-06/0.3531, allocations: 6.844 kB / 0.5219 GB, free: 33.55 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.456e-06/0.3531, allocations: 6.719 kB / 0.522 GB, free: 33.55 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.382e-06/0.3531, allocations: 0 / 0.522 GB, free: 33.55 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.857e-06/0.3531, allocations: 3.984 kB / 0.522 GB, free: 33.55 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.3531, allocations: 7.266 kB / 0.522 GB, free: 33.54 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.164e-05/0.3532, allocations: 152.6 kB / 0.5221 GB, free: 33.35 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.3532, allocations: 0 / 0.5221 GB, free: 33.35 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.022e-06/0.3532, allocations: 3.938 kB / 0.5221 GB, free: 33.34 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.834e-06/0.3532, allocations: 0 / 0.5221 GB, free: 33.34 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.591e-06/0.3532, allocations: 0 / 0.5221 GB, free: 33.34 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.3532, allocations: 2.812 kB / 0.5221 GB, free: 33.34 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.3532, allocations: 3.234 kB / 0.5221 GB, free: 33.34 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.392e-05/0.3533, allocations: 87.44 kB / 0.5222 GB, free: 33.24 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.641e-05/0.3533, allocations: 91.09 kB / 0.5223 GB, free: 33.14 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.269e-05/0.3533, allocations: 0 / 0.5223 GB, free: 33.14 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.428e-06/0.3533, allocations: 0 / 0.5223 GB, free: 33.14 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.213e-05/0.3533, allocations: 2.875 kB / 0.5223 GB, free: 33.14 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.505e-06/0.3533, allocations: 0 / 0.5223 GB, free: 33.14 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.148e-05/0.3534, allocations: 75.28 kB / 0.5224 GB, free: 33.07 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3534, allocations: 0 / 0.5224 GB, free: 33.07 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002787/0.3537, allocations: 68.56 kB / 0.5224 GB, free: 33.05 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007946/0.3545, allocations: 0.9308 MB / 0.5233 GB, free: 32.32 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 6.771e-05/0.3545, allocations: 71.86 kB / 0.5234 GB, free: 32.25 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.3545, allocations: 0 / 0.5234 GB, free: 32.25 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 1.581e-05/0.3546, allocations: 54.38 kB / 0.5235 GB, free: 32.18 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001148/0.3547, allocations: 3.031 kB / 0.5235 GB, free: 32.18 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002558/0.3549, allocations: 166.3 kB / 0.5236 GB, free: 32 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.667e-05/0.355, allocations: 0.6754 MB / 0.5243 GB, free: 31.3 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.335e-05/0.3551, allocations: 7.438 kB / 0.5243 GB, free: 31.3 MB / 378.7 MB Notification: Performance of SimCode: time 3.2e-07/0.3551, allocations: 2.875 kB / 0.5243 GB, free: 31.3 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.988/3.343, allocations: 2.138 MB / 0.5264 GB, free: 31.11 MB / 378.7 MB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestStrings.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestStrings.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestStrings.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestStrings.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestStrings_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_Utilities_TestStrings_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_Utilities_TestStrings.fmu > ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestStrings.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_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","../files/ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestStrings.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches