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.001089/0.001089, allocations: 107 kB / 17.33 MB, free: 6.02 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.001236/0.001236, allocations: 193.3 kB / 18.25 MB, free: 5.109 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.366/1.366, allocations: 222.9 MB / 241.9 MB, free: 15.42 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.2085/0.2085, allocations: 44.18 MB / 336.2 MB, free: 2.957 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001316/0.001316, allocations: 62.39 kB / 408 MB, free: 27.52 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1246/0.126, allocations: 60.82 MB / 468.8 MB, free: 14.67 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStrings): time 0.001746/0.1278, allocations: 0.5372 MB / 469.4 MB, free: 14.12 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002213/0.13, allocations: 1.319 MB / 470.7 MB, free: 12.8 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.353e-05/0.13, allocations: 0 / 470.7 MB, free: 12.8 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.75e-05/0.1301, allocations: 0 / 470.7 MB, free: 12.8 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.541e-06/0.1301, allocations: 0 / 470.7 MB, free: 12.8 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.00136/0.1314, allocations: 0.5068 MB / 471.2 MB, free: 12.29 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.352e-05/0.1315, allocations: 4 kB / 471.2 MB, free: 12.29 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.749e-05/0.1315, allocations: 7.984 kB / 471.2 MB, free: 12.28 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.566e-05/0.1316, allocations: 0 / 471.2 MB, free: 12.28 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.132e-05/0.1316, allocations: 4 kB / 471.2 MB, free: 12.28 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.312e-06/0.1316, allocations: 0 / 471.2 MB, free: 12.28 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02672/0.1583, allocations: 2.49 MB / 473.7 MB, free: 10.31 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.108e-05/0.1584, allocations: 0 / 473.7 MB, free: 10.31 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.779e-05/0.1584, allocations: 7.938 kB / 473.7 MB, free: 10.3 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003797/0.1588, allocations: 159.8 kB / 473.8 MB, free: 10.14 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.149e-06/0.1588, allocations: 4 kB / 473.9 MB, free: 10.14 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.1588, allocations: 0 / 473.9 MB, free: 10.14 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.461e-05/0.1588, allocations: 0 / 473.9 MB, free: 10.14 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.0004036/0.1592, allocations: 381.2 kB / 474.2 MB, free: 9.715 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.621e-05/0.1593, allocations: 12.03 kB / 474.2 MB, free: 9.703 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.749e-05/0.1593, allocations: 30.75 kB / 474.3 MB, free: 9.664 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.99e-05/0.1594, allocations: 0.9375 kB / 474.3 MB, free: 9.664 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001116/0.1595, allocations: 160.4 kB / 474.4 MB, free: 9.469 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.459e-05/0.1595, allocations: 384 / 474.4 MB, free: 9.469 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.238e-06/0.1595, allocations: 4.359 kB / 474.4 MB, free: 9.465 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.806e-05/0.1596, allocations: 33.64 kB / 474.5 MB, free: 9.426 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.033e-06/0.1596, allocations: 4 kB / 474.5 MB, free: 9.422 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.545e-06/0.1596, allocations: 0 / 474.5 MB, free: 9.422 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.268e-06/0.1597, allocations: 0 / 474.5 MB, free: 9.422 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.44e-05/0.1597, allocations: 7.938 kB / 474.5 MB, free: 9.414 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001583/0.1598, allocations: 141.7 kB / 474.6 MB, free: 9.227 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.581e-05/0.1599, allocations: 22.56 kB / 474.6 MB, free: 9.195 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.59e-05/0.1599, allocations: 8.953 kB / 474.6 MB, free: 9.184 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.181e-06/0.1599, allocations: 3.938 kB / 474.6 MB, free: 9.18 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.571e-05/0.16, allocations: 60.27 kB / 474.7 MB, free: 9.105 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 3.006e-06/0.16, allocations: 3.984 kB / 474.7 MB, free: 9.102 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001849/0.1602, allocations: 63.34 kB / 474.8 MB, free: 9.027 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.22e-05/0.1603, allocations: 85.09 kB / 474.9 MB, free: 8.926 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.05e-05/0.1603, allocations: 93.8 kB / 474.9 MB, free: 8.824 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.258e-05/0.1603, allocations: 25.7 kB / 475 MB, free: 8.793 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.676e-05/0.1604, allocations: 84.14 kB / 475.1 MB, free: 8.707 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.034e-05/0.1604, allocations: 0 / 475.1 MB, free: 8.707 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.881e-05/0.1604, allocations: 13.84 kB / 475.1 MB, free: 8.688 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001349/0.1606, allocations: 310.8 kB / 475.4 MB, free: 8.375 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.183e-05/0.1606, allocations: 4 kB / 475.4 MB, free: 8.371 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.382e-06/0.1606, allocations: 0 / 475.4 MB, free: 8.371 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.462e-05/0.1606, allocations: 64.27 kB / 475.4 MB, free: 8.293 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.1607, allocations: 0 / 475.4 MB, free: 8.293 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.639e-05/0.1607, allocations: 71.27 kB / 475.5 MB, free: 8.211 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.242e-05/0.1608, allocations: 33.8 kB / 475.5 MB, free: 8.172 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.4e-06/0.1608, allocations: 0 / 475.5 MB, free: 8.172 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.398e-05/0.1608, allocations: 0 / 475.5 MB, free: 8.172 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.804e-06/0.1608, allocations: 0 / 475.5 MB, free: 8.172 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.091e-06/0.1608, allocations: 0 / 475.5 MB, free: 8.172 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.98e-05/0.1609, allocations: 4 kB / 475.5 MB, free: 8.168 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.293e-06/0.1609, allocations: 3.938 kB / 475.5 MB, free: 8.164 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.561e-05/0.161, allocations: 139.5 kB / 475.7 MB, free: 8.012 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.221e-05/0.161, allocations: 7.938 kB / 475.7 MB, free: 8.004 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.471e-05/0.161, allocations: 11.08 kB / 475.7 MB, free: 7.992 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-06/0.161, allocations: 0 / 475.7 MB, free: 7.992 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.372e-06/0.161, allocations: 4 kB / 475.7 MB, free: 7.988 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.856e-06/0.161, allocations: 0 / 475.7 MB, free: 7.988 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000114/0.1612, allocations: 149.7 kB / 475.8 MB, free: 7.793 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.442e-06/0.1612, allocations: 0 / 475.8 MB, free: 7.793 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.745e-06/0.1612, allocations: 7.938 kB / 475.9 MB, free: 7.785 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.1612, allocations: 0 / 475.9 MB, free: 7.785 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.493e-06/0.1612, allocations: 0 / 475.9 MB, free: 7.785 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.303e-06/0.1612, allocations: 0 / 475.9 MB, free: 7.785 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.1612, allocations: 0 / 475.9 MB, free: 7.785 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001118/0.1613, allocations: 98.77 kB / 476 MB, free: 7.664 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.972e-05/0.1614, allocations: 84.95 kB / 476 MB, free: 7.562 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.283e-05/0.1614, allocations: 0 / 476 MB, free: 7.562 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.337e-06/0.1614, allocations: 0 / 476 MB, free: 7.562 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.326e-05/0.1614, allocations: 4 kB / 476 MB, free: 7.559 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.725e-06/0.1614, allocations: 3.938 kB / 476 MB, free: 7.555 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.737e-05/0.1615, allocations: 75.28 kB / 476.1 MB, free: 7.48 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1615, allocations: 4.031 kB / 476.1 MB, free: 7.477 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003116/0.1618, allocations: 67.98 kB / 476.2 MB, free: 7.41 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.001092/0.1629, allocations: 0.9217 MB / 477.1 MB, free: 6.531 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001003/0.163, allocations: 63.39 kB / 477.2 MB, free: 6.457 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.163, allocations: 0 / 477.2 MB, free: 6.457 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.348e-05/0.1631, allocations: 55.41 kB / 477.2 MB, free: 6.391 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001288/0.1632, allocations: 7.875 kB / 477.2 MB, free: 6.387 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000408/0.1636, allocations: 142.5 kB / 477.4 MB, free: 6.207 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002529/0.1639, allocations: 0.6769 MB / 478 MB, free: 5.504 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.444e-06/0.1639, allocations: 0 / 478 MB, free: 5.504 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.717e-05/0.1639, allocations: 7.438 kB / 478.1 MB, free: 5.496 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1639, allocations: 0 / 478.1 MB, free: 5.496 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01644/0.1804, allocations: 3.031 MB / 481.1 MB, free: 2.566 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002146/0.1806, allocations: 244.2 kB / 481.3 MB, free: 2.297 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.875/2.056, allocations: 3.938 kB / 481.3 MB, free: 2.293 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