Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestFiles.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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_4_1_0-beta_om_ModelicaTest_Utilities_TestFiles",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestFiles,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Utilities_TestFiles",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00131/0.00131, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001247/0.001247, allocations: 214.4 kB / 18.59 MB, free: 4.531 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.431/1.431, allocations: 227.4 MB / 246.8 MB, free: 10.5 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2225/0.2225, allocations: 46.11 MB / 344.2 MB, free: 11.55 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002307/0.002307, allocations: 87.34 kB / 417.8 MB, free: 19.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1137/0.1161, allocations: 62.45 MB / 480.2 MB, free: 5.121 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.001758/0.1179, allocations: 487.6 kB / 480.7 MB, free: 4.641 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002078/0.12, allocations: 1.263 MB / 481.9 MB, free: 3.371 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.269e-05/0.12, allocations: 0 / 481.9 MB, free: 3.371 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.58e-05/0.12, allocations: 4 kB / 481.9 MB, free: 3.367 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001694/0.1202, allocations: 15.88 kB / 482 MB, free: 3.352 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/Utilities.mo:455:3-487: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.001107/0.1213, allocations: 247.8 kB / 482.2 MB, free: 3.117 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.122e-05/0.1214, allocations: 8 kB / 482.2 MB, free: 3.109 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.522e-05/0.1214, allocations: 0 / 482.2 MB, free: 3.109 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.942e-05/0.1215, allocations: 4 kB / 482.2 MB, free: 3.105 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001102/0.1216, allocations: 7.984 kB / 482.2 MB, free: 3.098 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.825e-06/0.1216, allocations: 0 / 482.2 MB, free: 3.098 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004002/0.1256, allocations: 0.6571 MB / 482.9 MB, free: 2.559 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.897e-06/0.1256, allocations: 0 / 482.9 MB, free: 2.559 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.061e-05/0.1256, allocations: 3.938 kB / 482.9 MB, free: 2.555 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003236/0.126, allocations: 183.7 kB / 483.1 MB, free: 2.375 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.071e-06/0.126, allocations: 4 kB / 483.1 MB, free: 2.371 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.646e-06/0.126, allocations: 4 kB / 483.1 MB, free: 2.367 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.149e-06/0.126, allocations: 3.938 kB / 483.1 MB, free: 2.363 MB / 350.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.0004876/0.1265, allocations: 381.2 kB / 483.4 MB, free: 1.938 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.945e-05/0.1265, allocations: 8.031 kB / 483.5 MB, free: 1.93 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.075e-05/0.1266, allocations: 30.75 kB / 483.5 MB, free: 1.891 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.264e-05/0.1266, allocations: 4.938 kB / 483.5 MB, free: 1.887 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001288/0.1268, allocations: 160.4 kB / 483.6 MB, free: 1.691 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.518e-06/0.1268, allocations: 384 / 483.6 MB, free: 1.691 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.492e-06/0.1268, allocations: 384 / 483.6 MB, free: 1.691 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.767e-05/0.1269, allocations: 45.62 kB / 483.7 MB, free: 1.641 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.312e-06/0.1269, allocations: 0 / 483.7 MB, free: 1.641 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.623e-06/0.1269, allocations: 0 / 483.7 MB, free: 1.641 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.028e-06/0.1269, allocations: 0 / 483.7 MB, free: 1.641 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.084e-05/0.1269, allocations: 4 kB / 483.7 MB, free: 1.637 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00015/0.1271, allocations: 145.6 kB / 483.8 MB, free: 1.445 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.322e-05/0.1271, allocations: 18.61 kB / 483.9 MB, free: 1.418 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.22e-05/0.1272, allocations: 20.78 kB / 483.9 MB, free: 1.395 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.446e-06/0.1272, allocations: 7.875 kB / 483.9 MB, free: 1.387 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.984e-05/0.1272, allocations: 56.27 kB / 483.9 MB, free: 1.316 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.002e-06/0.1272, allocations: 64 / 483.9 MB, free: 1.316 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.000172/0.1274, allocations: 71.25 kB / 484 MB, free: 1.234 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.992e-05/0.1275, allocations: 77.11 kB / 484.1 MB, free: 1.141 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.055e-05/0.1276, allocations: 102.1 kB / 484.2 MB, free: 1.031 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.602e-05/0.1276, allocations: 29.73 kB / 484.2 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.988e-05/0.1276, allocations: 80.14 kB / 484.3 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.333e-05/0.1277, allocations: 0 / 484.3 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.097e-05/0.1277, allocations: 13.72 kB / 484.3 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001398/0.1278, allocations: 310.8 kB / 484.6 MB, free: 0.582 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.19e-05/0.1279, allocations: 4 kB / 484.6 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.796e-06/0.1279, allocations: 4 kB / 484.6 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.339e-05/0.1279, allocations: 64.31 kB / 484.7 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.372e-06/0.1279, allocations: 4 kB / 484.7 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.433e-05/0.128, allocations: 67.28 kB / 484.7 MB, free: 424 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.097e-05/0.1281, allocations: 31.89 kB / 484.8 MB, free: 388 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.822e-06/0.1281, allocations: 3.984 kB / 484.8 MB, free: 384 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.038e-05/0.1281, allocations: 0 / 484.8 MB, free: 384 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.128e-06/0.1281, allocations: 3.984 kB / 484.8 MB, free: 380 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.857e-06/0.1281, allocations: 0 / 484.8 MB, free: 380 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.17e-05/0.1281, allocations: 4 kB / 484.8 MB, free: 376 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.571e-06/0.1282, allocations: 0 / 484.8 MB, free: 376 kB / 350.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 9.178e-05/0.1283, allocations: 139.6 kB / 484.9 MB, free: 220 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.408e-05/0.1283, allocations: 7.938 kB / 484.9 MB, free: 212 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.798e-06/0.1283, allocations: 7.125 kB / 484.9 MB, free: 208 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.333e-06/0.1283, allocations: 0 / 484.9 MB, free: 208 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.186e-06/0.1283, allocations: 0 / 484.9 MB, free: 208 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.124e-06/0.1283, allocations: 0 / 484.9 MB, free: 208 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001099/0.1284, allocations: 149.7 kB / 485.1 MB, free: 8 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.775e-06/0.1284, allocations: 3.938 kB / 485.1 MB, free: 4 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.61e-07/0.1284, allocations: 0 / 485.1 MB, free: 4 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.894e-06/0.1284, allocations: 0 / 485.1 MB, free: 4 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.45e-06/0.1285, allocations: 4 kB / 485.1 MB, free: 0 / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.1285, allocations: 0 / 485.1 MB, free: 0 / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-05/0.1285, allocations: 0 / 485.1 MB, free: 0 / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001136/0.1286, allocations: 102.9 kB / 485.2 MB, free: 15.87 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.327e-05/0.1287, allocations: 84.98 kB / 485.3 MB, free: 15.77 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.237e-05/0.1287, allocations: 0 / 485.3 MB, free: 15.77 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.143e-05/0.1287, allocations: 0 / 485.3 MB, free: 15.77 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.74e-05/0.1287, allocations: 12.02 kB / 485.3 MB, free: 15.76 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.589e-06/0.1287, allocations: 7.938 kB / 485.3 MB, free: 15.75 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.779e-05/0.1288, allocations: 75.28 kB / 485.4 MB, free: 15.68 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1288, allocations: 0 / 485.4 MB, free: 15.68 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003026/0.1291, allocations: 59.86 kB / 485.4 MB, free: 15.62 MB / 366.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.001107/0.1302, allocations: 0.8539 MB / 486.3 MB, free: 14.79 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 9.887e-05/0.1303, allocations: 63.34 kB / 486.3 MB, free: 14.71 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.1303, allocations: 0 / 486.3 MB, free: 14.71 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.961e-05/0.1304, allocations: 59.41 kB / 486.4 MB, free: 14.64 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001284/0.1305, allocations: 0 / 486.4 MB, free: 14.64 MB / 366.1 MB Warning: Could not resolve URI ("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/Resources/Data") at compile-time; copying all loaded packages into the FMU Warning: Could not resolve URI ("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/Resources/Data/ReadStreamTestFile.txt") at compile-time; copying all loaded packages into the FMU Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004263/0.1309, allocations: 165.6 kB / 486.6 MB, free: 14.45 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000294/0.1312, allocations: 0.669 MB / 487.2 MB, free: 13.75 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.618e-06/0.1312, allocations: 0 / 487.2 MB, free: 13.75 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.887e-05/0.1313, allocations: 15.42 kB / 487.2 MB, free: 13.74 MB / 366.1 MB Notification: Performance of SimCode: time 2.8e-07/0.1313, allocations: 0 / 487.2 MB, free: 13.74 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2492/0.3805, allocations: 2.503 MB / 489.8 MB, free: 11.29 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.028/8.408, allocations: 15.67 kB / 489.8 MB, free: 11.29 MB / 366.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestFiles.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestFiles.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestFiles.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestFiles.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestFiles_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Utilities_TestFiles_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Utilities_TestFiles.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestFiles.pipe 2>&1)