Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestStrings.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Utilities.TestStrings,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestStrings",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestStrings,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestStrings",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001163/0.001163, allocations: 114.1 kB / 17.33 MB, free: 6.016 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001341/0.001341, allocations: 213.8 kB / 18.27 MB, free: 5.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.378/1.378, allocations: 227.4 MB / 246.4 MB, free: 10.79 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2314/0.2314, allocations: 46.11 MB / 343.8 MB, free: 11.68 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001306/0.001306, allocations: 77.5 kB / 417.1 MB, free: 19.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1107/0.1121, allocations: 62.44 MB / 479.6 MB, free: 5.527 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStrings): time 0.00162/0.1137, allocations: 0.5448 MB / 480.1 MB, free: 4.977 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002045/0.1158, allocations: 1.296 MB / 481.4 MB, free: 3.676 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.228e-05/0.1158, allocations: 0 / 481.4 MB, free: 3.676 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.372e-05/0.1158, allocations: 0 / 481.4 MB, free: 3.676 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.07e-06/0.1158, allocations: 0 / 481.4 MB, free: 3.676 MB / 350.1 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.001208/0.1171, allocations: 0.5146 MB / 481.9 MB, free: 3.16 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.653e-05/0.1171, allocations: 7.984 kB / 482 MB, free: 3.152 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.354e-05/0.1172, allocations: 4 kB / 482 MB, free: 3.148 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.373e-05/0.1172, allocations: 0 / 482 MB, free: 3.148 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.685e-05/0.1172, allocations: 3.938 kB / 482 MB, free: 3.145 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.801e-06/0.1172, allocations: 0 / 482 MB, free: 3.145 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02647/0.1437, allocations: 2.492 MB / 484.4 MB, free: 1.168 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.121e-05/0.1437, allocations: 4 kB / 484.5 MB, free: 1.164 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.142e-05/0.1437, allocations: 8 kB / 484.5 MB, free: 1.156 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002778/0.144, allocations: 159.8 kB / 484.6 MB, free: 1 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.144, allocations: 0 / 484.6 MB, free: 1 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.144, allocations: 3.938 kB / 484.6 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.044e-05/0.1441, allocations: 0 / 484.6 MB, free: 0.9961 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.0003068/0.1444, allocations: 373.3 kB / 485 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.976e-05/0.1444, allocations: 12.03 kB / 485 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.882e-05/0.1445, allocations: 30.75 kB / 485 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.151e-05/0.1445, allocations: 0.9375 kB / 485 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.258e-05/0.1446, allocations: 160.4 kB / 485.2 MB, free: 340 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.047e-05/0.1446, allocations: 4.375 kB / 485.2 MB, free: 336 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.544e-06/0.1446, allocations: 4.375 kB / 485.2 MB, free: 332 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.445e-05/0.1447, allocations: 45.56 kB / 485.2 MB, free: 280 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.621e-06/0.1447, allocations: 0 / 485.2 MB, free: 280 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.673e-06/0.1447, allocations: 0 / 485.2 MB, free: 280 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.717e-06/0.1447, allocations: 0 / 485.2 MB, free: 280 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.882e-05/0.1447, allocations: 4 kB / 485.2 MB, free: 276 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001136/0.1449, allocations: 141.7 kB / 485.4 MB, free: 84 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.337e-05/0.1449, allocations: 18.58 kB / 485.4 MB, free: 56 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.474e-05/0.1449, allocations: 12.94 kB / 485.4 MB, free: 40 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.52e-06/0.1449, allocations: 3.938 kB / 485.4 MB, free: 36 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.168e-05/0.145, allocations: 64.2 kB / 485.5 MB, free: 15.96 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 1.062e-06/0.145, allocations: 3.938 kB / 485.5 MB, free: 15.95 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001401/0.1451, allocations: 59.41 kB / 485.5 MB, free: 15.88 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.665e-05/0.1452, allocations: 81.05 kB / 485.6 MB, free: 15.79 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.53e-05/0.1452, allocations: 97.97 kB / 485.7 MB, free: 15.68 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.139e-05/0.1452, allocations: 29.7 kB / 485.7 MB, free: 15.64 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.08e-05/0.1453, allocations: 80.14 kB / 485.8 MB, free: 15.56 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.519e-05/0.1453, allocations: 4 kB / 485.8 MB, free: 15.56 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.54e-05/0.1453, allocations: 9.719 kB / 485.8 MB, free: 15.54 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.377e-05/0.1454, allocations: 314.8 kB / 486.1 MB, free: 15.23 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.385e-06/0.1454, allocations: 0 / 486.1 MB, free: 15.23 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.39e-06/0.1454, allocations: 0 / 486.1 MB, free: 15.23 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.21e-05/0.1455, allocations: 68.27 kB / 486.2 MB, free: 15.14 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.1455, allocations: 0 / 486.2 MB, free: 15.14 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.007e-05/0.1456, allocations: 71.33 kB / 486.3 MB, free: 15.06 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.124e-05/0.1456, allocations: 29.7 kB / 486.3 MB, free: 15.03 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.977e-06/0.1456, allocations: 0 / 486.3 MB, free: 15.03 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.225e-05/0.1456, allocations: 0 / 486.3 MB, free: 15.03 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.42e-07/0.1456, allocations: 0 / 486.3 MB, free: 15.03 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.329e-06/0.1456, allocations: 0 / 486.3 MB, free: 15.03 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.71e-05/0.1457, allocations: 4 kB / 486.3 MB, free: 15.02 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.022e-06/0.1457, allocations: 4.031 kB / 486.3 MB, free: 15.02 MB / 366.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 7.649e-05/0.1458, allocations: 135.5 kB / 486.4 MB, free: 14.87 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.144e-05/0.1458, allocations: 7.938 kB / 486.5 MB, free: 14.86 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.574e-06/0.1458, allocations: 3.125 kB / 486.5 MB, free: 14.86 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.282e-06/0.1458, allocations: 0 / 486.5 MB, free: 14.86 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.447e-06/0.1458, allocations: 0 / 486.5 MB, free: 14.86 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.023e-06/0.1458, allocations: 0 / 486.5 MB, free: 14.86 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.076e-05/0.1459, allocations: 149.7 kB / 486.6 MB, free: 14.67 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.1459, allocations: 7.938 kB / 486.6 MB, free: 14.66 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.653e-06/0.1459, allocations: 3.938 kB / 486.6 MB, free: 14.66 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.1459, allocations: 4 kB / 486.6 MB, free: 14.65 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.171e-06/0.1459, allocations: 0 / 486.6 MB, free: 14.65 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.1459, allocations: 0 / 486.6 MB, free: 14.65 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.1459, allocations: 0 / 486.6 MB, free: 14.65 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.784e-05/0.146, allocations: 94.81 kB / 486.7 MB, free: 14.54 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.572e-05/0.1461, allocations: 84.95 kB / 486.8 MB, free: 14.43 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.327e-05/0.1461, allocations: 7.938 kB / 486.8 MB, free: 14.43 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.088e-05/0.1461, allocations: 8.031 kB / 486.8 MB, free: 14.42 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.034e-05/0.1461, allocations: 0 / 486.8 MB, free: 14.42 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.384e-06/0.1461, allocations: 0 / 486.8 MB, free: 14.42 MB / 366.1 MB Notification: Performance of sorting global known variables: time 2.535e-05/0.1462, allocations: 75.28 kB / 486.9 MB, free: 14.34 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1462, allocations: 0 / 486.9 MB, free: 14.34 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002939/0.1465, allocations: 71.98 kB / 487 MB, free: 14.27 MB / 366.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.00105/0.1475, allocations: 0.9267 MB / 487.9 MB, free: 13.38 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 9.29e-05/0.1476, allocations: 55.41 kB / 487.9 MB, free: 13.31 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.1476, allocations: 0 / 487.9 MB, free: 13.31 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.373e-05/0.1477, allocations: 67.45 kB / 488 MB, free: 13.23 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001275/0.1478, allocations: 0 / 488 MB, free: 13.23 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00035/0.1482, allocations: 142.5 kB / 488.1 MB, free: 13.05 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002291/0.1484, allocations: 0.669 MB / 488.8 MB, free: 12.36 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.622e-06/0.1484, allocations: 0 / 488.8 MB, free: 12.36 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.188e-05/0.1485, allocations: 11.44 kB / 488.8 MB, free: 12.35 MB / 366.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1485, allocations: 0 / 488.8 MB, free: 12.35 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5067/0.6552, allocations: 2.999 MB / 491.8 MB, free: 9.438 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003291/0.6555, allocations: 233.6 kB / 492 MB, free: 9.18 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.282/2.938, allocations: 3.75 kB / 492.1 MB, free: 9.18 MB / 366.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestStrings.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestStrings.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestStrings.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestStrings.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Utilities.TestStrings_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Utilities_TestStrings_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Utilities_TestStrings.fmu > ModelicaTest_trunk_ModelicaTest.Utilities.TestStrings.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Utilities.TestStrings.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches