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.001487/0.001487, allocations: 92.83 kB / 15.69 MB, free: 484 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.001923/0.001923, allocations: 176.1 kB / 16.57 MB, free: 5.672 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.541/1.541, allocations: 205.4 MB / 222.7 MB, free: 5.621 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.33/0.33, allocations: 43.54 MB / 314.5 MB, free: 8.832 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.0004965/0.0004966, allocations: 16 kB / 384 MB, free: 7.934 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1138/0.1143, allocations: 58.86 MB / 442.9 MB, free: 12.97 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test01RegFun3): time 0.0005346/0.1149, allocations: 231.1 kB / 443.1 MB, free: 12.75 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001544/0.1165, allocations: 1.341 MB / 444.4 MB, free: 11.38 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.736e-05/0.1165, allocations: 0 / 444.4 MB, free: 11.38 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.056e-05/0.1165, allocations: 0 / 444.4 MB, free: 11.38 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 2.552e-05/0.1165, allocations: 4 kB / 444.4 MB, free: 11.38 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004928/0.117, allocations: 151.6 kB / 444.6 MB, free: 11.23 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 3.231e-05/0.1171, allocations: 4 kB / 444.6 MB, free: 11.23 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.401e-05/0.1171, allocations: 0 / 444.6 MB, free: 11.23 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.467e-05/0.1171, allocations: 0 / 444.6 MB, free: 11.23 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.449e-05/0.1172, allocations: 11.98 kB / 444.6 MB, free: 11.21 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.013e-05/0.1172, allocations: 3.938 kB / 444.6 MB, free: 11.21 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003749/0.1176, allocations: 247.7 kB / 444.8 MB, free: 10.97 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.305e-06/0.1176, allocations: 0 / 444.8 MB, free: 10.97 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 1.99e-05/0.1176, allocations: 29.7 kB / 444.9 MB, free: 10.93 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001309/0.1178, allocations: 79.83 kB / 444.9 MB, free: 10.86 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.064e-06/0.1178, allocations: 4 kB / 444.9 MB, free: 10.85 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.1178, allocations: 0 / 444.9 MB, free: 10.85 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.226e-06/0.1178, allocations: 0 / 444.9 MB, free: 10.85 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.0002888/0.1181, allocations: 331.3 kB / 445.3 MB, free: 10.48 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.74e-05/0.1181, allocations: 8.031 kB / 445.3 MB, free: 10.47 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.07e-05/0.1182, allocations: 38.5 kB / 445.3 MB, free: 10.43 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.477e-05/0.1182, allocations: 7.953 kB / 445.3 MB, free: 10.42 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001088/0.1183, allocations: 179.2 kB / 445.5 MB, free: 10.2 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.075e-05/0.1183, allocations: 4 kB / 445.5 MB, free: 10.2 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.182e-06/0.1184, allocations: 0 / 445.5 MB, free: 10.2 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.967e-05/0.1184, allocations: 29.7 kB / 445.5 MB, free: 10.16 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.919e-06/0.1185, allocations: 0 / 445.5 MB, free: 10.16 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.784e-06/0.1185, allocations: 0 / 445.5 MB, free: 10.16 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.32e-06/0.1185, allocations: 3.953 kB / 445.5 MB, free: 10.16 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.886e-05/0.1185, allocations: 4 kB / 445.5 MB, free: 10.16 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001303/0.1186, allocations: 149.7 kB / 445.7 MB, free: 9.961 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.869e-05/0.1187, allocations: 26.55 kB / 445.7 MB, free: 9.926 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.079e-06/0.1187, allocations: 0 / 445.7 MB, free: 9.926 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.07e-05/0.1187, allocations: 30.56 kB / 445.7 MB, free: 9.887 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 7.21e-07/0.1187, allocations: 3.938 kB / 445.7 MB, free: 9.883 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001157/0.1189, allocations: 41.75 kB / 445.8 MB, free: 9.836 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.187e-05/0.1189, allocations: 51.41 kB / 445.8 MB, free: 9.773 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.671e-05/0.119, allocations: 97.81 kB / 445.9 MB, free: 9.668 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.275e-05/0.119, allocations: 29.95 kB / 446 MB, free: 9.633 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.574e-05/0.119, allocations: 80.14 kB / 446 MB, free: 9.551 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.543e-05/0.119, allocations: 0 / 446 MB, free: 9.551 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.535e-06/0.119, allocations: 0 / 446 MB, free: 9.551 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.979e-05/0.1192, allocations: 318.8 kB / 446.3 MB, free: 9.23 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.026e-05/0.1192, allocations: 7.938 kB / 446.4 MB, free: 9.223 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.651e-06/0.1192, allocations: 0 / 446.4 MB, free: 9.223 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.394e-05/0.1192, allocations: 4 kB / 446.4 MB, free: 9.219 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.502e-06/0.1192, allocations: 64 / 446.4 MB, free: 9.219 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.947e-05/0.1193, allocations: 37.61 kB / 446.4 MB, free: 9.176 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.09e-05/0.1193, allocations: 4 kB / 446.4 MB, free: 9.172 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.587e-06/0.1193, allocations: 4 kB / 446.4 MB, free: 9.168 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.576e-06/0.1193, allocations: 0 / 446.4 MB, free: 9.168 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.2e-05/0.1194, allocations: 3.984 kB / 446.4 MB, free: 9.164 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.737e-06/0.1194, allocations: 0 / 446.4 MB, free: 9.164 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.237e-05/0.1194, allocations: 0 / 446.4 MB, free: 9.164 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.628e-06/0.1194, allocations: 7.953 kB / 446.4 MB, free: 9.156 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 6.254e-05/0.1195, allocations: 113.9 kB / 446.5 MB, free: 9.035 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.454e-06/0.1195, allocations: 0 / 446.5 MB, free: 9.035 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001084/0.1196, allocations: 48.75 kB / 446.6 MB, free: 8.98 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-06/0.1196, allocations: 0 / 446.6 MB, free: 8.98 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.1196, allocations: 8 kB / 446.6 MB, free: 8.973 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.734e-06/0.1196, allocations: 0 / 446.6 MB, free: 8.973 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001099/0.1197, allocations: 149.6 kB / 446.7 MB, free: 8.777 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.194e-06/0.1198, allocations: 15.95 kB / 446.7 MB, free: 8.762 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.31e-07/0.1198, allocations: 0 / 446.7 MB, free: 8.762 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.774e-06/0.1198, allocations: 0 / 446.7 MB, free: 8.762 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.07e-06/0.1198, allocations: 0 / 446.7 MB, free: 8.762 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.62e-07/0.1198, allocations: 0 / 446.7 MB, free: 8.762 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.1198, allocations: 0 / 446.7 MB, free: 8.762 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.515e-05/0.1199, allocations: 61.03 kB / 446.8 MB, free: 8.684 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.289e-05/0.1199, allocations: 81.09 kB / 446.9 MB, free: 8.586 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.226e-05/0.1199, allocations: 11.97 kB / 446.9 MB, free: 8.574 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.153e-05/0.12, allocations: 0 / 446.9 MB, free: 8.574 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.236e-05/0.12, allocations: 4 kB / 446.9 MB, free: 8.57 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.821e-06/0.12, allocations: 4 kB / 446.9 MB, free: 8.566 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.117e-05/0.1201, allocations: 75.28 kB / 447 MB, free: 8.492 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1201, allocations: 0 / 447 MB, free: 8.492 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002466/0.1203, allocations: 43.98 kB / 447 MB, free: 8.449 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.0004589/0.1208, allocations: 0.6282 MB / 447.6 MB, free: 7.793 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 5.505e-05/0.1209, allocations: 11.94 kB / 447.7 MB, free: 7.781 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.1209, allocations: 0 / 447.7 MB, free: 7.781 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 3.634e-05/0.1209, allocations: 29.7 kB / 447.7 MB, free: 7.746 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.558e-05/0.121, allocations: 4 kB / 447.7 MB, free: 7.742 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003171/0.1213, allocations: 128.6 kB / 447.8 MB, free: 7.578 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002273/0.1216, allocations: 0.677 MB / 448.5 MB, free: 6.875 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 1.642e-05/0.1216, allocations: 0 / 448.5 MB, free: 6.875 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.061e-05/0.1216, allocations: 7.438 kB / 448.5 MB, free: 6.867 MB / 382.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1216, allocations: 0 / 448.5 MB, free: 6.867 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01102/0.1327, allocations: 1.632 MB / 450.1 MB, free: 5.262 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001595/0.1328, allocations: 179.2 kB / 450.3 MB, free: 5.023 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.591/1.723, allocations: 0 / 450.3 MB, free: 5.023 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