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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001752/0.001752, allocations: 120.2 kB / 18.49 MB, free: 4.559 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002114/0.002114, allocations: 214.2 kB / 21.46 MB, free: 1.605 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.456/1.456, allocations: 230.4 MB / 254.7 MB, free: 15.02 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2286/0.2286, allocations: 46.92 MB / 357.7 MB, free: 10.27 MB / 286.1 MB " [Timeout remaining time 180] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestStrings,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestStrings",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002229/0.002229, allocations: 79.86 kB / 0.4916 GB, free: 7.781 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1128/0.1151, allocations: 66.04 MB / 0.5561 GB, free: 5.617 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStrings): time 0.001505/0.1166, allocations: 490 kB / 0.5566 GB, free: 5.133 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.002523/0.1191, allocations: 1.337 MB / 0.5579 GB, free: 3.793 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.398e-05/0.1191, allocations: 0 / 0.5579 GB, free: 3.793 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.545e-05/0.1191, allocations: 0 / 0.5579 GB, free: 3.793 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 7.063e-06/0.1191, allocations: 3.938 kB / 0.5579 GB, free: 3.789 MB / 414.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:4:3-230: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.00142/0.1206, allocations: 0.6038 MB / 0.5585 GB, free: 3.184 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 3.991e-05/0.1206, allocations: 4 kB / 0.5585 GB, free: 3.18 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.108e-05/0.1206, allocations: 0 / 0.5585 GB, free: 3.18 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.659e-05/0.1206, allocations: 7.938 kB / 0.5585 GB, free: 3.172 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.578e-05/0.1207, allocations: 3.938 kB / 0.5585 GB, free: 3.168 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 4.609e-06/0.1207, allocations: 4 kB / 0.5585 GB, free: 3.164 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02733/0.148, allocations: 3.401 MB / 0.5618 GB, free: 0.5117 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.535e-05/0.148, allocations: 4 kB / 0.5618 GB, free: 0.5078 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.466e-05/0.148, allocations: 0 / 0.5618 GB, free: 0.5078 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004302/0.1485, allocations: 167.6 kB / 0.562 GB, free: 352 kB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.13e-06/0.1485, allocations: 0 / 0.562 GB, free: 352 kB / 414.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.1485, allocations: 0 / 0.562 GB, free: 352 kB / 414.1 MB Notification: Performance of Transformations before backend: time 6.582e-06/0.1485, allocations: 0 / 0.562 GB, free: 352 kB / 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.000494/0.149, allocations: 388.9 kB / 0.5624 GB, free: 15.91 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.56e-05/0.149, allocations: 8.031 kB / 0.5624 GB, free: 15.9 MB / 430.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.182e-05/0.149, allocations: 4.188 kB / 0.5624 GB, free: 15.89 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.904e-05/0.1491, allocations: 30.75 kB / 0.5624 GB, free: 15.86 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.731e-05/0.1491, allocations: 0.9375 kB / 0.5624 GB, free: 15.86 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001306/0.1492, allocations: 164.4 kB / 0.5626 GB, free: 15.66 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.267e-05/0.1492, allocations: 384 / 0.5626 GB, free: 15.66 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.494e-06/0.1492, allocations: 384 / 0.5626 GB, free: 15.66 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001019/0.1493, allocations: 42 kB / 0.5626 GB, free: 15.61 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.488e-06/0.1494, allocations: 0 / 0.5626 GB, free: 15.61 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.904e-06/0.1494, allocations: 0 / 0.5626 GB, free: 15.61 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.44e-06/0.1494, allocations: 0 / 0.5626 GB, free: 15.61 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.527e-05/0.1494, allocations: 7.938 kB / 0.5626 GB, free: 15.6 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001566/0.1495, allocations: 149.7 kB / 0.5628 GB, free: 15.41 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.49e-05/0.1496, allocations: 14.58 kB / 0.5628 GB, free: 15.38 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.879e-05/0.1496, allocations: 8.953 kB / 0.5628 GB, free: 15.37 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.937e-06/0.1496, allocations: 4 kB / 0.5628 GB, free: 15.37 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.799e-05/0.1497, allocations: 60.2 kB / 0.5628 GB, free: 15.29 MB / 430.1 MB Notification: Performance of pre-optimization done (n=1): time 9.22e-07/0.1497, allocations: 0 / 0.5628 GB, free: 15.29 MB / 430.1 MB Notification: Performance of matching and sorting (n=1): time 0.000193/0.1499, allocations: 71.33 kB / 0.5629 GB, free: 15.21 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.72e-05/0.1499, allocations: 77.11 kB / 0.563 GB, free: 15.12 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.72e-05/0.15, allocations: 89.86 kB / 0.5631 GB, free: 15.02 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.929e-05/0.15, allocations: 25.7 kB / 0.5631 GB, free: 14.99 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.166e-05/0.1501, allocations: 88.2 kB / 0.5632 GB, free: 14.9 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.012e-05/0.1501, allocations: 4 kB / 0.5632 GB, free: 14.89 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.457e-05/0.1501, allocations: 9.719 kB / 0.5632 GB, free: 14.88 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001609/0.1503, allocations: 314.8 kB / 0.5635 GB, free: 14.56 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.376e-05/0.1503, allocations: 4 kB / 0.5635 GB, free: 14.56 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.502e-06/0.1503, allocations: 0 / 0.5635 GB, free: 14.56 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.685e-05/0.1504, allocations: 68.19 kB / 0.5636 GB, free: 14.48 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.1504, allocations: 64 / 0.5636 GB, free: 14.48 MB / 430.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.415e-05/0.1505, allocations: 63.34 kB / 0.5636 GB, free: 14.4 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.752e-05/0.1505, allocations: 41.64 kB / 0.5637 GB, free: 14.36 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.92e-06/0.1505, allocations: 0 / 0.5637 GB, free: 14.36 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.61e-05/0.1505, allocations: 0 / 0.5637 GB, free: 14.36 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.296e-06/0.1505, allocations: 3.984 kB / 0.5637 GB, free: 14.35 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.93e-06/0.1505, allocations: 0 / 0.5637 GB, free: 14.35 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.004e-05/0.1506, allocations: 3.953 kB / 0.5637 GB, free: 14.35 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.228e-06/0.1506, allocations: 4 kB / 0.5637 GB, free: 14.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.0001026/0.1507, allocations: 135.6 kB / 0.5638 GB, free: 14.2 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.251e-05/0.1507, allocations: 7.938 kB / 0.5638 GB, free: 14.19 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.231e-05/0.1507, allocations: 7.125 kB / 0.5638 GB, free: 14.18 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.803e-06/0.1507, allocations: 0 / 0.5638 GB, free: 14.18 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.1507, allocations: 0 / 0.5638 GB, free: 14.18 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/0.1507, allocations: 0 / 0.5638 GB, free: 14.18 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001313/0.1508, allocations: 145.7 kB / 0.564 GB, free: 13.99 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.1508, allocations: 0 / 0.564 GB, free: 13.99 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.975e-06/0.1508, allocations: 4 kB / 0.564 GB, free: 13.99 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.604e-06/0.1508, allocations: 3.938 kB / 0.564 GB, free: 13.98 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.724e-06/0.1509, allocations: 0 / 0.564 GB, free: 13.98 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.1509, allocations: 4 kB / 0.564 GB, free: 13.98 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.1509, allocations: 0 / 0.564 GB, free: 13.98 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001312/0.151, allocations: 94.77 kB / 0.5641 GB, free: 13.86 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.791e-05/0.151, allocations: 77.11 kB / 0.5641 GB, free: 13.77 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.604e-05/0.151, allocations: 3.938 kB / 0.5641 GB, free: 13.77 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.02e-05/0.1511, allocations: 0 / 0.5641 GB, free: 13.77 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.242e-05/0.1511, allocations: 8 kB / 0.5641 GB, free: 13.76 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.514e-06/0.1511, allocations: 4.031 kB / 0.5641 GB, free: 13.75 MB / 430.1 MB Notification: Performance of sorting global known variables: time 4.342e-05/0.1511, allocations: 75.28 kB / 0.5642 GB, free: 13.68 MB / 430.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1511, allocations: 3.938 kB / 0.5642 GB, free: 13.68 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.000406/0.1515, allocations: 75.8 kB / 0.5643 GB, free: 13.6 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.001606/0.1531, allocations: 0.9385 MB / 0.5652 GB, free: 12.69 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0001281/0.1533, allocations: 55.41 kB / 0.5653 GB, free: 12.62 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.1533, allocations: 0 / 0.5653 GB, free: 12.62 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 4.486e-05/0.1533, allocations: 55.41 kB / 0.5653 GB, free: 12.55 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001377/0.1535, allocations: 7.375 kB / 0.5653 GB, free: 12.55 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004374/0.1539, allocations: 154.6 kB / 0.5655 GB, free: 12.36 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003462/0.1542, allocations: 0.669 MB / 0.5661 GB, free: 11.66 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 7.835e-06/0.1542, allocations: 0 / 0.5661 GB, free: 11.66 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.99e-05/0.1543, allocations: 11.44 kB / 0.5661 GB, free: 11.65 MB / 430.1 MB Notification: Performance of SimCode: time 7.61e-07/0.1543, allocations: 0 / 0.5661 GB, free: 11.65 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02058/0.1749, allocations: 3.262 MB / 0.5693 GB, free: 8.465 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.271/8.446, allocations: 4.062 kB / 0.5693 GB, free: 8.461 MB / 430.1 MB " [Timeout remaining time 651] (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) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_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_trunk_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.329419777030125]