Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestSpeed.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.Rotational.TestSpeed,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_TestSpeed",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestSpeed,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_TestSpeed",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001417/0.001418, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001564/0.001565, allocations: 198 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.53/1.53, allocations: 227.4 MB / 247 MB, free: 10.45 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.2405/0.2405, allocations: 46.11 MB / 344.3 MB, free: 11.48 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.003239/0.003239, allocations: 87.84 kB / 480.9 MB, free: 4.551 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3879/0.3912, allocations: 62.44 MB / 0.5306 GB, free: 13.41 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestSpeed): time 0.005199/0.3964, allocations: 2.638 MB / 0.5332 GB, free: 11.34 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001691/0.3982, allocations: 0.7249 MB / 0.5339 GB, free: 10.75 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002371/0.3985, allocations: 8.656 kB / 0.5339 GB, free: 10.74 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002031/0.3987, allocations: 43.45 kB / 0.5339 GB, free: 10.7 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002418/0.399, allocations: 85.83 kB / 0.534 GB, free: 10.63 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004108/0.3994, allocations: 106.3 kB / 0.5341 GB, free: 10.54 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004738/0.3999, allocations: 340.8 kB / 0.5344 GB, free: 10.34 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002269/0.4001, allocations: 78.11 kB / 0.5345 GB, free: 10.29 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003986/0.4005, allocations: 139.9 kB / 0.5346 GB, free: 10.21 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002278/0.4008, allocations: 128.6 kB / 0.5347 GB, free: 10.12 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.91e-05/0.4008, allocations: 22 kB / 0.5348 GB, free: 10.12 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.419e-05/0.4009, allocations: 24.75 kB / 0.5348 GB, free: 10.12 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.606e-05/0.401, allocations: 60.02 kB / 0.5349 GB, free: 10.07 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000177/0.4012, allocations: 146 kB / 0.535 GB, free: 9.973 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005257/0.4017, allocations: 306.2 kB / 0.5353 GB, free: 9.758 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.534e-06/0.4017, allocations: 3.938 kB / 0.5353 GB, free: 9.754 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.926e-06/0.4017, allocations: 1.375 kB / 0.5353 GB, free: 9.754 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.177e-05/0.4018, allocations: 0 / 0.5353 GB, free: 9.754 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.001162/0.4029, allocations: 0.6029 MB / 0.5359 GB, free: 9.207 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.525e-05/0.403, allocations: 9.156 kB / 0.5359 GB, free: 9.207 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.834e-05/0.4031, allocations: 58.58 kB / 0.5359 GB, free: 9.148 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002885/0.4034, allocations: 52.34 kB / 0.536 GB, free: 9.125 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004851/0.4039, allocations: 284.7 kB / 0.5363 GB, free: 8.844 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.583e-05/0.4039, allocations: 18.81 kB / 0.5363 GB, free: 8.836 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.756e-05/0.404, allocations: 29.52 kB / 0.5363 GB, free: 8.824 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005959/0.4046, allocations: 280.6 kB / 0.5366 GB, free: 8.621 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.694e-05/0.4046, allocations: 14.23 kB / 0.5366 GB, free: 8.609 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.738e-05/0.4047, allocations: 10.39 kB / 0.5366 GB, free: 8.602 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.116e-05/0.4047, allocations: 6.719 kB / 0.5366 GB, free: 8.602 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004538/0.4051, allocations: 179.6 kB / 0.5368 GB, free: 8.523 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001841/0.407, allocations: 1.3 MB / 0.538 GB, free: 7.312 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004582/0.4075, allocations: 262.1 kB / 0.5383 GB, free: 7.121 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002144/0.4077, allocations: 103.8 kB / 0.5384 GB, free: 7.051 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.824e-05/0.4077, allocations: 7.406 kB / 0.5384 GB, free: 7.047 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.253e-05/0.4078, allocations: 40.81 kB / 0.5384 GB, free: 7 MB / 398.1 MB Notification: Performance of pre-optimization done (n=26): time 2.635e-06/0.4078, allocations: 1.094 kB / 0.5384 GB, free: 7 MB / 398.1 MB Notification: Performance of matching and sorting (n=32): time 0.002953/0.4107, allocations: 1.576 MB / 0.54 GB, free: 5.59 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000101/0.4109, allocations: 137.1 kB / 0.5401 GB, free: 5.43 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002729/0.4112, allocations: 228.8 kB / 0.5403 GB, free: 5.262 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.973e-05/0.4112, allocations: 30.95 kB / 0.5404 GB, free: 5.227 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001414/0.4113, allocations: 178.8 kB / 0.5405 GB, free: 5.062 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000115/0.4115, allocations: 125.1 kB / 0.5406 GB, free: 4.953 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001197/0.4116, allocations: 67.47 kB / 0.5407 GB, free: 4.906 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001624/0.4118, allocations: 340.5 kB / 0.541 GB, free: 4.57 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002662/0.412, allocations: 102.1 kB / 0.5411 GB, free: 4.527 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003866/0.4124, allocations: 243.5 kB / 0.5414 GB, free: 4.301 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006983/0.4131, allocations: 369.6 kB / 0.5417 GB, free: 4.012 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.268e-06/0.4132, allocations: 1.125 kB / 0.5417 GB, free: 4.012 MB / 398.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0008758/0.414, allocations: 401.8 kB / 0.5421 GB, free: 3.805 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.699e-05/0.4141, allocations: 7.156 kB / 0.5421 GB, free: 3.805 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.151e-05/0.4141, allocations: 4.312 kB / 0.5421 GB, free: 3.805 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.487e-05/0.4141, allocations: 10.66 kB / 0.5421 GB, free: 3.801 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003997/0.4145, allocations: 98.66 kB / 0.5422 GB, free: 3.777 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.922e-05/0.4146, allocations: 14.42 kB / 0.5422 GB, free: 3.77 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002575/0.4148, allocations: 22.14 kB / 0.5423 GB, free: 3.762 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.423e-05/0.4149, allocations: 17.86 kB / 0.5423 GB, free: 3.758 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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 (48): * Single equations (assignments): 48 * 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.000212/0.4151, allocations: 159.9 kB / 0.5424 GB, free: 3.605 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001147/0.4152, allocations: 33.66 kB / 0.5425 GB, free: 3.586 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.702e-05/0.4153, allocations: 36.77 kB / 0.5425 GB, free: 3.555 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.572e-06/0.4153, allocations: 3.5 kB / 0.5425 GB, free: 3.555 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.668e-06/0.4153, allocations: 2.031 kB / 0.5425 GB, free: 3.555 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.175e-06/0.4153, allocations: 5.078 kB / 0.5425 GB, free: 3.551 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001727/0.4171, allocations: 0.9759 MB / 0.5435 GB, free: 2.734 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.901e-06/0.4171, allocations: 1.531 kB / 0.5435 GB, free: 2.734 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003648/0.4175, allocations: 82.19 kB / 0.5435 GB, free: 2.711 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.544e-06/0.4175, allocations: 3.094 kB / 0.5435 GB, free: 2.711 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.884e-05/0.4175, allocations: 15.44 kB / 0.5436 GB, free: 2.699 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.576e-06/0.4175, allocations: 14.8 kB / 0.5436 GB, free: 2.688 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.816e-06/0.4175, allocations: 1.531 kB / 0.5436 GB, free: 2.688 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001132/0.4187, allocations: 0.7187 MB / 0.5443 GB, free: 2.148 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001122/0.4188, allocations: 108.7 kB / 0.5444 GB, free: 2.031 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.656e-05/0.4189, allocations: 15.58 kB / 0.5444 GB, free: 2.02 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002941/0.4192, allocations: 17.95 kB / 0.5444 GB, free: 2.012 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.037e-05/0.4193, allocations: 27.75 kB / 0.5444 GB, free: 1.996 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.107e-05/0.4193, allocations: 11.5 kB / 0.5444 GB, free: 1.992 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000167/0.4195, allocations: 166.7 kB / 0.5446 GB, free: 1.867 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4195, allocations: 0 / 0.5446 GB, free: 1.867 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005566/0.42, allocations: 63.84 kB / 0.5447 GB, free: 1.859 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (speed4.s,speed3.s,speed3.v,speed1.phi,speed1.w,speed2.phi) * 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 (32): * Single equations (assignments): 32 * 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.001444/0.4215, allocations: 1.272 MB / 0.5459 GB, free: 0.7734 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000714/0.4222, allocations: 280.3 kB / 0.5462 GB, free: 0.6602 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.4222, allocations: 0 / 0.5462 GB, free: 0.6602 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002968/0.4225, allocations: 129.7 kB / 0.5463 GB, free: 0.6094 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000693/0.4232, allocations: 41.64 kB / 0.5463 GB, free: 0.5859 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005958/0.4292, allocations: 3.528 MB / 0.5498 GB, free: 13.04 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005937/0.4298, allocations: 0.7681 MB / 0.5505 GB, free: 12.24 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000249/0.4301, allocations: 34.94 kB / 0.5506 GB, free: 12.21 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002329/0.4304, allocations: 99.41 kB / 0.5507 GB, free: 12.11 MB / 414.1 MB Notification: Performance of SimCode: time 8.52e-07/0.4304, allocations: 0 / 0.5507 GB, free: 12.11 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03743/0.4678, allocations: 5.375 MB / 0.5559 GB, free: 6.824 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.684/9.152, allocations: 12.44 kB / 0.5559 GB, free: 6.816 MB / 414.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestSpeed.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestSpeed.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestSpeed.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestSpeed.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestSpeed_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_TestSpeed_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_TestSpeed.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestSpeed.pipe 2>&1)