Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001807/0.001807, allocations: 117.6 kB / 18.5 MB, free: 4.582 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00208/0.00208, allocations: 190.9 kB / 21.44 MB, free: 1.645 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.464/1.464, allocations: 225.6 MB / 249.8 MB, free: 3.734 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2492/0.2492, allocations: 44.91 MB / 349.6 MB, free: 1.754 MB / 270.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Utilities.TestFiles,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestFiles",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestFiles,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestFiles",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001964/0.001964, allocations: 62.73 kB / 491.8 MB, free: 30.04 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1109/0.1128, allocations: 64.26 MB / 0.543 GB, free: 4.137 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.001753/0.1146, allocations: 489 kB / 0.5434 GB, free: 3.652 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002172/0.1167, allocations: 1.281 MB / 0.5447 GB, free: 2.363 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.012e-05/0.1168, allocations: 0 / 0.5447 GB, free: 2.363 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.435e-05/0.1168, allocations: 0 / 0.5447 GB, free: 2.363 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001903/0.117, allocations: 11.98 kB / 0.5447 GB, free: 2.352 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:456:3-488: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.001124/0.1181, allocations: 243.1 kB / 0.5449 GB, free: 2.117 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.543e-05/0.1182, allocations: 11.91 kB / 0.545 GB, free: 2.105 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.159e-05/0.1182, allocations: 4 kB / 0.545 GB, free: 2.102 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.625e-05/0.1182, allocations: 0 / 0.545 GB, free: 2.102 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.93e-05/0.1183, allocations: 11.94 kB / 0.545 GB, free: 2.09 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.466e-06/0.1183, allocations: 0 / 0.545 GB, free: 2.09 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004043/0.1224, allocations: 0.6996 MB / 0.5456 GB, free: 1.516 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.272e-05/0.1224, allocations: 3.938 kB / 0.5457 GB, free: 1.512 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.241e-05/0.1224, allocations: 4 kB / 0.5457 GB, free: 1.508 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003371/0.1227, allocations: 187.5 kB / 0.5458 GB, free: 1.324 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.941e-06/0.1227, allocations: 0 / 0.5458 GB, free: 1.324 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1227, allocations: 0 / 0.5458 GB, free: 1.324 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.215e-05/0.1227, allocations: 0 / 0.5458 GB, free: 1.324 MB / 398.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.0006131/0.1234, allocations: 386.6 kB / 0.5462 GB, free: 0.8945 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.028e-05/0.1234, allocations: 8.031 kB / 0.5462 GB, free: 0.8867 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.01e-05/0.1234, allocations: 34.75 kB / 0.5462 GB, free: 0.8438 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.769e-05/0.1235, allocations: 0.9375 kB / 0.5462 GB, free: 0.8438 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001654/0.1236, allocations: 176.3 kB / 0.5464 GB, free: 0.6328 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.296e-05/0.1237, allocations: 384 / 0.5464 GB, free: 0.6328 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.065e-05/0.1237, allocations: 384 / 0.5464 GB, free: 0.6328 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001131/0.1238, allocations: 33.64 kB / 0.5464 GB, free: 0.5938 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.566e-05/0.1238, allocations: 3.938 kB / 0.5465 GB, free: 0.5898 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.737e-06/0.1238, allocations: 3.938 kB / 0.5465 GB, free: 0.5859 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.489e-06/0.1238, allocations: 0 / 0.5465 GB, free: 0.5859 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.73e-05/0.1238, allocations: 0 / 0.5465 GB, free: 0.5859 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001806/0.124, allocations: 149.7 kB / 0.5466 GB, free: 400 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.865e-05/0.1241, allocations: 22.58 kB / 0.5466 GB, free: 368 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.19e-05/0.1241, allocations: 8.953 kB / 0.5466 GB, free: 356 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.219e-05/0.1241, allocations: 3.938 kB / 0.5466 GB, free: 352 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.547e-05/0.1242, allocations: 56.27 kB / 0.5467 GB, free: 280 kB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.02e-07/0.1242, allocations: 0 / 0.5467 GB, free: 280 kB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001979/0.1244, allocations: 67.33 kB / 0.5467 GB, free: 200 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.612e-05/0.1244, allocations: 89.23 kB / 0.5468 GB, free: 92 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001073/0.1245, allocations: 89.86 kB / 0.5469 GB, free: 15.99 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.72e-05/0.1246, allocations: 25.7 kB / 0.5469 GB, free: 15.96 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.973e-05/0.1246, allocations: 84.14 kB / 0.547 GB, free: 15.88 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.589e-05/0.1246, allocations: 0 / 0.547 GB, free: 15.88 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.173e-05/0.1247, allocations: 13.7 kB / 0.547 GB, free: 15.86 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001478/0.1248, allocations: 318.8 kB / 0.5473 GB, free: 15.54 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.128e-05/0.1248, allocations: 0 / 0.5473 GB, free: 15.54 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.881e-06/0.1248, allocations: 4.125 kB / 0.5473 GB, free: 15.53 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.884e-05/0.1249, allocations: 64.2 kB / 0.5474 GB, free: 15.45 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.1249, allocations: 0 / 0.5474 GB, free: 15.45 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.953e-05/0.125, allocations: 75.33 kB / 0.5475 GB, free: 15.37 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.455e-05/0.125, allocations: 33.7 kB / 0.5475 GB, free: 15.33 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.238e-06/0.125, allocations: 0 / 0.5475 GB, free: 15.33 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.155e-05/0.125, allocations: 0 / 0.5475 GB, free: 15.33 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.52e-07/0.125, allocations: 0 / 0.5475 GB, free: 15.33 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.29e-06/0.125, allocations: 3.938 kB / 0.5475 GB, free: 15.32 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.878e-05/0.1251, allocations: 8.031 kB / 0.5475 GB, free: 15.32 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.342e-06/0.1251, allocations: 0 / 0.5475 GB, free: 15.32 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.0001082/0.1252, allocations: 135.5 kB / 0.5477 GB, free: 15.17 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.109e-05/0.1252, allocations: 3.938 kB / 0.5477 GB, free: 15.16 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.598e-05/0.1252, allocations: 11.09 kB / 0.5477 GB, free: 15.15 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.193e-06/0.1252, allocations: 4 kB / 0.5477 GB, free: 15.15 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.1252, allocations: 0 / 0.5477 GB, free: 15.15 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.084e-06/0.1252, allocations: 0 / 0.5477 GB, free: 15.15 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001179/0.1253, allocations: 145.7 kB / 0.5478 GB, free: 14.96 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.946e-06/0.1253, allocations: 11.88 kB / 0.5478 GB, free: 14.95 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.957e-05/0.1254, allocations: 7.984 kB / 0.5478 GB, free: 14.94 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.292e-06/0.1254, allocations: 0 / 0.5478 GB, free: 14.94 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.111e-06/0.1254, allocations: 3.938 kB / 0.5478 GB, free: 14.93 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.61e-07/0.1254, allocations: 0 / 0.5478 GB, free: 14.93 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.72e-07/0.1254, allocations: 0 / 0.5478 GB, free: 14.93 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001134/0.1255, allocations: 94.78 kB / 0.5479 GB, free: 14.82 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.781e-05/0.1255, allocations: 81.05 kB / 0.548 GB, free: 14.72 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.49e-05/0.1255, allocations: 8.031 kB / 0.548 GB, free: 14.71 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.091e-05/0.1255, allocations: 0 / 0.548 GB, free: 14.71 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.527e-05/0.1256, allocations: 0 / 0.548 GB, free: 14.71 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.485e-06/0.1256, allocations: 0 / 0.548 GB, free: 14.71 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.109e-05/0.1256, allocations: 79.28 kB / 0.5481 GB, free: 14.63 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1256, allocations: 0 / 0.5481 GB, free: 14.63 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002931/0.1259, allocations: 59.86 kB / 0.5481 GB, free: 14.57 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.001142/0.127, allocations: 0.8743 MB / 0.549 GB, free: 13.75 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001162/0.1272, allocations: 67.34 kB / 0.5491 GB, free: 13.67 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.1272, allocations: 0 / 0.5491 GB, free: 13.67 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.001e-05/0.1272, allocations: 59.39 kB / 0.5491 GB, free: 13.6 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001232/0.1273, allocations: 4.125 kB / 0.5491 GB, free: 13.59 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003652/0.1277, allocations: 134.5 kB / 0.5492 GB, free: 13.42 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003358/0.128, allocations: 0.6883 MB / 0.5499 GB, free: 12.71 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 8.305e-06/0.128, allocations: 0 / 0.5499 GB, free: 12.71 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.433e-05/0.1281, allocations: 7.438 kB / 0.5499 GB, free: 12.7 MB / 414.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1281, allocations: 0 / 0.5499 GB, free: 12.7 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0259/0.154, allocations: 2.539 MB / 0.5524 GB, free: 10.24 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.191/8.345, allocations: 2.875 kB / 0.5524 GB, free: 10.24 MB / 414.1 MB " [Timeout remaining time 652] (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Utilities_TestFiles_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Utilities_TestFiles.fmu > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_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.235548234079033]