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.001369/0.001369, allocations: 121.7 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001507/0.001507, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.485/1.485, allocations: 227.4 MB / 247 MB, free: 10.41 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.2227/0.2227, allocations: 46.12 MB / 344.4 MB, free: 11.43 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.002195/0.002195, allocations: 75.88 kB / 480.9 MB, free: 4.504 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3771/0.3793, allocations: 62.45 MB / 0.5306 GB, free: 13.36 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives): time 0.001983/0.3813, allocations: 0.5383 MB / 0.5311 GB, free: 12.95 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.000897/0.3822, allocations: 409.8 kB / 0.5315 GB, free: 12.64 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.224e-05/0.3823, allocations: 0 / 0.5315 GB, free: 12.64 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.707e-05/0.3823, allocations: 0 / 0.5315 GB, free: 12.64 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 4.478e-05/0.3823, allocations: 3.938 kB / 0.5315 GB, free: 12.63 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005592/0.3829, allocations: 139.5 kB / 0.5316 GB, free: 12.55 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.435e-05/0.383, allocations: 24.45 kB / 0.5317 GB, free: 12.54 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.513e-05/0.383, allocations: 7.562 kB / 0.5317 GB, free: 12.54 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.074e-05/0.3831, allocations: 13.39 kB / 0.5317 GB, free: 12.53 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.454e-05/0.3831, allocations: 24.12 kB / 0.5317 GB, free: 12.51 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.206e-05/0.3831, allocations: 2.188 kB / 0.5317 GB, free: 12.51 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002855/0.3834, allocations: 160.2 kB / 0.5319 GB, free: 12.42 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.505e-05/0.3835, allocations: 5.969 kB / 0.5319 GB, free: 12.42 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.131e-05/0.3835, allocations: 14.7 kB / 0.5319 GB, free: 12.41 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000242/0.3837, allocations: 124.2 kB / 0.532 GB, free: 12.34 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.3838, allocations: 0 / 0.532 GB, free: 12.34 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.314e-06/0.3838, allocations: 0 / 0.532 GB, free: 12.34 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.761e-06/0.3838, allocations: 0 / 0.532 GB, free: 12.34 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0005331/0.3843, allocations: 377.2 kB / 0.5324 GB, free: 11.94 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.725e-05/0.3844, allocations: 10.59 kB / 0.5324 GB, free: 11.94 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.583e-05/0.3844, allocations: 34.73 kB / 0.5324 GB, free: 11.9 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.998e-05/0.3845, allocations: 3.688 kB / 0.5324 GB, free: 11.9 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001776/0.3846, allocations: 167.1 kB / 0.5326 GB, free: 11.7 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.845e-05/0.3847, allocations: 9.656 kB / 0.5326 GB, free: 11.69 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.805e-05/0.3847, allocations: 3.062 kB / 0.5326 GB, free: 11.69 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001708/0.3849, allocations: 59.17 kB / 0.5326 GB, free: 11.64 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.372e-05/0.3849, allocations: 4 kB / 0.5326 GB, free: 11.64 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.286e-05/0.3849, allocations: 5.141 kB / 0.5326 GB, free: 11.63 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.588e-06/0.3849, allocations: 1.375 kB / 0.5326 GB, free: 11.63 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.234e-05/0.385, allocations: 31.77 kB / 0.5327 GB, free: 11.62 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002573/0.3853, allocations: 175.6 kB / 0.5328 GB, free: 11.41 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000249/0.3855, allocations: 55.97 kB / 0.5329 GB, free: 11.37 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.663e-05/0.3856, allocations: 25.69 kB / 0.5329 GB, free: 11.35 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002824/0.3859, allocations: 113.4 kB / 0.533 GB, free: 11.24 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.594e-05/0.3859, allocations: 35.84 kB / 0.5331 GB, free: 11.2 MB / 398.1 MB Notification: Performance of pre-optimization done (n=9): time 1.172e-06/0.3859, allocations: 0 / 0.5331 GB, free: 11.2 MB / 398.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.1379/0.5238, allocations: 6.388 MB / 0.5393 GB, free: 7.645 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.747e-05/0.5239, allocations: 53.59 kB / 0.5394 GB, free: 7.582 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001029/0.524, allocations: 112.4 kB / 0.5395 GB, free: 7.469 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.433e-05/0.524, allocations: 25.7 kB / 0.5395 GB, free: 7.438 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.172e-05/0.5241, allocations: 86.02 kB / 0.5396 GB, free: 7.352 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.534e-05/0.5242, allocations: 62.16 kB / 0.5396 GB, free: 7.297 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001772/0.5244, allocations: 85.5 kB / 0.5397 GB, free: 7.242 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001452/0.5245, allocations: 325 kB / 0.54 GB, free: 6.918 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005553/0.5251, allocations: 229 kB / 0.5402 GB, free: 6.793 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005463/0.5256, allocations: 236 kB / 0.5405 GB, free: 6.664 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002098/0.5278, allocations: 0.5533 MB / 0.541 GB, free: 6.383 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.293e-06/0.5278, allocations: 5.094 kB / 0.541 GB, free: 6.379 MB / 398.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001859/0.5296, allocations: 0.6108 MB / 0.5416 GB, free: 6.043 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.74e-05/0.5297, allocations: 5.844 kB / 0.5416 GB, free: 6.043 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.496e-06/0.5297, allocations: 0 / 0.5416 GB, free: 6.043 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.554e-05/0.5297, allocations: 5.188 kB / 0.5416 GB, free: 6.039 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006575/0.5304, allocations: 109.1 kB / 0.5417 GB, free: 5.992 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.264e-06/0.5304, allocations: 1.062 kB / 0.5417 GB, free: 5.992 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004342/0.5308, allocations: 27.56 kB / 0.5417 GB, free: 5.977 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.55e-05/0.5309, allocations: 32.09 kB / 0.5418 GB, free: 5.961 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: 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.0001559/0.5311, allocations: 129.1 kB / 0.5419 GB, free: 5.828 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.326e-05/0.5311, allocations: 8.109 kB / 0.5419 GB, free: 5.824 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002178/0.5333, allocations: 0.7301 MB / 0.5426 GB, free: 5.133 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.506e-06/0.5333, allocations: 0 / 0.5426 GB, free: 5.133 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.512e-06/0.5333, allocations: 4.469 kB / 0.5426 GB, free: 5.129 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.5333, allocations: 0 / 0.5426 GB, free: 5.129 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003977/0.5373, allocations: 1.153 MB / 0.5437 GB, free: 3.902 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.327e-06/0.5373, allocations: 0 / 0.5437 GB, free: 3.902 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005534/0.5379, allocations: 104 kB / 0.5438 GB, free: 3.801 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.46e-06/0.5379, allocations: 3.938 kB / 0.5439 GB, free: 3.797 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.373e-05/0.538, allocations: 31.94 kB / 0.5439 GB, free: 3.766 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.963e-06/0.538, allocations: 4 kB / 0.5439 GB, free: 3.762 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.847e-06/0.538, allocations: 3.938 kB / 0.5439 GB, free: 3.758 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001687/0.5397, allocations: 0.5808 MB / 0.5445 GB, free: 3.145 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.971e-05/0.5398, allocations: 93.05 kB / 0.5445 GB, free: 3.035 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.337e-05/0.5398, allocations: 0 / 0.5445 GB, free: 3.035 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004023/0.5402, allocations: 27.97 kB / 0.5446 GB, free: 3.008 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.757e-05/0.5403, allocations: 11.92 kB / 0.5446 GB, free: 2.996 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.344e-05/0.5403, allocations: 35.95 kB / 0.5446 GB, free: 2.961 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.474e-05/0.5404, allocations: 87.2 kB / 0.5447 GB, free: 2.875 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.5404, allocations: 0 / 0.5447 GB, free: 2.875 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001703/0.5421, allocations: 0.6519 MB / 0.5453 GB, free: 2.223 MB / 398.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.00505/0.5472, allocations: 1.302 MB / 0.5466 GB, free: 0.8711 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001259/0.5484, allocations: 463.5 kB / 0.5471 GB, free: 428 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.828e-06/0.5485, allocations: 0 / 0.5471 GB, free: 428 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005363/0.549, allocations: 196.1 kB / 0.5472 GB, free: 232 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002935/0.5493, allocations: 16 kB / 0.5473 GB, free: 216 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003207/0.5525, allocations: 0.624 MB / 0.5479 GB, free: 15.53 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003542/0.5529, allocations: 0.6926 MB / 0.5485 GB, free: 14.8 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004417/0.5533, allocations: 133.1 kB / 0.5487 GB, free: 14.67 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000329/0.5537, allocations: 99.28 kB / 0.5488 GB, free: 14.57 MB / 414.1 MB Notification: Performance of SimCode: time 5.61e-07/0.5537, allocations: 0 / 0.5488 GB, free: 14.57 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09679/0.6505, allocations: 58.59 MB / 0.606 GB, free: 4.012 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.518/9.168, allocations: 4 kB / 0.606 GB, free: 4.008 MB / 462.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe 2>&1)