Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.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.TestRegSquare2Derivatives,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001357/0.001357, allocations: 122.2 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.001396/0.001396, allocations: 201.2 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.425/1.425, 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.2241/0.2241, allocations: 46.12 MB / 344.4 MB, free: 11.46 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.002252/0.002252, allocations: 79.86 kB / 480.9 MB, free: 4.535 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3329/0.3352, allocations: 62.44 MB / 0.5306 GB, free: 13.39 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.001595/0.3368, allocations: 0.5439 MB / 0.5311 GB, free: 12.98 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006612/0.3375, allocations: 362.6 kB / 0.5315 GB, free: 12.7 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.637e-05/0.3375, allocations: 3.812 kB / 0.5315 GB, free: 12.7 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.895e-05/0.3375, allocations: 3.938 kB / 0.5315 GB, free: 12.7 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 2.706e-05/0.3376, allocations: 0 / 0.5315 GB, free: 12.7 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000409/0.338, allocations: 100.9 kB / 0.5316 GB, free: 12.64 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 8.35e-05/0.3381, allocations: 31.69 kB / 0.5316 GB, free: 12.62 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.8e-05/0.3381, allocations: 6.062 kB / 0.5316 GB, free: 12.61 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.579e-05/0.3382, allocations: 13.17 kB / 0.5316 GB, free: 12.61 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.275e-05/0.3382, allocations: 21.3 kB / 0.5316 GB, free: 12.59 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.593e-05/0.3383, allocations: 2.094 kB / 0.5316 GB, free: 12.59 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002542/0.3385, allocations: 121.8 kB / 0.5318 GB, free: 12.52 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.758e-05/0.3385, allocations: 2.156 kB / 0.5318 GB, free: 12.52 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.159e-05/0.3386, allocations: 19.27 kB / 0.5318 GB, free: 12.51 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001999/0.3388, allocations: 98.25 kB / 0.5319 GB, free: 12.45 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.3388, allocations: 0 / 0.5319 GB, free: 12.45 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.482e-06/0.3388, allocations: 0 / 0.5319 GB, free: 12.45 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.026e-05/0.3388, allocations: 5.375 kB / 0.5319 GB, free: 12.45 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.0005086/0.3393, allocations: 366 kB / 0.5322 GB, free: 12.06 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.069e-05/0.3394, allocations: 9.844 kB / 0.5322 GB, free: 12.06 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.317e-05/0.3394, allocations: 35.69 kB / 0.5323 GB, free: 12.02 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.808e-05/0.3395, allocations: 3.438 kB / 0.5323 GB, free: 12.02 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001453/0.3396, allocations: 174.7 kB / 0.5324 GB, free: 11.81 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.558e-05/0.3396, allocations: 5.438 kB / 0.5324 GB, free: 11.8 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.713e-05/0.3397, allocations: 7.953 kB / 0.5324 GB, free: 11.8 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001293/0.3398, allocations: 51.5 kB / 0.5325 GB, free: 11.76 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.277e-05/0.3398, allocations: 7.938 kB / 0.5325 GB, free: 11.75 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.031e-05/0.3398, allocations: 1.5 kB / 0.5325 GB, free: 11.75 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.426e-06/0.3399, allocations: 3.984 kB / 0.5325 GB, free: 11.75 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.605e-05/0.3399, allocations: 28.58 kB / 0.5325 GB, free: 11.73 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002094/0.3401, allocations: 175.3 kB / 0.5327 GB, free: 11.52 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002104/0.3404, allocations: 57.95 kB / 0.5328 GB, free: 11.48 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.73e-05/0.3404, allocations: 20.64 kB / 0.5328 GB, free: 11.47 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002635/0.3407, allocations: 113.3 kB / 0.5329 GB, free: 11.36 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.036e-05/0.3407, allocations: 40.09 kB / 0.5329 GB, free: 11.31 MB / 398.1 MB Notification: Performance of pre-optimization done (n=9): time 1.172e-06/0.3407, allocations: 0 / 0.5329 GB, free: 11.31 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.0402/0.3809, allocations: 2.572 MB / 0.5354 GB, free: 9.953 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.621e-05/0.381, allocations: 53.59 kB / 0.5355 GB, free: 9.891 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.754e-05/0.3811, allocations: 103.6 kB / 0.5356 GB, free: 9.785 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.456e-05/0.3812, allocations: 30.83 kB / 0.5356 GB, free: 9.75 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.401e-05/0.3812, allocations: 89.2 kB / 0.5357 GB, free: 9.66 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.008e-05/0.3813, allocations: 66.94 kB / 0.5358 GB, free: 9.602 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001378/0.3815, allocations: 59.14 kB / 0.5358 GB, free: 9.566 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001448/0.3816, allocations: 323.9 kB / 0.5361 GB, free: 9.242 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003867/0.382, allocations: 175.5 kB / 0.5363 GB, free: 9.152 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003796/0.3824, allocations: 178.7 kB / 0.5365 GB, free: 9.062 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001053/0.3834, allocations: 411.6 kB / 0.5369 GB, free: 8.863 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.363e-06/0.3835, allocations: 0 / 0.5369 GB, free: 8.863 MB / 398.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001051/0.3845, allocations: 471.7 kB / 0.5373 GB, free: 8.621 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.878e-05/0.3846, allocations: 4.281 kB / 0.5373 GB, free: 8.621 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/0.3846, allocations: 5.438 kB / 0.5373 GB, free: 8.617 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.754e-05/0.3846, allocations: 0 / 0.5373 GB, free: 8.617 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003597/0.385, allocations: 71.81 kB / 0.5374 GB, free: 8.598 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.164e-06/0.385, allocations: 0.75 kB / 0.5374 GB, free: 8.598 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001986/0.3852, allocations: 17.66 kB / 0.5374 GB, free: 8.59 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.415e-05/0.3852, allocations: 21.3 kB / 0.5374 GB, free: 8.582 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.0001333/0.3854, allocations: 124.8 kB / 0.5375 GB, free: 8.453 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.015e-05/0.3854, allocations: 8.141 kB / 0.5376 GB, free: 8.449 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001315/0.3867, allocations: 0.5427 MB / 0.5381 GB, free: 8.145 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.731e-06/0.3868, allocations: 2.156 kB / 0.5381 GB, free: 8.145 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.454e-06/0.3868, allocations: 3.984 kB / 0.5381 GB, free: 8.141 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.3868, allocations: 0 / 0.5381 GB, free: 8.141 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002188/0.389, allocations: 0.8878 MB / 0.539 GB, free: 7.469 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.388e-06/0.389, allocations: 1.156 kB / 0.539 GB, free: 7.469 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000271/0.3893, allocations: 70.69 kB / 0.539 GB, free: 7.449 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.871e-06/0.3893, allocations: 2.969 kB / 0.539 GB, free: 7.449 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.725e-05/0.3893, allocations: 10.16 kB / 0.539 GB, free: 7.449 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.508e-06/0.3893, allocations: 7.031 kB / 0.539 GB, free: 7.445 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.763e-06/0.3893, allocations: 9.391 kB / 0.5391 GB, free: 7.438 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009501/0.3903, allocations: 458.1 kB / 0.5395 GB, free: 7.137 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.783e-05/0.3904, allocations: 89.55 kB / 0.5396 GB, free: 7.035 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.879e-05/0.3904, allocations: 7 kB / 0.5396 GB, free: 7.031 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002017/0.3906, allocations: 26.27 kB / 0.5396 GB, free: 7.016 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.672e-05/0.3906, allocations: 15.27 kB / 0.5396 GB, free: 7.008 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.916e-05/0.3907, allocations: 16.89 kB / 0.5396 GB, free: 7.004 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.474e-05/0.3907, allocations: 87.39 kB / 0.5397 GB, free: 6.922 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3907, allocations: 0 / 0.5397 GB, free: 6.922 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0008413/0.3916, allocations: 317.5 kB / 0.54 GB, free: 6.887 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.002481/0.3941, allocations: 1.116 MB / 0.5411 GB, free: 6 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008407/0.3949, allocations: 340.7 kB / 0.5414 GB, free: 5.844 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.985e-06/0.395, allocations: 0 / 0.5414 GB, free: 5.844 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003798/0.3953, allocations: 146.7 kB / 0.5416 GB, free: 5.785 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002701/0.3956, allocations: 15.53 kB / 0.5416 GB, free: 5.777 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001659/0.3973, allocations: 0.511 MB / 0.5421 GB, free: 5.402 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003302/0.3976, allocations: 0.6938 MB / 0.5428 GB, free: 4.695 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002786/0.3979, allocations: 93.97 kB / 0.5429 GB, free: 4.656 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002051/0.3981, allocations: 56.53 kB / 0.5429 GB, free: 4.602 MB / 398.1 MB Notification: Performance of SimCode: time 4.3e-07/0.3981, allocations: 0 / 0.5429 GB, free: 4.602 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0453/0.4434, allocations: 18.97 MB / 0.5614 GB, free: 1.777 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.914/8.358, allocations: 17.59 kB / 0.5615 GB, free: 1.766 MB / 414.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe 2>&1)