Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.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.001382/0.001382, allocations: 114.3 kB / 18.49 MB, free: 4.535 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.001501/0.001501, allocations: 220.7 kB / 21.46 MB, free: 1.582 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.491/1.491, allocations: 230.4 MB / 254.7 MB, free: 15.03 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.2203/0.2203, allocations: 46.92 MB / 357.7 MB, free: 10.17 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.TestInternal,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestInternal",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestInternal,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestInternal",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002299/0.002299, allocations: 79.86 kB / 0.4916 GB, free: 7.707 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1212/0.1235, allocations: 66.04 MB / 0.5561 GB, free: 5.539 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.001579/0.125, allocations: 490.2 kB / 0.5566 GB, free: 5.055 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006818/0.1257, allocations: 259.8 kB / 0.5568 GB, free: 4.801 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.463e-05/0.1257, allocations: 0 / 0.5568 GB, free: 4.801 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.455e-05/0.1258, allocations: 0 / 0.5568 GB, free: 4.801 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 5.4e-06/0.1258, allocations: 4 kB / 0.5568 GB, free: 4.797 MB / 414.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:409:3-464:15:writable] Warning: Pure function 'ModelicaTest.Utilities.Internal' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0003349/0.1261, allocations: 55.81 kB / 0.5569 GB, free: 4.742 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 5.717e-05/0.1262, allocations: 4 kB / 0.5569 GB, free: 4.738 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.118e-05/0.1262, allocations: 7.969 kB / 0.5569 GB, free: 4.73 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.796e-05/0.1262, allocations: 0 / 0.5569 GB, free: 4.73 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.459e-05/0.1262, allocations: 0 / 0.5569 GB, free: 4.73 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 9.689e-06/0.1262, allocations: 0 / 0.5569 GB, free: 4.73 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002253/0.1265, allocations: 59.95 kB / 0.557 GB, free: 4.672 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.011e-05/0.1265, allocations: 8 kB / 0.557 GB, free: 4.664 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.377e-05/0.1265, allocations: 0 / 0.557 GB, free: 4.664 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001447/0.1266, allocations: 55.8 kB / 0.557 GB, free: 4.609 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.1267, allocations: 4 kB / 0.557 GB, free: 4.605 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.1267, allocations: 0 / 0.557 GB, free: 4.605 MB / 414.1 MB Notification: Performance of Transformations before backend: time 4.579e-06/0.1267, allocations: 0 / 0.557 GB, free: 4.605 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.0004172/0.1271, allocations: 361.1 kB / 0.5574 GB, free: 4.195 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.095e-05/0.1271, allocations: 8.031 kB / 0.5574 GB, free: 4.188 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.157e-05/0.1271, allocations: 192 / 0.5574 GB, free: 4.188 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.765e-05/0.1272, allocations: 34.73 kB / 0.5574 GB, free: 4.145 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.418e-05/0.1272, allocations: 0.9375 kB / 0.5574 GB, free: 4.145 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001248/0.1273, allocations: 168.3 kB / 0.5576 GB, free: 3.941 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.632e-06/0.1273, allocations: 4.375 kB / 0.5576 GB, free: 3.938 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.04e-05/0.1273, allocations: 384 / 0.5576 GB, free: 3.938 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001054/0.1274, allocations: 34.02 kB / 0.5576 GB, free: 3.898 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.524e-06/0.1274, allocations: 0 / 0.5576 GB, free: 3.898 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.364e-06/0.1274, allocations: 3.938 kB / 0.5576 GB, free: 3.895 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.85e-06/0.1274, allocations: 0 / 0.5576 GB, free: 3.895 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.782e-05/0.1275, allocations: 0 / 0.5576 GB, free: 3.895 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000162/0.1276, allocations: 153.7 kB / 0.5578 GB, free: 3.695 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.781e-05/0.1277, allocations: 26.52 kB / 0.5578 GB, free: 3.66 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.592e-05/0.1277, allocations: 4.859 kB / 0.5578 GB, free: 3.652 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.927e-06/0.1277, allocations: 3.938 kB / 0.5578 GB, free: 3.648 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.392e-05/0.1278, allocations: 64.27 kB / 0.5579 GB, free: 3.57 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 1.092e-06/0.1278, allocations: 0 / 0.5579 GB, free: 3.57 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.000205/0.128, allocations: 67.39 kB / 0.5579 GB, free: 3.492 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.793e-05/0.128, allocations: 77.11 kB / 0.558 GB, free: 3.398 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.91e-05/0.1281, allocations: 97.94 kB / 0.5581 GB, free: 3.293 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.177e-05/0.1281, allocations: 25.7 kB / 0.5581 GB, free: 3.262 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.94e-05/0.1281, allocations: 81.8 kB / 0.5582 GB, free: 3.18 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.356e-05/0.1282, allocations: 3.938 kB / 0.5582 GB, free: 3.176 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.071e-05/0.1282, allocations: 13.72 kB / 0.5582 GB, free: 3.156 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000179/0.1284, allocations: 318.8 kB / 0.5585 GB, free: 2.836 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.255e-05/0.1284, allocations: 0 / 0.5585 GB, free: 2.836 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.777e-06/0.1284, allocations: 4 kB / 0.5585 GB, free: 2.832 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.548e-05/0.1285, allocations: 60.33 kB / 0.5586 GB, free: 2.758 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.764e-06/0.1285, allocations: 0 / 0.5586 GB, free: 2.758 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.174e-05/0.1285, allocations: 59.41 kB / 0.5586 GB, free: 2.688 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.5e-05/0.1286, allocations: 45.62 kB / 0.5587 GB, free: 2.637 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.009e-06/0.1286, allocations: 0 / 0.5587 GB, free: 2.637 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.393e-05/0.1286, allocations: 0 / 0.5587 GB, free: 2.637 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.11e-07/0.1286, allocations: 0 / 0.5587 GB, free: 2.637 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.225e-06/0.1286, allocations: 3.938 kB / 0.5587 GB, free: 2.633 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.463e-05/0.1286, allocations: 0 / 0.5587 GB, free: 2.633 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.603e-06/0.1286, allocations: 4.031 kB / 0.5587 GB, free: 2.629 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.0001037/0.1287, allocations: 135.5 kB / 0.5588 GB, free: 2.48 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.013e-05/0.1288, allocations: 3.938 kB / 0.5588 GB, free: 2.477 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.698e-06/0.1288, allocations: 3.125 kB / 0.5588 GB, free: 2.477 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.11e-07/0.1288, allocations: 0 / 0.5588 GB, free: 2.477 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.1288, allocations: 0 / 0.5588 GB, free: 2.477 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.538e-06/0.1288, allocations: 7.984 kB / 0.5588 GB, free: 2.469 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001195/0.1289, allocations: 141.7 kB / 0.559 GB, free: 2.281 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.92e-07/0.1289, allocations: 0 / 0.559 GB, free: 2.281 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.2e-07/0.1289, allocations: 4 kB / 0.559 GB, free: 2.277 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.446e-06/0.1289, allocations: 3.938 kB / 0.559 GB, free: 2.273 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.652e-06/0.1289, allocations: 0 / 0.559 GB, free: 2.273 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.01e-07/0.1289, allocations: 4 kB / 0.559 GB, free: 2.27 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.1289, allocations: 0 / 0.559 GB, free: 2.27 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001017/0.129, allocations: 94.7 kB / 0.5591 GB, free: 2.152 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.535e-05/0.1291, allocations: 81.11 kB / 0.5591 GB, free: 2.055 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.436e-05/0.1291, allocations: 3.938 kB / 0.5591 GB, free: 2.051 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.355e-06/0.1291, allocations: 4.031 kB / 0.5591 GB, free: 2.047 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.867e-05/0.1291, allocations: 11.92 kB / 0.5592 GB, free: 2.035 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.625e-06/0.1291, allocations: 0 / 0.5592 GB, free: 2.035 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.882e-05/0.1291, allocations: 79.28 kB / 0.5592 GB, free: 1.957 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1291, allocations: 0 / 0.5592 GB, free: 1.957 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002252/0.1294, allocations: 15.94 kB / 0.5592 GB, free: 1.941 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.0009873/0.1304, allocations: 0.8117 MB / 0.56 GB, free: 1.148 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001105/0.1305, allocations: 55.41 kB / 0.5601 GB, free: 1.082 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.1305, allocations: 3.938 kB / 0.5601 GB, free: 1.078 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 3.902e-05/0.1305, allocations: 59.39 kB / 0.5602 GB, free: 1.008 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001222/0.1306, allocations: 4 kB / 0.5602 GB, free: 1.004 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003178/0.1309, allocations: 126.6 kB / 0.5603 GB, free: 0.8398 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003127/0.1313, allocations: 0.673 MB / 0.5609 GB, free: 144 kB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.921e-06/0.1313, allocations: 3.938 kB / 0.5609 GB, free: 140 kB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.218e-05/0.1313, allocations: 7.438 kB / 0.5609 GB, free: 132 kB / 414.1 MB Notification: Performance of SimCode: time 2.9e-07/0.1313, allocations: 0 / 0.5609 GB, free: 132 kB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01733/0.1486, allocations: 1.657 MB / 0.5626 GB, free: 14.55 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.384/8.533, allocations: 17.28 kB / 0.5626 GB, free: 14.54 MB / 430.1 MB " [Timeout remaining time 651] (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Utilities_TestInternal_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Utilities_TestInternal.fmu > ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestInternal/TestInternal.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.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.431141389999539]