Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.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 trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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.MultiBody.Parts.Rotor1D.Rotor1D_2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Parts_Rotor1D_Rotor1D_2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Parts_Rotor1D_Rotor1D_2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000898/0.000898, allocations: 101.8 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001/0.001, allocations: 205.1 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.443/1.443, allocations: 227.3 MB / 245.9 MB, free: 10.3 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2176/0.2176, allocations: 45.91 MB / 344 MB, free: 12.07 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003354/0.0003354, allocations: 8 kB / 418.1 MB, free: 20.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1266/0.127, allocations: 63.47 MB / 481.5 MB, free: 5.234 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2): time 0.3461/0.4731, allocations: 42.52 MB / 0.5118 GB, free: 9.961 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02547/0.4987, allocations: 10.17 MB / 0.5217 GB, free: 9.477 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01225/0.511, allocations: 207.2 kB / 0.5219 GB, free: 9.445 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009382/0.5204, allocations: 2.104 MB / 0.524 GB, free: 9.051 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02758/0.548, allocations: 6.148 MB / 0.53 GB, free: 8.188 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003507/0.5516, allocations: 0.5068 MB / 0.5305 GB, free: 8.047 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.005518/0.5571, allocations: 2.059 MB / 0.5325 GB, free: 7.617 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006718/0.5639, allocations: 4.402 MB / 0.5368 GB, free: 6.301 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002266/0.5662, allocations: 0.9585 MB / 0.5377 GB, free: 5.973 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001974/0.5682, allocations: 1.27 MB / 0.5389 GB, free: 5.5 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004287/0.5686, allocations: 131 kB / 0.5391 GB, free: 5.5 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001663/0.5703, allocations: 0.7476 MB / 0.5398 GB, free: 5.32 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001286/0.5716, allocations: 1.471 MB / 0.5412 GB, free: 4.863 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008685/0.5725, allocations: 0.7924 MB / 0.542 GB, free: 4.668 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005393/0.5779, allocations: 5.234 MB / 0.5471 GB, free: 1.824 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.386e-06/0.5779, allocations: 4 kB / 0.5471 GB, free: 1.82 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.385e-06/0.5779, allocations: 0 / 0.5471 GB, free: 1.82 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002389/0.5782, allocations: 0 / 0.5471 GB, free: 1.82 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: 1442 * Number of variables: 1442 Notification: Performance of Generate backend data structure: time 0.01826/0.5964, allocations: 4.401 MB / 0.5514 GB, free: 14.56 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.224e-05/0.5965, allocations: 8.031 kB / 0.5514 GB, free: 14.55 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003016/0.5995, allocations: 0.6887 MB / 0.5521 GB, free: 13.89 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008727/0.6083, allocations: 2.243 MB / 0.5543 GB, free: 11.64 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006628/0.615, allocations: 2.301 MB / 0.5565 GB, free: 9.301 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002243/0.6152, allocations: 231.4 kB / 0.5568 GB, free: 9.105 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001277/0.6165, allocations: 303.1 kB / 0.557 GB, free: 8.844 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02281/0.6394, allocations: 10.28 MB / 0.5671 GB, free: 14.01 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001345/0.6395, allocations: 39.64 kB / 0.5671 GB, free: 13.97 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005043/0.6401, allocations: 149.4 kB / 0.5673 GB, free: 13.86 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003521/0.6436, allocations: 1.874 MB / 0.5691 GB, free: 12 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02188/0.6655, allocations: 9.252 MB / 0.5781 GB, free: 2.723 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05303/0.7186, allocations: 37.65 MB / 0.6149 GB, free: 12.17 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01241/0.731, allocations: 3.737 MB / 0.6185 GB, free: 8.285 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009469/0.732, allocations: 0.6825 MB / 0.6192 GB, free: 7.5 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.303e-05/0.7321, allocations: 58.94 kB / 0.6193 GB, free: 7.434 MB / 462.1 MB Notification: Performance of pre-optimization done (n=130): time 5.15e-06/0.7321, allocations: 0 / 0.6193 GB, free: 7.434 MB / 462.1 MB Notification: Performance of matching and sorting (n=136): time 0.04169/0.7738, allocations: 13.24 MB / 0.6322 GB, free: 10.02 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.959e-05/0.7739, allocations: 145.1 kB / 0.6323 GB, free: 9.844 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005489/0.7794, allocations: 4.089 MB / 0.6363 GB, free: 5.773 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003036/0.7797, allocations: 45.7 kB / 0.6364 GB, free: 5.723 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002072/0.7818, allocations: 3.006 MB / 0.6393 GB, free: 2.719 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006709/0.7825, allocations: 0.5486 MB / 0.6399 GB, free: 2.176 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002042/0.7827, allocations: 111.9 kB / 0.64 GB, free: 2.066 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0003401/0.783, allocations: 0.5413 MB / 0.6405 GB, free: 1.52 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002711/0.7857, allocations: 1.916 MB / 0.6424 GB, free: 15.6 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005304/0.7911, allocations: 5.477 MB / 0.6477 GB, free: 8.312 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004096/0.7952, allocations: 3.16 MB / 0.6508 GB, free: 5.156 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.003e-05/0.7952, allocations: 36 kB / 0.6508 GB, free: 5.121 MB / 494.1 MB Notification: Performance of matching and sorting (n=719) (initialization): time 0.01298/0.8082, allocations: 7.883 MB / 0.6585 GB, free: 13.23 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 7.756e-05/0.8083, allocations: 63.94 kB / 0.6586 GB, free: 13.16 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001213/0.8085, allocations: 132.2 kB / 0.6587 GB, free: 13.04 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002297/0.8108, allocations: 0.9225 MB / 0.6596 GB, free: 12.11 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003767/0.8145, allocations: 1.283 MB / 0.6609 GB, free: 10.82 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006368/0.8209, allocations: 4.965 MB / 0.6657 GB, free: 5.73 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004455/0.8254, allocations: 306.5 kB / 0.666 GB, free: 5.434 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007515/0.8262, allocations: 360 kB / 0.6663 GB, free: 5.082 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 582 * Number of states: 0 () * Number of discrete variables: 38 (torque.torqueArrow.arrowLine.twoHeadedArrow,torque.torqueArrow.headAtOrigin,rotor1D.cylinderColor[3],rotor1D.cylinderColor[2],rotor1D.cylinderColor[1],fixed.color[3],fixed.color[2],fixed.color[1],torque.connectionLineColor[3],torque.connectionLineColor[2],torque.connectionLineColor[1],torque.torqueColor[3],torque.torqueColor[2],torque.torqueColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],bodyCylinder.frameTranslation.color[3],bodyCylinder.frameTranslation.color[2],bodyCylinder.frameTranslation.color[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (680): * Single equations (assignments): 676 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003469/0.8296, allocations: 1.991 MB / 0.6683 GB, free: 3.078 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000624/0.8303, allocations: 335.6 kB / 0.6686 GB, free: 2.746 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004845/0.8351, allocations: 2.798 MB / 0.6713 GB, free: 15.93 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.484e-05/0.8352, allocations: 16 kB / 0.6714 GB, free: 15.91 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.21e-05/0.8352, allocations: 4 kB / 0.6714 GB, free: 15.91 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.402e-05/0.8352, allocations: 7.969 kB / 0.6714 GB, free: 15.9 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01296/0.8482, allocations: 7.284 MB / 0.6785 GB, free: 8.57 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.989e-05/0.8482, allocations: 4 kB / 0.6785 GB, free: 8.566 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001146/0.8494, allocations: 255.7 kB / 0.6787 GB, free: 8.316 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002048/0.8514, allocations: 0.7186 MB / 0.6794 GB, free: 7.594 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001303/0.8516, allocations: 31.97 kB / 0.6795 GB, free: 7.562 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005575/0.8572, allocations: 4.526 MB / 0.6839 GB, free: 2.906 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.867e-06/0.8572, allocations: 4.047 kB / 0.6839 GB, free: 2.902 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007623/0.8648, allocations: 5.292 MB / 0.6891 GB, free: 13.55 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001389/0.8662, allocations: 396.6 kB / 0.6894 GB, free: 13.14 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007731/0.867, allocations: 31.94 kB / 0.6895 GB, free: 13.11 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00158/0.8686, allocations: 75.91 kB / 0.6895 GB, free: 13.04 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002654/0.8689, allocations: 92.52 kB / 0.6896 GB, free: 12.95 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001335/0.869, allocations: 48.06 kB / 0.6897 GB, free: 12.9 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.005176/0.8742, allocations: 2.571 MB / 0.6922 GB, free: 10.35 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.41e-07/0.8742, allocations: 0 / 0.6922 GB, free: 10.35 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.006459/0.8807, allocations: 0.9168 MB / 0.6931 GB, free: 9.434 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 4 (revolute.phi,revolute.w,rotor1D.phi,rotor1D.w) * 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 (104): * Single equations (assignments): 100 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00906/0.8898, allocations: 6.266 MB / 0.6992 GB, free: 3.102 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.007177/0.897, allocations: 4.587 MB / 0.7037 GB, free: 14.54 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 7.224e-06/0.897, allocations: 4 kB / 0.7037 GB, free: 14.54 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.00181/0.8988, allocations: 1.365 MB / 0.705 GB, free: 13.15 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002514/0.9014, allocations: 388.4 kB / 0.7054 GB, free: 12.78 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3574/1.259, allocations: 120.3 MB / 0.8228 GB, free: 65.81 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003151/1.262, allocations: 3.188 MB / 0.826 GB, free: 65.01 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004211/1.266, allocations: 1.795 MB / 0.8277 GB, free: 64.87 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002425/1.269, allocations: 1.787 MB / 0.8295 GB, free: 64.86 MB / 0.545 GB Notification: Performance of SimCode: time 2.905e-06/1.269, allocations: 4 kB / 0.8295 GB, free: 64.86 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1067/1.375, allocations: 72.84 MB / 0.9006 GB, free: 15.64 MB / 0.5606 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001719/1.376, allocations: 207.2 kB / 0.9008 GB, free: 15.39 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.947/5.322, allocations: 0 / 0.9008 GB, free: 15.39 MB / 0.5606 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Parts_Rotor1D_Rotor1D_2_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Parts_Rotor1D_Rotor1D_2.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2_res.mat does not exist to compare? outputFormat=mat