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.00133/0.00133, allocations: 103.8 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001383/0.001384, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.454/1.454, allocations: 227.4 MB / 246.8 MB, free: 10.52 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.2275/0.2275, allocations: 46.11 MB / 344.2 MB, free: 11.54 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.002252/0.002253, allocations: 84.22 kB / 417.8 MB, free: 19.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1085/0.1108, allocations: 62.44 MB / 480.2 MB, free: 5.141 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.001754/0.1126, allocations: 490.5 kB / 480.7 MB, free: 4.66 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002035/0.1146, allocations: 1.263 MB / 481.9 MB, free: 3.391 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.266e-05/0.1147, allocations: 0 / 481.9 MB, free: 3.391 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.683e-05/0.1147, allocations: 4 kB / 481.9 MB, free: 3.387 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001578/0.1149, allocations: 15.86 kB / 482 MB, free: 3.371 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.00105/0.1159, allocations: 241.8 kB / 482.2 MB, free: 3.137 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.704e-05/0.116, allocations: 4 kB / 482.2 MB, free: 3.133 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.348e-05/0.116, allocations: 4 kB / 482.2 MB, free: 3.129 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.459e-05/0.116, allocations: 0 / 482.2 MB, free: 3.129 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001044/0.1162, allocations: 7.984 kB / 482.2 MB, free: 3.121 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.576e-06/0.1162, allocations: 7.938 kB / 482.2 MB, free: 3.113 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00393/0.1201, allocations: 0.6525 MB / 482.9 MB, free: 2.582 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.286e-06/0.1201, allocations: 0 / 482.9 MB, free: 2.582 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.795e-05/0.1202, allocations: 15.92 kB / 482.9 MB, free: 2.566 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002902/0.1205, allocations: 183.6 kB / 483.1 MB, free: 2.387 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.576e-06/0.1205, allocations: 3.938 kB / 483.1 MB, free: 2.383 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1205, allocations: 4 kB / 483.1 MB, free: 2.379 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.119e-06/0.1205, allocations: 0 / 483.1 MB, free: 2.379 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.0004487/0.1209, allocations: 381.2 kB / 483.4 MB, free: 1.953 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.672e-05/0.121, allocations: 8.031 kB / 483.5 MB, free: 1.945 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.318e-05/0.121, allocations: 34.75 kB / 483.5 MB, free: 1.902 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.419e-05/0.1211, allocations: 0.9375 kB / 483.5 MB, free: 1.902 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001225/0.1212, allocations: 164.4 kB / 483.6 MB, free: 1.703 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.928e-06/0.1212, allocations: 384 / 483.6 MB, free: 1.703 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.811e-06/0.1212, allocations: 384 / 483.6 MB, free: 1.703 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.877e-05/0.1213, allocations: 41.62 kB / 483.7 MB, free: 1.656 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.212e-06/0.1213, allocations: 0 / 483.7 MB, free: 1.656 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.122e-06/0.1213, allocations: 0 / 483.7 MB, free: 1.656 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.707e-06/0.1213, allocations: 0 / 483.7 MB, free: 1.656 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.096e-05/0.1214, allocations: 7.938 kB / 483.7 MB, free: 1.648 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001473/0.1215, allocations: 145.7 kB / 483.8 MB, free: 1.457 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.933e-05/0.1215, allocations: 18.61 kB / 483.9 MB, free: 1.43 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.038e-05/0.1216, allocations: 8.844 kB / 483.9 MB, free: 1.418 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.037e-06/0.1216, allocations: 11.88 kB / 483.9 MB, free: 1.406 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.883e-05/0.1216, allocations: 64.33 kB / 483.9 MB, free: 1.328 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.032e-06/0.1217, allocations: 0 / 483.9 MB, free: 1.328 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001794/0.1218, allocations: 71.25 kB / 484 MB, free: 1.246 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.667e-05/0.1219, allocations: 77.11 kB / 484.1 MB, free: 1.152 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.946e-05/0.122, allocations: 97.84 kB / 484.2 MB, free: 1.047 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.343e-05/0.122, allocations: 25.95 kB / 484.2 MB, free: 1.016 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.782e-05/0.1221, allocations: 84.14 kB / 484.3 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.211e-05/0.1221, allocations: 0 / 484.3 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.394e-05/0.1221, allocations: 17.72 kB / 484.3 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001381/0.1223, allocations: 310.8 kB / 484.6 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.957e-06/0.1223, allocations: 0 / 484.6 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.013e-05/0.1223, allocations: 7.984 kB / 484.6 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.537e-05/0.1223, allocations: 60.27 kB / 484.7 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.322e-06/0.1224, allocations: 4.062 kB / 484.7 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.885e-05/0.1224, allocations: 71.28 kB / 484.8 MB, free: 436 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.452e-05/0.1225, allocations: 32.2 kB / 484.8 MB, free: 400 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.396e-06/0.1225, allocations: 0 / 484.8 MB, free: 400 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.376e-05/0.1225, allocations: 3.984 kB / 484.8 MB, free: 396 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.01e-07/0.1225, allocations: 0 / 484.8 MB, free: 396 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.322e-06/0.1225, allocations: 4 kB / 484.8 MB, free: 392 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.616e-05/0.1225, allocations: 0 / 484.8 MB, free: 392 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.989e-06/0.1226, allocations: 0 / 484.8 MB, free: 392 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.639e-05/0.1227, allocations: 139.6 kB / 484.9 MB, free: 236 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.049e-05/0.1227, allocations: 7.875 kB / 484.9 MB, free: 228 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.746e-06/0.1227, allocations: 7.109 kB / 484.9 MB, free: 224 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.012e-06/0.1227, allocations: 0 / 484.9 MB, free: 224 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/0.1227, allocations: 0 / 484.9 MB, free: 224 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.623e-06/0.1227, allocations: 0 / 484.9 MB, free: 224 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000111/0.1228, allocations: 153.7 kB / 485.1 MB, free: 20 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.1228, allocations: 3.938 kB / 485.1 MB, free: 16 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.21e-07/0.1228, allocations: 0 / 485.1 MB, free: 16 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.052e-06/0.1228, allocations: 0 / 485.1 MB, free: 16 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.27e-06/0.1228, allocations: 0 / 485.1 MB, free: 16 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.02e-07/0.1229, allocations: 4 kB / 485.1 MB, free: 12 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.939e-06/0.1229, allocations: 4 kB / 485.1 MB, free: 8 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001208/0.123, allocations: 102.7 kB / 485.2 MB, free: 15.88 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.704e-05/0.123, allocations: 81.05 kB / 485.3 MB, free: 15.79 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.22e-05/0.1231, allocations: 0 / 485.3 MB, free: 15.79 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.103e-05/0.1231, allocations: 0 / 485.3 MB, free: 15.79 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.24e-05/0.1231, allocations: 3.984 kB / 485.3 MB, free: 15.78 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.575e-06/0.1231, allocations: 8.031 kB / 485.3 MB, free: 15.77 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.731e-05/0.1232, allocations: 75.28 kB / 485.4 MB, free: 15.7 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1232, allocations: 0 / 485.4 MB, free: 15.7 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002867/0.1234, allocations: 63.98 kB / 485.4 MB, free: 15.64 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.001213/0.1247, allocations: 0.8687 MB / 486.3 MB, free: 14.79 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 9.108e-05/0.1248, allocations: 55.41 kB / 486.4 MB, free: 14.73 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.063e-06/0.1248, allocations: 0 / 486.4 MB, free: 14.73 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.702e-05/0.1248, allocations: 55.41 kB / 486.4 MB, free: 14.66 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001344/0.125, allocations: 4 kB / 486.4 MB, free: 14.66 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.0004004/0.1254, allocations: 154.5 kB / 486.6 MB, free: 14.46 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002919/0.1257, allocations: 0.669 MB / 487.2 MB, free: 13.77 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.005e-06/0.1257, allocations: 0 / 487.2 MB, free: 13.77 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.456e-05/0.1257, allocations: 15.42 kB / 487.2 MB, free: 13.76 MB / 366.1 MB Notification: Performance of SimCode: time 2.534e-06/0.1257, allocations: 0 / 487.2 MB, free: 13.76 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2441/0.3699, allocations: 2.507 MB / 489.8 MB, free: 11.31 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.059/8.428, allocations: 13.06 kB / 489.8 MB, free: 11.3 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 & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestFiles_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 ModelicaTest_4_1_0-beta_om_ModelicaTest_Utilities_TestFiles.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestFiles.pipe 2>&1)