Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestInternal.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.TestInternal,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Utilities_TestInternal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestInternal,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Utilities_TestInternal",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001733/0.001733, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001991/0.001991, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.475/1.475, allocations: 227.4 MB / 246.8 MB, free: 10.6 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.2291/0.2291, allocations: 46.11 MB / 344.2 MB, free: 11.6 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.002399/0.0024, allocations: 77.14 kB / 417.8 MB, free: 19.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1142/0.1166, allocations: 62.44 MB / 480.2 MB, free: 5.176 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.00185/0.1185, allocations: 483.8 kB / 480.7 MB, free: 4.699 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007106/0.1192, allocations: 261.8 kB / 480.9 MB, free: 4.445 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.944e-05/0.1192, allocations: 0 / 480.9 MB, free: 4.445 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.435e-05/0.1193, allocations: 0 / 480.9 MB, free: 4.445 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.759e-06/0.1193, allocations: 0 / 480.9 MB, free: 4.445 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/Utilities.mo:398:3-453: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.0003386/0.1196, allocations: 51.83 kB / 481 MB, free: 4.395 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.331e-05/0.1197, allocations: 3.938 kB / 481 MB, free: 4.391 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.223e-05/0.1197, allocations: 4 kB / 481 MB, free: 4.387 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.751e-05/0.1198, allocations: 3.984 kB / 481 MB, free: 4.383 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.162e-05/0.1198, allocations: 4 kB / 481 MB, free: 4.379 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.335e-06/0.1198, allocations: 0 / 481 MB, free: 4.379 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001523/0.12, allocations: 67.94 kB / 481.1 MB, free: 4.312 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.155e-06/0.12, allocations: 0 / 481.1 MB, free: 4.312 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.028e-05/0.12, allocations: 0 / 481.1 MB, free: 4.312 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001349/0.1201, allocations: 55.92 kB / 481.1 MB, free: 4.258 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.711e-06/0.1202, allocations: 4 kB / 481.1 MB, free: 4.254 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.193e-06/0.1202, allocations: 0 / 481.1 MB, free: 4.254 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.332e-06/0.1202, allocations: 0 / 481.1 MB, free: 4.254 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.0003467/0.1205, allocations: 365.2 kB / 481.5 MB, free: 3.84 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.802e-05/0.1206, allocations: 8.031 kB / 481.5 MB, free: 3.832 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.333e-05/0.1206, allocations: 30.75 kB / 481.5 MB, free: 3.793 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.331e-05/0.1206, allocations: 4.938 kB / 481.5 MB, free: 3.789 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001099/0.1208, allocations: 160.4 kB / 481.7 MB, free: 3.594 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.798e-06/0.1208, allocations: 384 / 481.7 MB, free: 3.594 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.871e-06/0.1208, allocations: 384 / 481.7 MB, free: 3.594 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.324e-05/0.1209, allocations: 34.27 kB / 481.7 MB, free: 3.555 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.526e-06/0.1209, allocations: 3.938 kB / 481.7 MB, free: 3.551 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.737e-06/0.1209, allocations: 7.984 kB / 481.7 MB, free: 3.543 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.138e-06/0.1209, allocations: 0 / 481.7 MB, free: 3.543 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.586e-05/0.1209, allocations: 0 / 481.7 MB, free: 3.543 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001479/0.1211, allocations: 149.6 kB / 481.9 MB, free: 3.348 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.746e-05/0.1211, allocations: 14.58 kB / 481.9 MB, free: 3.324 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.505e-05/0.1212, allocations: 4.859 kB / 481.9 MB, free: 3.316 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.699e-06/0.1212, allocations: 4.094 kB / 481.9 MB, free: 3.312 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.336e-05/0.1212, allocations: 64.27 kB / 481.9 MB, free: 3.234 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.072e-06/0.1212, allocations: 0 / 481.9 MB, free: 3.234 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001599/0.1214, allocations: 75.2 kB / 482 MB, free: 3.148 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.521e-05/0.1215, allocations: 77.11 kB / 482.1 MB, free: 3.055 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.026e-05/0.1215, allocations: 89.86 kB / 482.2 MB, free: 2.957 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.416e-05/0.1215, allocations: 25.7 kB / 482.2 MB, free: 2.926 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.232e-05/0.1216, allocations: 80.14 kB / 482.3 MB, free: 2.844 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.999e-05/0.1216, allocations: 4 kB / 482.3 MB, free: 2.84 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.219e-05/0.1216, allocations: 21.83 kB / 482.3 MB, free: 2.812 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001408/0.1218, allocations: 310.8 kB / 482.6 MB, free: 2.5 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.185e-05/0.1218, allocations: 0 / 482.6 MB, free: 2.5 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.081e-06/0.1218, allocations: 7.938 kB / 482.6 MB, free: 2.492 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.327e-05/0.1219, allocations: 60.27 kB / 482.7 MB, free: 2.418 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.1219, allocations: 0 / 482.7 MB, free: 2.418 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.898e-05/0.122, allocations: 67.33 kB / 482.7 MB, free: 2.34 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.726e-05/0.122, allocations: 37.8 kB / 482.8 MB, free: 2.297 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.684e-06/0.122, allocations: 3.938 kB / 482.8 MB, free: 2.293 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.131e-05/0.122, allocations: 0 / 482.8 MB, free: 2.293 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.11e-07/0.122, allocations: 0 / 482.8 MB, free: 2.293 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.238e-06/0.1221, allocations: 0 / 482.8 MB, free: 2.293 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.418e-05/0.1221, allocations: 0 / 482.8 MB, free: 2.293 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.855e-06/0.1221, allocations: 4 kB / 482.8 MB, free: 2.289 MB / 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 8.932e-05/0.1222, allocations: 131.5 kB / 482.9 MB, free: 2.145 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.947e-06/0.1222, allocations: 0 / 482.9 MB, free: 2.145 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.505e-05/0.1222, allocations: 15.05 kB / 482.9 MB, free: 2.133 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.337e-06/0.1222, allocations: 7.984 kB / 482.9 MB, free: 2.125 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.887e-06/0.1222, allocations: 0 / 482.9 MB, free: 2.125 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.124e-06/0.1222, allocations: 0 / 482.9 MB, free: 2.125 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001102/0.1223, allocations: 145.7 kB / 483.1 MB, free: 1.934 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.223e-06/0.1224, allocations: 0 / 483.1 MB, free: 1.934 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.41e-07/0.1224, allocations: 0 / 483.1 MB, free: 1.934 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.322e-06/0.1224, allocations: 0 / 483.1 MB, free: 1.934 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.588e-06/0.1224, allocations: 11.94 kB / 483.1 MB, free: 1.922 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.876e-06/0.1224, allocations: 3.984 kB / 483.1 MB, free: 1.918 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.42e-07/0.1224, allocations: 0 / 483.1 MB, free: 1.918 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001126/0.1225, allocations: 94.78 kB / 483.2 MB, free: 1.801 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.209e-05/0.1226, allocations: 77.39 kB / 483.3 MB, free: 1.707 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.559e-05/0.1226, allocations: 7.922 kB / 483.3 MB, free: 1.699 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.478e-06/0.1226, allocations: 0 / 483.3 MB, free: 1.699 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.917e-06/0.1226, allocations: 0 / 483.3 MB, free: 1.699 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.92e-06/0.1226, allocations: 4 kB / 483.3 MB, free: 1.695 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.243e-05/0.1227, allocations: 75.28 kB / 483.4 MB, free: 1.621 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1227, allocations: 4.031 kB / 483.4 MB, free: 1.617 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002394/0.1229, allocations: 24 kB / 483.4 MB, free: 1.594 MB / 350.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.001003/0.1239, allocations: 0.8161 MB / 484.2 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001048/0.124, allocations: 63.33 kB / 484.3 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.124, allocations: 0 / 484.3 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.436e-05/0.1241, allocations: 63.47 kB / 484.3 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001266/0.1242, allocations: 0 / 484.3 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003192/0.1246, allocations: 114.6 kB / 484.4 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003375/0.1249, allocations: 0.669 MB / 485.1 MB, free: 15.8 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.67e-06/0.1249, allocations: 0 / 485.1 MB, free: 15.8 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.33e-05/0.1249, allocations: 7.438 kB / 485.1 MB, free: 15.8 MB / 366.1 MB Notification: Performance of SimCode: time 3.51e-07/0.1249, allocations: 0 / 485.1 MB, free: 15.8 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0237/0.1486, allocations: 1.613 MB / 486.7 MB, free: 14.25 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.764/7.912, allocations: 11.64 kB / 486.7 MB, free: 14.25 MB / 366.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestInternal.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestInternal.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestInternal.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestInternal.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestInternal_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_TestInternal.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestInternal.pipe 2>&1)