Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStrings.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001595/0.001595, allocations: 118.3 kB / 18.5 MB, free: 4.562 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0019/0.0019, allocations: 213.5 kB / 21.45 MB, free: 1.617 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.539/1.539, allocations: 230.6 MB / 254.8 MB, free: 15.27 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.237/0.237, allocations: 46.92 MB / 357.8 MB, free: 10.34 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Utilities.TestStrings,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Utilities_TestStrings",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestStrings,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Utilities_TestStrings",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00208/0.00208, allocations: 67.91 kB / 0.4916 GB, free: 8.016 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1317/0.1337, allocations: 65.98 MB / 0.556 GB, free: 5.902 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStrings): time 0.001751/0.1355, allocations: 483.3 kB / 0.5565 GB, free: 5.43 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.00266/0.1382, allocations: 1.318 MB / 0.5578 GB, free: 4.105 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.871e-05/0.1382, allocations: 0 / 0.5578 GB, free: 4.105 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.166e-05/0.1382, allocations: 0 / 0.5578 GB, free: 4.105 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 5.33e-06/0.1382, allocations: 0 / 0.5578 GB, free: 4.105 MB / 414.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/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.001817/0.14, allocations: 0.5804 MB / 0.5584 GB, free: 3.523 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 5.148e-05/0.1401, allocations: 0 / 0.5584 GB, free: 3.523 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.821e-05/0.1401, allocations: 4 kB / 0.5584 GB, free: 3.52 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.852e-05/0.1401, allocations: 11.92 kB / 0.5584 GB, free: 3.508 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.984e-05/0.1401, allocations: 0 / 0.5584 GB, free: 3.508 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.44e-06/0.1401, allocations: 0 / 0.5584 GB, free: 3.508 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01747/0.1576, allocations: 2.528 MB / 0.5608 GB, free: 1.5 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.432e-05/0.1576, allocations: 3.984 kB / 0.5608 GB, free: 1.496 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.499e-05/0.1577, allocations: 0 / 0.5608 GB, free: 1.496 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004313/0.1581, allocations: 163.6 kB / 0.561 GB, free: 1.336 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.1581, allocations: 0 / 0.561 GB, free: 1.336 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.1581, allocations: 4 kB / 0.561 GB, free: 1.332 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.161e-05/0.1581, allocations: 3.938 kB / 0.561 GB, free: 1.328 MB / 414.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.000475/0.1586, allocations: 381 kB / 0.5614 GB, free: 0.9023 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.46e-05/0.1586, allocations: 8.031 kB / 0.5614 GB, free: 0.8945 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.583e-05/0.1586, allocations: 192 / 0.5614 GB, free: 0.8945 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.014e-05/0.1587, allocations: 34.75 kB / 0.5614 GB, free: 0.8516 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.9e-05/0.1587, allocations: 0.9375 kB / 0.5614 GB, free: 0.8516 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001273/0.1588, allocations: 160.4 kB / 0.5616 GB, free: 0.6562 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.197e-05/0.1588, allocations: 4.375 kB / 0.5616 GB, free: 0.6523 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.244e-05/0.1589, allocations: 12.06 kB / 0.5616 GB, free: 0.6406 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.782e-05/0.159, allocations: 33.67 kB / 0.5616 GB, free: 0.6016 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.634e-06/0.159, allocations: 4 kB / 0.5616 GB, free: 0.5977 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.505e-06/0.159, allocations: 0 / 0.5616 GB, free: 0.5977 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.29e-06/0.159, allocations: 0 / 0.5616 GB, free: 0.5977 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.087e-05/0.159, allocations: 3.938 kB / 0.5616 GB, free: 0.5938 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001611/0.1592, allocations: 141.7 kB / 0.5618 GB, free: 416 kB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.64e-05/0.1592, allocations: 22.61 kB / 0.5618 GB, free: 384 kB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.862e-05/0.1592, allocations: 12.8 kB / 0.5618 GB, free: 368 kB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.937e-06/0.1592, allocations: 0 / 0.5618 GB, free: 368 kB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.481e-05/0.1593, allocations: 64.31 kB / 0.5618 GB, free: 288 kB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 1.032e-06/0.1593, allocations: 0 / 0.5618 GB, free: 288 kB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001918/0.1595, allocations: 63.34 kB / 0.5619 GB, free: 212 kB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6e-05/0.1596, allocations: 77.11 kB / 0.562 GB, free: 116 kB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.915e-05/0.1596, allocations: 93.86 kB / 0.5621 GB, free: 12 kB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.268e-05/0.1597, allocations: 29.83 kB / 0.5621 GB, free: 15.98 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.654e-05/0.1597, allocations: 80.14 kB / 0.5622 GB, free: 15.89 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.82e-05/0.1597, allocations: 3.938 kB / 0.5622 GB, free: 15.89 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.861e-05/0.1598, allocations: 21.7 kB / 0.5622 GB, free: 15.86 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001574/0.1599, allocations: 310.8 kB / 0.5625 GB, free: 15.55 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.159e-05/0.1599, allocations: 0 / 0.5625 GB, free: 15.55 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.612e-06/0.1599, allocations: 0 / 0.5625 GB, free: 15.55 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.369e-05/0.16, allocations: 68.33 kB / 0.5626 GB, free: 15.47 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.16, allocations: 3.938 kB / 0.5626 GB, free: 15.46 MB / 430.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.484e-05/0.1601, allocations: 67.33 kB / 0.5626 GB, free: 15.39 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.603e-05/0.1601, allocations: 29.7 kB / 0.5627 GB, free: 15.35 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.623e-06/0.1601, allocations: 4 kB / 0.5627 GB, free: 15.35 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.562e-05/0.1601, allocations: 0 / 0.5627 GB, free: 15.35 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.61e-07/0.1601, allocations: 0 / 0.5627 GB, free: 15.35 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.12e-06/0.1602, allocations: 0 / 0.5627 GB, free: 15.35 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.961e-05/0.1602, allocations: 3.953 kB / 0.5627 GB, free: 15.34 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.774e-06/0.1602, allocations: 0 / 0.5627 GB, free: 15.34 MB / 430.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 0.0001022/0.1603, allocations: 141.8 kB / 0.5628 GB, free: 15.19 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.514e-05/0.1603, allocations: 11.91 kB / 0.5628 GB, free: 15.18 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.103e-05/0.1603, allocations: 11.06 kB / 0.5628 GB, free: 15.17 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.1603, allocations: 0 / 0.5628 GB, free: 15.17 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.013e-06/0.1603, allocations: 7.938 kB / 0.5628 GB, free: 15.16 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.304e-06/0.1603, allocations: 0 / 0.5628 GB, free: 15.16 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001188/0.1604, allocations: 145.7 kB / 0.563 GB, free: 14.97 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.426e-06/0.1604, allocations: 3.938 kB / 0.563 GB, free: 14.97 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.31e-07/0.1604, allocations: 0 / 0.563 GB, free: 14.97 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.034e-06/0.1604, allocations: 0 / 0.563 GB, free: 14.97 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.215e-06/0.1605, allocations: 7.984 kB / 0.563 GB, free: 14.96 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.025e-06/0.1605, allocations: 4 kB / 0.563 GB, free: 14.96 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.076e-06/0.1605, allocations: 3.938 kB / 0.563 GB, free: 14.95 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001164/0.1606, allocations: 82.84 kB / 0.5631 GB, free: 14.85 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.557e-05/0.1606, allocations: 85.03 kB / 0.5631 GB, free: 14.75 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.301e-05/0.1606, allocations: 4 kB / 0.5632 GB, free: 14.74 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.033e-05/0.1606, allocations: 0 / 0.5632 GB, free: 14.74 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.611e-05/0.1607, allocations: 4.031 kB / 0.5632 GB, free: 14.74 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.276e-06/0.1607, allocations: 0 / 0.5632 GB, free: 14.74 MB / 430.1 MB Notification: Performance of sorting global known variables: time 4.23e-05/0.1607, allocations: 75.28 kB / 0.5632 GB, free: 14.66 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1607, allocations: 0 / 0.5632 GB, free: 14.66 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0003194/0.161, allocations: 71.86 kB / 0.5633 GB, free: 14.59 MB / 430.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.001515/0.1625, allocations: 0.929 MB / 0.5642 GB, free: 13.71 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0001236/0.1627, allocations: 59.41 kB / 0.5643 GB, free: 13.64 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.307e-06/0.1627, allocations: 4 kB / 0.5643 GB, free: 13.63 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 4.371e-05/0.1627, allocations: 51.41 kB / 0.5643 GB, free: 13.57 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001342/0.1628, allocations: 8.125 kB / 0.5643 GB, free: 13.56 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003936/0.1632, allocations: 138.6 kB / 0.5645 GB, free: 13.39 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003068/0.1635, allocations: 0.669 MB / 0.5651 GB, free: 12.69 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 6.623e-06/0.1636, allocations: 0 / 0.5651 GB, free: 12.69 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.345e-05/0.1636, allocations: 11.44 kB / 0.5651 GB, free: 12.68 MB / 430.1 MB Notification: Performance of SimCode: time 5.11e-07/0.1636, allocations: 3.938 kB / 0.5651 GB, free: 12.68 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01992/0.1835, allocations: 3.185 MB / 0.5682 GB, free: 9.586 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.527/8.71, allocations: 4.062 kB / 0.5682 GB, free: 9.582 MB / 430.1 MB " [Timeout remaining time 651] (rm -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStrings.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStrings.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStrings.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStrings.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStrings_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Utilities_TestStrings_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Utilities_TestStrings.fmu > ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStrings.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStrings_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestStrings/TestStrings.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStrings.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.754750866035465]