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.0007251/0.000725, allocations: 93.5 kB / 17.35 MB, free: 6.375 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.0007151/0.0007151, allocations: 174.3 kB / 18.25 MB, free: 5.523 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.197/1.197, allocations: 223.3 MB / 242.3 MB, free: 14.48 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.1657/0.1657, allocations: 44.25 MB / 337.7 MB, free: 2.441 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003014/0.0003014, allocations: 8.281 kB / 410.4 MB, free: 27.19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08769/0.08801, allocations: 61.93 MB / 472.4 MB, free: 13.24 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStrings): time 0.0004585/0.0885, allocations: 199 kB / 472.5 MB, free: 13.04 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002202/0.09072, allocations: 1.358 MB / 473.9 MB, free: 11.68 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.955e-06/0.09074, allocations: 0 / 473.9 MB, free: 11.68 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.408e-06/0.09077, allocations: 8 kB / 473.9 MB, free: 11.67 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 3.687e-06/0.09077, allocations: 0 / 473.9 MB, free: 11.67 MB / 350.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.001164/0.09194, allocations: 455 kB / 474.4 MB, free: 11.23 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 2.7e-05/0.09198, allocations: 0 / 474.4 MB, free: 11.23 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.604e-05/0.09201, allocations: 3.938 kB / 474.4 MB, free: 11.22 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.642e-05/0.09203, allocations: 7.984 kB / 474.4 MB, free: 11.21 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.638e-05/0.09205, allocations: 0 / 474.4 MB, free: 11.21 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.999e-06/0.09206, allocations: 0 / 474.4 MB, free: 11.21 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02594/0.118, allocations: 2.339 MB / 476.7 MB, free: 9.301 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.271e-05/0.118, allocations: 7.922 kB / 476.7 MB, free: 9.293 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.967e-05/0.1181, allocations: 25.7 kB / 476.7 MB, free: 9.262 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003277/0.1184, allocations: 155.8 kB / 476.9 MB, free: 9.109 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.1184, allocations: 3.984 kB / 476.9 MB, free: 9.105 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1184, allocations: 0 / 476.9 MB, free: 9.105 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.486e-06/0.1184, allocations: 0 / 476.9 MB, free: 9.105 MB / 350.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.0003077/0.1188, allocations: 377.2 kB / 477.3 MB, free: 8.684 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.664e-05/0.1188, allocations: 12.03 kB / 477.3 MB, free: 8.672 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.649e-05/0.1188, allocations: 30.75 kB / 477.3 MB, free: 8.633 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.138e-05/0.1189, allocations: 4.938 kB / 477.3 MB, free: 8.629 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.082e-05/0.1189, allocations: 164.4 kB / 477.5 MB, free: 8.43 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.934e-06/0.119, allocations: 384 / 477.5 MB, free: 8.43 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.152e-06/0.119, allocations: 384 / 477.5 MB, free: 8.43 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.37e-05/0.1191, allocations: 37.62 kB / 477.5 MB, free: 8.387 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.09e-06/0.1191, allocations: 3.938 kB / 477.5 MB, free: 8.383 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.613e-06/0.1191, allocations: 0 / 477.5 MB, free: 8.383 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.757e-06/0.1191, allocations: 0 / 477.5 MB, free: 8.383 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.51e-05/0.1191, allocations: 4 kB / 477.5 MB, free: 8.379 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001167/0.1192, allocations: 149.7 kB / 477.7 MB, free: 8.184 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.139e-05/0.1193, allocations: 14.58 kB / 477.7 MB, free: 8.16 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.342e-05/0.1193, allocations: 8.953 kB / 477.7 MB, free: 8.148 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.342e-06/0.1193, allocations: 7.922 kB / 477.7 MB, free: 8.141 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.002e-05/0.1193, allocations: 60.25 kB / 477.8 MB, free: 8.066 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 2.585e-06/0.1194, allocations: 0 / 477.8 MB, free: 8.066 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001616/0.1195, allocations: 67.47 kB / 477.8 MB, free: 7.988 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.82e-05/0.1196, allocations: 81.11 kB / 477.9 MB, free: 7.891 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.293e-05/0.1196, allocations: 89.86 kB / 478 MB, free: 7.793 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.308e-05/0.1196, allocations: 25.7 kB / 478 MB, free: 7.762 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.393e-05/0.1197, allocations: 88.08 kB / 478.1 MB, free: 7.672 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.157e-05/0.1197, allocations: 0 / 478.1 MB, free: 7.672 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.303e-05/0.1197, allocations: 13.7 kB / 478.1 MB, free: 7.652 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001126/0.1198, allocations: 314.8 kB / 478.4 MB, free: 7.336 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.627e-06/0.1199, allocations: 0 / 478.4 MB, free: 7.336 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.203e-06/0.1199, allocations: 8 kB / 478.4 MB, free: 7.328 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.614e-05/0.1199, allocations: 60.2 kB / 478.5 MB, free: 7.254 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.1199, allocations: 0 / 478.5 MB, free: 7.254 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.056e-05/0.12, allocations: 71.33 kB / 478.6 MB, free: 7.172 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.084e-05/0.1201, allocations: 33.7 kB / 478.6 MB, free: 7.133 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/0.1201, allocations: 0 / 478.6 MB, free: 7.133 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.448e-05/0.1201, allocations: 3.938 kB / 478.6 MB, free: 7.129 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.01e-07/0.1201, allocations: 0 / 478.6 MB, free: 7.129 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.949e-06/0.1201, allocations: 0 / 478.6 MB, free: 7.129 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.572e-05/0.1201, allocations: 4.094 kB / 478.6 MB, free: 7.125 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.342e-06/0.1201, allocations: 0 / 478.6 MB, free: 7.125 MB / 350.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.423e-05/0.1202, allocations: 139.5 kB / 478.7 MB, free: 6.973 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.508e-06/0.1202, allocations: 3.938 kB / 478.7 MB, free: 6.969 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.522e-05/0.1203, allocations: 11.06 kB / 478.7 MB, free: 6.957 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.362e-06/0.1203, allocations: 0 / 478.7 MB, free: 6.957 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.1203, allocations: 4 kB / 478.8 MB, free: 6.953 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.565e-06/0.1203, allocations: 0 / 478.8 MB, free: 6.953 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.418e-05/0.1204, allocations: 141.7 kB / 478.9 MB, free: 6.766 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.1204, allocations: 4 kB / 478.9 MB, free: 6.762 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.114e-06/0.1204, allocations: 3.938 kB / 478.9 MB, free: 6.758 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.056e-06/0.1204, allocations: 0 / 478.9 MB, free: 6.758 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.704e-06/0.1204, allocations: 7.938 kB / 478.9 MB, free: 6.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.404e-06/0.1204, allocations: 3.984 kB / 478.9 MB, free: 6.746 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.1204, allocations: 0 / 478.9 MB, free: 6.746 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.87e-05/0.1205, allocations: 82.88 kB / 479 MB, free: 6.641 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.541e-05/0.1206, allocations: 92.94 kB / 479.1 MB, free: 6.531 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.173e-05/0.1206, allocations: 4.031 kB / 479.1 MB, free: 6.527 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.746e-06/0.1206, allocations: 0 / 479.1 MB, free: 6.527 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.113e-05/0.1206, allocations: 0 / 479.1 MB, free: 6.527 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.789e-06/0.1206, allocations: 4 kB / 479.1 MB, free: 6.523 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.827e-05/0.1207, allocations: 83.28 kB / 479.2 MB, free: 6.441 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1207, allocations: 3.938 kB / 479.2 MB, free: 6.438 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002925/0.121, allocations: 63.98 kB / 479.2 MB, free: 6.375 MB / 350.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.0009127/0.1219, allocations: 0.9277 MB / 480.2 MB, free: 5.492 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.006e-05/0.122, allocations: 59.41 kB / 480.2 MB, free: 5.422 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.043e-06/0.122, allocations: 4.062 kB / 480.2 MB, free: 5.418 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.7e-05/0.122, allocations: 55.41 kB / 480.3 MB, free: 5.352 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001152/0.1221, allocations: 3.938 kB / 480.3 MB, free: 5.348 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002836/0.1224, allocations: 148.3 kB / 480.4 MB, free: 5.16 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000206/0.1226, allocations: 0.6731 MB / 481.1 MB, free: 4.461 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.751e-06/0.1227, allocations: 0 / 481.1 MB, free: 4.461 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.568e-05/0.1227, allocations: 11.44 kB / 481.1 MB, free: 4.449 MB / 350.1 MB Notification: Performance of SimCode: time 3.1e-07/0.1227, allocations: 0 / 481.1 MB, free: 4.449 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0434/0.1661, allocations: 2.908 MB / 484 MB, free: 1.645 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002147/0.1663, allocations: 233.6 kB / 484.2 MB, free: 1.387 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.747/1.913, allocations: 3.938 kB / 484.3 MB, free: 1.383 MB / 350.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