Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.Fluid.TestUtilities.Test01RegFun3,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestUtilities_Test01RegFun3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.Test01RegFun3,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestUtilities_Test01RegFun3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007609/0.0007609, allocations: 91.55 kB / 15.7 MB, free: 452 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008257/0.0008257, allocations: 168.1 kB / 16.57 MB, free: 6.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.318/1.318, allocations: 205.4 MB / 222.8 MB, free: 5.652 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3155/0.3155, allocations: 43.55 MB / 314.6 MB, free: 8.73 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004856/0.0004857, allocations: 12 kB / 384 MB, free: 7.918 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1012/0.1017, allocations: 58.85 MB / 442.9 MB, free: 12.96 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test01RegFun3): time 0.0005407/0.1023, allocations: 232.4 kB / 443.1 MB, free: 12.74 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001591/0.1039, allocations: 1.355 MB / 444.4 MB, free: 11.36 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.871e-05/0.1039, allocations: 0 / 444.4 MB, free: 11.36 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.032e-05/0.1039, allocations: 0 / 444.4 MB, free: 11.36 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 2.495e-05/0.104, allocations: 0 / 444.4 MB, free: 11.36 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004873/0.1045, allocations: 151.7 kB / 444.6 MB, free: 11.21 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 8.242e-05/0.1046, allocations: 11.98 kB / 444.6 MB, free: 11.2 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.755e-05/0.1046, allocations: 4 kB / 444.6 MB, free: 11.2 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.705e-05/0.1046, allocations: 11.92 kB / 444.6 MB, free: 11.19 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.002e-05/0.1047, allocations: 0 / 444.6 MB, free: 11.19 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.148e-05/0.1047, allocations: 0 / 444.6 MB, free: 11.19 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003695/0.1051, allocations: 259.6 kB / 444.9 MB, free: 10.93 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.526e-06/0.1051, allocations: 0 / 444.9 MB, free: 10.93 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.219e-05/0.1051, allocations: 29.7 kB / 444.9 MB, free: 10.9 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001161/0.1052, allocations: 83.81 kB / 445 MB, free: 10.82 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.613e-06/0.1052, allocations: 4 kB / 445 MB, free: 10.81 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.1053, allocations: 0 / 445 MB, free: 10.81 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.537e-06/0.1053, allocations: 4 kB / 445 MB, free: 10.81 MB / 382.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.0003349/0.1056, allocations: 331.3 kB / 445.3 MB, free: 10.44 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.863e-05/0.1056, allocations: 8.031 kB / 445.3 MB, free: 10.43 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.355e-05/0.1057, allocations: 30.56 kB / 445.4 MB, free: 10.39 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.082e-05/0.1057, allocations: 7.953 kB / 445.4 MB, free: 10.38 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000114/0.1058, allocations: 167.3 kB / 445.5 MB, free: 10.18 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.231e-05/0.1058, allocations: 3.984 kB / 445.5 MB, free: 10.18 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.653e-06/0.1059, allocations: 3.938 kB / 445.5 MB, free: 10.17 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.625e-05/0.106, allocations: 37.69 kB / 445.6 MB, free: 10.13 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.586e-06/0.106, allocations: 0 / 445.6 MB, free: 10.13 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.053e-06/0.106, allocations: 3.938 kB / 445.6 MB, free: 10.12 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.42e-06/0.106, allocations: 3.953 kB / 445.6 MB, free: 10.12 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.862e-05/0.106, allocations: 4 kB / 445.6 MB, free: 10.12 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001385/0.1062, allocations: 149.7 kB / 445.7 MB, free: 9.922 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.002e-05/0.1062, allocations: 22.61 kB / 445.7 MB, free: 9.891 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.496e-05/0.1062, allocations: 4.859 kB / 445.8 MB, free: 9.883 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.484e-06/0.1062, allocations: 4 kB / 445.8 MB, free: 9.879 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.249e-05/0.1063, allocations: 34.62 kB / 445.8 MB, free: 9.836 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 8.12e-07/0.1063, allocations: 0 / 445.8 MB, free: 9.836 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001287/0.1064, allocations: 33.64 kB / 445.8 MB, free: 9.797 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.455e-05/0.1065, allocations: 55.41 kB / 445.9 MB, free: 9.73 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.596e-05/0.1065, allocations: 101.8 kB / 446 MB, free: 9.621 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.309e-05/0.1065, allocations: 25.95 kB / 446 MB, free: 9.59 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.652e-05/0.1066, allocations: 84.14 kB / 446.1 MB, free: 9.504 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.952e-05/0.1066, allocations: 7.938 kB / 446.1 MB, free: 9.496 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.565e-06/0.1066, allocations: 0 / 446.1 MB, free: 9.496 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.935e-05/0.1067, allocations: 310.8 kB / 446.4 MB, free: 9.184 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.428e-06/0.1067, allocations: 4 kB / 446.4 MB, free: 9.18 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.053e-06/0.1067, allocations: 4 kB / 446.4 MB, free: 9.176 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.185e-05/0.1068, allocations: 0 / 446.4 MB, free: 9.176 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.1068, allocations: 0 / 446.4 MB, free: 9.176 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.83e-05/0.1068, allocations: 49.59 kB / 446.5 MB, free: 9.121 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.258e-05/0.1068, allocations: 4 kB / 446.5 MB, free: 9.117 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.997e-06/0.1069, allocations: 0 / 446.5 MB, free: 9.117 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.14e-05/0.1069, allocations: 0 / 446.5 MB, free: 9.117 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.866e-05/0.1069, allocations: 4 kB / 446.5 MB, free: 9.113 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.869e-06/0.1069, allocations: 0 / 446.5 MB, free: 9.113 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.386e-05/0.107, allocations: 3.953 kB / 446.5 MB, free: 9.109 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.392e-06/0.107, allocations: 0 / 446.5 MB, free: 9.109 MB / 382.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.098e-05/0.1071, allocations: 109.8 kB / 446.6 MB, free: 8.992 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.643e-06/0.1071, allocations: 8.031 kB / 446.6 MB, free: 8.984 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000126/0.1072, allocations: 48.75 kB / 446.6 MB, free: 8.93 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.167e-06/0.1072, allocations: 0 / 446.6 MB, free: 8.93 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.1072, allocations: 3.938 kB / 446.6 MB, free: 8.926 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.773e-06/0.1072, allocations: 0 / 446.6 MB, free: 8.926 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001035/0.1073, allocations: 153.6 kB / 446.8 MB, free: 8.727 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.849e-06/0.1074, allocations: 0 / 446.8 MB, free: 8.727 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.397e-06/0.1074, allocations: 8.031 kB / 446.8 MB, free: 8.719 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.472e-06/0.1074, allocations: 0 / 446.8 MB, free: 8.719 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.34e-06/0.1074, allocations: 0 / 446.8 MB, free: 8.719 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.02e-07/0.1074, allocations: 0 / 446.8 MB, free: 8.719 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.1074, allocations: 4 kB / 446.8 MB, free: 8.715 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.707e-05/0.1075, allocations: 65.08 kB / 446.9 MB, free: 8.633 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.723e-05/0.1075, allocations: 77.11 kB / 446.9 MB, free: 8.539 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.046e-05/0.1075, allocations: 0 / 446.9 MB, free: 8.539 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.403e-05/0.1076, allocations: 8.031 kB / 446.9 MB, free: 8.531 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.244e-05/0.1076, allocations: 3.984 kB / 446.9 MB, free: 8.527 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.839e-06/0.1076, allocations: 0 / 446.9 MB, free: 8.527 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.352e-05/0.1077, allocations: 87.22 kB / 447 MB, free: 8.441 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1077, allocations: 0 / 447 MB, free: 8.441 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002262/0.1079, allocations: 36 kB / 447.1 MB, free: 8.406 MB / 382.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: 0 () * Number of discrete states: 0 () * 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: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004683/0.1084, allocations: 0.636 MB / 447.7 MB, free: 7.742 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 6.023e-05/0.1084, allocations: 11.98 kB / 447.7 MB, free: 7.73 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.1085, allocations: 0 / 447.7 MB, free: 7.73 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 2.826e-05/0.1085, allocations: 37.58 kB / 447.7 MB, free: 7.688 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001306/0.1086, allocations: 0 / 447.7 MB, free: 7.688 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003075/0.1089, allocations: 128.5 kB / 447.9 MB, free: 7.523 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002295/0.1092, allocations: 0.677 MB / 448.6 MB, free: 6.82 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 1.462e-05/0.1092, allocations: 0 / 448.6 MB, free: 6.82 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.852e-05/0.1092, allocations: 11.44 kB / 448.6 MB, free: 6.812 MB / 382.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1092, allocations: 0 / 448.6 MB, free: 6.812 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04825/0.1575, allocations: 1.649 MB / 450.2 MB, free: 5.195 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001705/0.1577, allocations: 180.2 kB / 450.4 MB, free: 4.961 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.787/1.945, allocations: 0 / 450.4 MB, free: 4.961 MB / 382.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test01RegFun3_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestUtilities_Test01RegFun3_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestUtilities_Test01RegFun3.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test01RegFun3_res.mat does not exist to compare? outputFormat=mat