Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.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.001426/0.001426, allocations: 118.6 kB / 18.5 MB, free: 4.566 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.001454/0.001454, allocations: 214.6 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.481/1.481, allocations: 230.2 MB / 254.5 MB, free: 15.24 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.231/0.231, allocations: 46.9 MB / 357.4 MB, free: 10.49 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.TestFiles,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestFiles",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestFiles,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestFiles",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002275/0.002275, allocations: 83.88 kB / 0.4912 GB, free: 8.367 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1385/0.1408, allocations: 65.99 MB / 0.5557 GB, free: 6.246 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.001751/0.1426, allocations: 494.2 kB / 0.5561 GB, free: 5.758 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.002496/0.1451, allocations: 1.278 MB / 0.5574 GB, free: 4.477 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.261e-05/0.1451, allocations: 0 / 0.5574 GB, free: 4.477 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.699e-05/0.1451, allocations: 0 / 0.5574 GB, free: 4.477 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002168/0.1453, allocations: 11.94 kB / 0.5574 GB, free: 4.465 MB / 414.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:466:3-498:12:writable] Warning: Pure function 'ModelicaTest.Utilities.Files' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.001458/0.1468, allocations: 246.6 kB / 0.5576 GB, free: 4.227 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 6.702e-05/0.1469, allocations: 4 kB / 0.5576 GB, free: 4.223 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.995e-05/0.1469, allocations: 4 kB / 0.5576 GB, free: 4.219 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.77e-05/0.1469, allocations: 0 / 0.5576 GB, free: 4.219 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.527e-05/0.147, allocations: 11.92 kB / 0.5577 GB, free: 4.207 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 7.945e-06/0.147, allocations: 4 kB / 0.5577 GB, free: 4.203 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004009/0.151, allocations: 0.686 MB / 0.5583 GB, free: 3.637 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 9.207e-06/0.151, allocations: 0 / 0.5583 GB, free: 3.637 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.823e-05/0.1511, allocations: 7.922 kB / 0.5583 GB, free: 3.629 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00033/0.1514, allocations: 179.6 kB / 0.5585 GB, free: 3.453 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/0.1514, allocations: 3.984 kB / 0.5585 GB, free: 3.449 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.1514, allocations: 0 / 0.5585 GB, free: 3.449 MB / 414.1 MB Notification: Performance of Transformations before backend: time 9.538e-06/0.1514, allocations: 0 / 0.5585 GB, free: 3.449 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.0005299/0.1519, allocations: 384.8 kB / 0.5589 GB, free: 3.016 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.932e-05/0.152, allocations: 15.97 kB / 0.5589 GB, free: 3 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.323e-05/0.152, allocations: 30.75 kB / 0.5589 GB, free: 2.961 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.046e-05/0.152, allocations: 8.938 kB / 0.5589 GB, free: 2.953 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001588/0.1522, allocations: 164.4 kB / 0.5591 GB, free: 2.754 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.244e-05/0.1522, allocations: 8.375 kB / 0.5591 GB, free: 2.746 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.183e-05/0.1522, allocations: 384 / 0.5591 GB, free: 2.746 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.931e-05/0.1523, allocations: 30.2 kB / 0.5591 GB, free: 2.711 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.43e-05/0.1523, allocations: 15.86 kB / 0.5591 GB, free: 2.695 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.983e-06/0.1523, allocations: 0 / 0.5591 GB, free: 2.695 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.108e-06/0.1523, allocations: 0 / 0.5591 GB, free: 2.695 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.619e-05/0.1524, allocations: 0 / 0.5591 GB, free: 2.695 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002176/0.1526, allocations: 149.7 kB / 0.5593 GB, free: 2.5 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.117e-05/0.1526, allocations: 22.58 kB / 0.5593 GB, free: 2.469 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.546e-05/0.1527, allocations: 4.859 kB / 0.5593 GB, free: 2.461 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.303e-06/0.1527, allocations: 4.062 kB / 0.5593 GB, free: 2.457 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.509e-05/0.1527, allocations: 60.2 kB / 0.5594 GB, free: 2.383 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 9.42e-07/0.1527, allocations: 0 / 0.5594 GB, free: 2.383 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002763/0.153, allocations: 67.33 kB / 0.5594 GB, free: 2.305 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.473e-05/0.1531, allocations: 85.11 kB / 0.5595 GB, free: 2.203 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.318e-05/0.1531, allocations: 93.98 kB / 0.5596 GB, free: 2.102 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.811e-05/0.1532, allocations: 25.7 kB / 0.5596 GB, free: 2.07 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.66e-05/0.1532, allocations: 88.12 kB / 0.5597 GB, free: 1.98 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.71e-05/0.1533, allocations: 0 / 0.5597 GB, free: 1.98 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.944e-05/0.1533, allocations: 9.719 kB / 0.5597 GB, free: 1.965 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002132/0.1535, allocations: 314.8 kB / 0.56 GB, free: 1.648 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.919e-06/0.1535, allocations: 4 kB / 0.56 GB, free: 1.645 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.989e-06/0.1535, allocations: 4.062 kB / 0.56 GB, free: 1.641 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001129/0.1536, allocations: 64.33 kB / 0.5601 GB, free: 1.562 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.1536, allocations: 0 / 0.5601 GB, free: 1.562 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.767e-05/0.1537, allocations: 71.34 kB / 0.5602 GB, free: 1.48 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.472e-05/0.1538, allocations: 33.64 kB / 0.5602 GB, free: 1.441 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.907e-06/0.1538, allocations: 4 kB / 0.5602 GB, free: 1.438 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.293e-05/0.1538, allocations: 0 / 0.5602 GB, free: 1.438 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.31e-07/0.1538, allocations: 0 / 0.5602 GB, free: 1.438 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.438e-06/0.1538, allocations: 0 / 0.5602 GB, free: 1.438 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.713e-05/0.1538, allocations: 0 / 0.5602 GB, free: 1.438 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.858e-06/0.1538, allocations: 11.95 kB / 0.5602 GB, free: 1.426 MB / 414.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.0001113/0.1539, allocations: 143.5 kB / 0.5603 GB, free: 1.27 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.372e-05/0.1539, allocations: 3.938 kB / 0.5603 GB, free: 1.266 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.306e-06/0.1539, allocations: 3.125 kB / 0.5603 GB, free: 1.266 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.113e-06/0.1539, allocations: 0 / 0.5603 GB, free: 1.266 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.1539, allocations: 7.938 kB / 0.5604 GB, free: 1.258 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.475e-06/0.1539, allocations: 0 / 0.5604 GB, free: 1.258 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001279/0.1541, allocations: 145.7 kB / 0.5605 GB, free: 1.066 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.62e-07/0.1541, allocations: 0 / 0.5605 GB, free: 1.066 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.4e-07/0.1541, allocations: 4 kB / 0.5605 GB, free: 1.062 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.919e-06/0.1541, allocations: 7.938 kB / 0.5605 GB, free: 1.055 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.005e-06/0.1541, allocations: 4 kB / 0.5605 GB, free: 1.051 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.01e-07/0.1541, allocations: 0 / 0.5605 GB, free: 1.051 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.1541, allocations: 3.938 kB / 0.5605 GB, free: 1.047 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001216/0.1542, allocations: 94.83 kB / 0.5606 GB, free: 0.9297 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.259e-05/0.1543, allocations: 77.11 kB / 0.5607 GB, free: 0.8359 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.733e-05/0.1543, allocations: 7.938 kB / 0.5607 GB, free: 0.8281 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.153e-05/0.1543, allocations: 4.031 kB / 0.5607 GB, free: 0.8242 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.476e-05/0.1543, allocations: 0 / 0.5607 GB, free: 0.8242 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.815e-06/0.1543, allocations: 0 / 0.5607 GB, free: 0.8242 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.612e-05/0.1544, allocations: 79.28 kB / 0.5608 GB, free: 0.7461 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1544, allocations: 0 / 0.5608 GB, free: 0.7461 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003012/0.1547, allocations: 59.86 kB / 0.5608 GB, free: 0.6875 MB / 414.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.001244/0.1559, allocations: 0.8722 MB / 0.5617 GB, free: 15.84 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0001234/0.1561, allocations: 63.33 kB / 0.5617 GB, free: 15.77 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.744e-06/0.1561, allocations: 0 / 0.5617 GB, free: 15.77 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 4.559e-05/0.1561, allocations: 55.41 kB / 0.5618 GB, free: 15.7 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001449/0.1563, allocations: 14.5 kB / 0.5618 GB, free: 15.69 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000375/0.1566, allocations: 138.5 kB / 0.5619 GB, free: 15.52 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003444/0.157, allocations: 0.6729 MB / 0.5626 GB, free: 14.82 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 8.456e-06/0.157, allocations: 0 / 0.5626 GB, free: 14.82 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.554e-05/0.157, allocations: 11.44 kB / 0.5626 GB, free: 14.8 MB / 430.1 MB Notification: Performance of SimCode: time 3.11e-07/0.157, allocations: 0 / 0.5626 GB, free: 14.8 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02714/0.1842, allocations: 2.519 MB / 0.5651 GB, free: 12.35 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.333/8.517, allocations: 6.703 kB / 0.5651 GB, free: 12.34 MB / 430.1 MB " [Timeout remaining time 651] (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Utilities_TestFiles_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Utilities_TestFiles.fmu > ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestFiles/TestFiles.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.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.392860003281385]