Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.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.Fluid.TestUtilities.TestRegRoot2Derivatives,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001957/0.001958, allocations: 106 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.002572/0.002572, 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.595/1.595, allocations: 227.4 MB / 246.8 MB, free: 10.51 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.2263/0.2263, allocations: 46.11 MB / 344.2 MB, free: 11.55 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.002376/0.002376, allocations: 77.94 kB / 417.8 MB, free: 19.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1133/0.1157, allocations: 62.45 MB / 480.2 MB, free: 5.129 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives): time 0.001712/0.1174, allocations: 0.5307 MB / 480.7 MB, free: 4.594 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007526/0.1182, allocations: 409.4 kB / 481.1 MB, free: 4.191 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.386e-05/0.1182, allocations: 0 / 481.1 MB, free: 4.191 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.69e-05/0.1182, allocations: 0 / 481.1 MB, free: 4.191 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.834e-05/0.1183, allocations: 3.938 kB / 481.1 MB, free: 4.188 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000449/0.1187, allocations: 143.5 kB / 481.3 MB, free: 4.047 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.388e-05/0.1188, allocations: 23.92 kB / 481.3 MB, free: 4.023 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.653e-05/0.1188, allocations: 4 kB / 481.3 MB, free: 4.02 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.229e-05/0.1189, allocations: 12 kB / 481.3 MB, free: 4.008 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.008e-05/0.1189, allocations: 19.84 kB / 481.3 MB, free: 3.988 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.073e-05/0.1189, allocations: 0 / 481.3 MB, free: 3.988 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002803/0.1192, allocations: 163.8 kB / 481.5 MB, free: 3.828 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.504e-05/0.1192, allocations: 7.984 kB / 481.5 MB, free: 3.82 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.908e-05/0.1193, allocations: 19.88 kB / 481.5 MB, free: 3.801 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002062/0.1195, allocations: 120 kB / 481.6 MB, free: 3.684 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.1195, allocations: 4 kB / 481.6 MB, free: 3.68 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.1195, allocations: 0 / 481.6 MB, free: 3.68 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.288e-06/0.1195, allocations: 4 kB / 481.6 MB, free: 3.676 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0004702/0.12, allocations: 355.5 kB / 482 MB, free: 3.281 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.571e-05/0.1201, allocations: 12.03 kB / 482 MB, free: 3.27 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.946e-05/0.1201, allocations: 34.75 kB / 482 MB, free: 3.227 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.972e-05/0.1201, allocations: 4.938 kB / 482 MB, free: 3.223 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001642/0.1203, allocations: 176.2 kB / 482.2 MB, free: 3.012 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.33e-05/0.1203, allocations: 8.312 kB / 482.2 MB, free: 3.004 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.09e-05/0.1204, allocations: 8.312 kB / 482.2 MB, free: 2.996 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001292/0.1205, allocations: 61.98 kB / 482.3 MB, free: 2.93 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.394e-05/0.1205, allocations: 7.984 kB / 482.3 MB, free: 2.922 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.816e-06/0.1205, allocations: 0 / 482.3 MB, free: 2.922 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.518e-06/0.1205, allocations: 0 / 482.3 MB, free: 2.922 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.671e-05/0.1206, allocations: 23.98 kB / 482.3 MB, free: 2.898 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002125/0.1208, allocations: 177.5 kB / 482.5 MB, free: 2.676 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002136/0.1211, allocations: 50.55 kB / 482.5 MB, free: 2.617 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.409e-05/0.1211, allocations: 24.86 kB / 482.6 MB, free: 2.59 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002855/0.1214, allocations: 113.1 kB / 482.7 MB, free: 2.461 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.638e-05/0.1215, allocations: 46.44 kB / 482.7 MB, free: 2.406 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.253e-06/0.1215, allocations: 0 / 482.7 MB, free: 2.406 MB / 350.1 MB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: k2 2: k1 3: x Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=19): time 0.1492/0.2707, allocations: 6.373 MB / 489.1 MB, free: 12 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.468e-05/0.2708, allocations: 63.34 kB / 489.2 MB, free: 11.93 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.85e-05/0.2709, allocations: 97.86 kB / 489.3 MB, free: 11.82 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.469e-05/0.271, allocations: 37.69 kB / 489.3 MB, free: 11.78 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.504e-05/0.271, allocations: 80.14 kB / 489.4 MB, free: 11.7 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001257/0.2711, allocations: 67.03 kB / 489.4 MB, free: 11.63 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001912/0.2713, allocations: 85.59 kB / 489.5 MB, free: 11.54 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001542/0.2715, allocations: 326.8 kB / 489.8 MB, free: 11.21 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005717/0.2721, allocations: 227.8 kB / 490.1 MB, free: 10.99 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005598/0.2727, allocations: 227.8 kB / 490.3 MB, free: 10.77 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002159/0.2748, allocations: 0.5578 MB / 490.8 MB, free: 10.21 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.2748, allocations: 0 / 490.8 MB, free: 10.21 MB / 366.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001889/0.2767, allocations: 0.6026 MB / 491.4 MB, free: 9.598 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.267e-05/0.2768, allocations: 8 kB / 491.5 MB, free: 9.59 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.268e-06/0.2768, allocations: 7.922 kB / 491.5 MB, free: 9.582 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.896e-05/0.2768, allocations: 7.938 kB / 491.5 MB, free: 9.574 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006765/0.2775, allocations: 107.8 kB / 491.6 MB, free: 9.469 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.017e-05/0.2775, allocations: 3.984 kB / 491.6 MB, free: 9.465 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004128/0.2779, allocations: 19.97 kB / 491.6 MB, free: 9.445 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.283e-05/0.278, allocations: 35.94 kB / 491.6 MB, free: 9.41 MB / 366.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 (19): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * 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.0002203/0.2782, allocations: 121.7 kB / 491.8 MB, free: 9.281 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.788e-05/0.2783, allocations: 11.91 kB / 491.8 MB, free: 9.27 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002247/0.2806, allocations: 0.7302 MB / 492.5 MB, free: 8.535 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.033e-06/0.2806, allocations: 4 kB / 492.5 MB, free: 8.531 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.761e-06/0.2806, allocations: 0 / 492.5 MB, free: 8.531 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.127e-06/0.2806, allocations: 3.984 kB / 492.5 MB, free: 8.527 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004016/0.2846, allocations: 1.156 MB / 493.7 MB, free: 7.301 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.147e-06/0.2847, allocations: 8.188 kB / 493.7 MB, free: 7.293 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005287/0.2852, allocations: 99.8 kB / 493.8 MB, free: 7.195 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.456e-06/0.2852, allocations: 4 kB / 493.8 MB, free: 7.191 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.959e-05/0.2853, allocations: 23.95 kB / 493.8 MB, free: 7.168 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.851e-06/0.2853, allocations: 4 kB / 493.8 MB, free: 7.164 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.807e-06/0.2853, allocations: 7.938 kB / 493.8 MB, free: 7.156 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001733/0.287, allocations: 0.5782 MB / 494.4 MB, free: 6.543 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.346e-05/0.2871, allocations: 85.02 kB / 494.5 MB, free: 6.441 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.817e-05/0.2872, allocations: 8 kB / 494.5 MB, free: 6.434 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003962/0.2876, allocations: 27.95 kB / 494.5 MB, free: 6.406 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.707e-05/0.2876, allocations: 15.92 kB / 494.5 MB, free: 6.391 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.905e-05/0.2877, allocations: 27.95 kB / 494.5 MB, free: 6.363 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.78e-05/0.2877, allocations: 91.22 kB / 494.6 MB, free: 6.273 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2878, allocations: 0 / 494.6 MB, free: 6.273 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001799/0.2896, allocations: 0.6445 MB / 495.3 MB, free: 5.629 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (19): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * 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.005095/0.2947, allocations: 1.305 MB / 496.6 MB, free: 4.277 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001303/0.296, allocations: 459.5 kB / 497 MB, free: 3.828 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.288e-06/0.296, allocations: 4 kB / 497 MB, free: 3.824 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005462/0.2966, allocations: 204.1 kB / 497.2 MB, free: 3.625 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003077/0.2969, allocations: 8 kB / 497.2 MB, free: 3.617 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00353/0.3004, allocations: 0.613 MB / 497.9 MB, free: 2.945 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003888/0.3008, allocations: 0.7003 MB / 498.6 MB, free: 2.215 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005324/0.3014, allocations: 120.9 kB / 498.7 MB, free: 2.098 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003288/0.3017, allocations: 103.3 kB / 498.8 MB, free: 1.996 MB / 366.1 MB Notification: Performance of SimCode: time 1.102e-06/0.3017, allocations: 0 / 498.8 MB, free: 1.996 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3032/0.6049, allocations: 58.55 MB / 0.5443 GB, free: 12.54 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.422/9.027, allocations: 2.344 kB / 0.5443 GB, free: 12.54 MB / 382.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 ModelicaTest_4_1_0-beta_om_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe 2>&1)