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.001336/0.001336, allocations: 117.2 kB / 17.78 MB, free: 5.383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001416/0.001416, allocations: 204.5 kB / 18.73 MB, free: 4.441 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.48/1.48, allocations: 227.4 MB / 247 MB, free: 10.46 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.2312/0.2312, allocations: 46.11 MB / 344.3 MB, free: 11.47 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.002457/0.002457, allocations: 79.88 kB / 480.9 MB, free: 4.547 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3654/0.3678, allocations: 62.45 MB / 0.5306 GB, free: 13.38 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.00158/0.3695, allocations: 492 kB / 0.531 GB, free: 13.02 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002361/0.3719, allocations: 1.261 MB / 0.5323 GB, free: 12.04 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.356e-05/0.3719, allocations: 3.938 kB / 0.5323 GB, free: 12.04 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.973e-05/0.372, allocations: 0 / 0.5323 GB, free: 12.04 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002074/0.3722, allocations: 11.16 kB / 0.5323 GB, free: 12.03 MB / 398.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.001368/0.3736, allocations: 246.3 kB / 0.5325 GB, free: 11.87 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.704e-05/0.3737, allocations: 12.44 kB / 0.5325 GB, free: 11.86 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.14e-05/0.3737, allocations: 0 / 0.5325 GB, free: 11.86 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.522e-05/0.3737, allocations: 5.516 kB / 0.5325 GB, free: 11.86 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001132/0.3739, allocations: 5.531 kB / 0.5325 GB, free: 11.86 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 9.689e-06/0.3739, allocations: 0 / 0.5325 GB, free: 11.86 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004233/0.3781, allocations: 0.6882 MB / 0.5332 GB, free: 11.57 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.484e-05/0.3782, allocations: 3.938 kB / 0.5332 GB, free: 11.57 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.576e-05/0.3782, allocations: 2.125 kB / 0.5332 GB, free: 11.57 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003594/0.3786, allocations: 176.9 kB / 0.5334 GB, free: 11.46 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.68e-06/0.3786, allocations: 1.25 kB / 0.5334 GB, free: 11.46 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.424e-06/0.3786, allocations: 0 / 0.5334 GB, free: 11.46 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.106e-05/0.3786, allocations: 0 / 0.5334 GB, free: 11.46 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.0005176/0.3791, allocations: 394.1 kB / 0.5338 GB, free: 11.04 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.459e-05/0.3792, allocations: 8.969 kB / 0.5338 GB, free: 11.04 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.626e-05/0.3792, allocations: 32 kB / 0.5338 GB, free: 11 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.468e-05/0.3793, allocations: 4.938 kB / 0.5338 GB, free: 11 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001516/0.3794, allocations: 161.7 kB / 0.534 GB, free: 10.8 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.229e-05/0.3794, allocations: 1.562 kB / 0.534 GB, free: 10.8 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.027e-05/0.3795, allocations: 384 / 0.534 GB, free: 10.8 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.905e-05/0.3796, allocations: 36.66 kB / 0.534 GB, free: 10.77 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.739e-06/0.3796, allocations: 0 / 0.534 GB, free: 10.77 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.103e-05/0.3796, allocations: 9.219 kB / 0.534 GB, free: 10.76 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.536e-06/0.3796, allocations: 3.938 kB / 0.534 GB, free: 10.75 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.049e-05/0.3796, allocations: 2.438 kB / 0.534 GB, free: 10.75 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001913/0.3798, allocations: 151 kB / 0.5342 GB, free: 10.56 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.992e-05/0.3799, allocations: 20.97 kB / 0.5342 GB, free: 10.53 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.898e-05/0.3799, allocations: 6.484 kB / 0.5342 GB, free: 10.52 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.728e-06/0.3799, allocations: 3.938 kB / 0.5342 GB, free: 10.52 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.509e-05/0.38, allocations: 61.77 kB / 0.5342 GB, free: 10.45 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.002e-06/0.38, allocations: 0 / 0.5342 GB, free: 10.45 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002153/0.3802, allocations: 68.62 kB / 0.5343 GB, free: 10.38 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.591e-05/0.3803, allocations: 81.09 kB / 0.5344 GB, free: 10.28 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.033e-05/0.3804, allocations: 93.77 kB / 0.5345 GB, free: 10.18 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.683e-05/0.3804, allocations: 25.7 kB / 0.5345 GB, free: 10.15 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.453e-05/0.3805, allocations: 84.14 kB / 0.5346 GB, free: 10.06 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.672e-05/0.3805, allocations: 5.562 kB / 0.5346 GB, free: 10.06 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.156e-05/0.3805, allocations: 15.78 kB / 0.5346 GB, free: 10.04 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001595/0.3807, allocations: 312.1 kB / 0.5349 GB, free: 9.727 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.483e-05/0.3807, allocations: 5.297 kB / 0.5349 GB, free: 9.723 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.052e-05/0.3807, allocations: 1.344 kB / 0.5349 GB, free: 9.723 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.525e-05/0.3808, allocations: 66.86 kB / 0.535 GB, free: 9.645 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/0.3808, allocations: 0.625 kB / 0.535 GB, free: 9.645 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.471e-05/0.3809, allocations: 71.11 kB / 0.535 GB, free: 9.57 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.293e-05/0.381, allocations: 35.53 kB / 0.5351 GB, free: 9.535 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.979e-06/0.381, allocations: 0 / 0.5351 GB, free: 9.535 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.557e-05/0.381, allocations: 1.125 kB / 0.5351 GB, free: 9.535 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.002e-06/0.381, allocations: 0 / 0.5351 GB, free: 9.535 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.023e-06/0.381, allocations: 1.125 kB / 0.5351 GB, free: 9.535 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.138e-05/0.3811, allocations: 0 / 0.5351 GB, free: 9.535 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.484e-06/0.3811, allocations: 1.312 kB / 0.5351 GB, free: 9.535 MB / 398.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.0001155/0.3812, allocations: 137.5 kB / 0.5352 GB, free: 9.387 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.181e-05/0.3812, allocations: 9.094 kB / 0.5352 GB, free: 9.379 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.247e-05/0.3812, allocations: 8.375 kB / 0.5352 GB, free: 9.375 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.265e-06/0.3812, allocations: 0 / 0.5352 GB, free: 9.375 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.3813, allocations: 1 kB / 0.5352 GB, free: 9.375 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.016e-06/0.3813, allocations: 7.969 kB / 0.5352 GB, free: 9.367 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001385/0.3814, allocations: 143.8 kB / 0.5354 GB, free: 9.18 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/0.3814, allocations: 7.875 kB / 0.5354 GB, free: 9.172 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.02e-07/0.3814, allocations: 1.156 kB / 0.5354 GB, free: 9.172 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.102e-06/0.3814, allocations: 0 / 0.5354 GB, free: 9.172 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.466e-06/0.3814, allocations: 1.094 kB / 0.5354 GB, free: 9.172 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.807e-06/0.3815, allocations: 3.938 kB / 0.5354 GB, free: 9.168 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/0.3815, allocations: 9.141 kB / 0.5354 GB, free: 9.16 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001376/0.3816, allocations: 91.03 kB / 0.5355 GB, free: 9.059 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.627e-05/0.3817, allocations: 81.05 kB / 0.5356 GB, free: 8.961 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.672e-05/0.3817, allocations: 5.109 kB / 0.5356 GB, free: 8.957 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.179e-05/0.3817, allocations: 1.188 kB / 0.5356 GB, free: 8.957 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.767e-05/0.3817, allocations: 1.094 kB / 0.5356 GB, free: 8.957 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.166e-06/0.3817, allocations: 0 / 0.5356 GB, free: 8.957 MB / 398.1 MB Notification: Performance of sorting global known variables: time 7.519e-05/0.3818, allocations: 81.62 kB / 0.5356 GB, free: 8.879 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.3818, allocations: 0 / 0.5356 GB, free: 8.879 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003682/0.3822, allocations: 67.77 kB / 0.5357 GB, free: 8.855 MB / 398.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.001341/0.3836, allocations: 0.8633 MB / 0.5366 GB, free: 8.109 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001289/0.3837, allocations: 56.75 kB / 0.5366 GB, free: 8.047 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.159e-06/0.3837, allocations: 0 / 0.5366 GB, free: 8.047 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.789e-05/0.3838, allocations: 58.81 kB / 0.5367 GB, free: 7.98 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001558/0.3839, allocations: 10.48 kB / 0.5367 GB, free: 7.973 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004243/0.3844, allocations: 137 kB / 0.5368 GB, free: 7.82 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003337/0.3847, allocations: 0.6714 MB / 0.5375 GB, free: 7.125 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 1.082e-05/0.3847, allocations: 9.156 kB / 0.5375 GB, free: 7.117 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.61e-05/0.3848, allocations: 12.64 kB / 0.5375 GB, free: 7.105 MB / 398.1 MB Notification: Performance of SimCode: time 7.01e-07/0.3848, allocations: 0 / 0.5375 GB, free: 7.105 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03388/0.4187, allocations: 2.532 MB / 0.54 GB, free: 5.688 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.268/8.686, allocations: 9.625 kB / 0.54 GB, free: 5.684 MB / 398.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)