Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_Rotor1D_Rotor1D_3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_Rotor1D_Rotor1D_3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001402/0.001402, allocations: 174.4 kB / 8.74 MB, free: 348 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.37/1.37, allocations: 221.5 MB / 230.7 MB, free: 7.582 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009427/0.0009427, allocations: 87.95 kB / 281.6 MB, free: 5.32 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2043/0.2043, allocations: 44.15 MB / 376.5 MB, free: 3.043 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.528e-05/1.542e-05, allocations: 224 / 444.7 MB, free: 15.14 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1421/0.1421, allocations: 61.92 MB / 0.4948 GB, free: 1.152 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4467/0.5889, allocations: 109.7 MB / 0.6019 GB, free: 2.609 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002573/0.5892, allocations: 83.95 kB / 0.602 GB, free: 2.527 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2509/0.8401, allocations: 93.64 MB / 0.6934 GB, free: 4.25 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.234e-06/0.8401, allocations: 0 / 0.6934 GB, free: 4.25 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0002758/0.8404, allocations: 96 kB / 0.6935 GB, free: 4.156 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1765 * Number of variables: 1765 Notification: Performance of Generate backend data structure: time 0.3525/1.193, allocations: 5.348 MB / 0.6987 GB, free: 106.3 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 7.011e-05/1.193, allocations: 17.02 kB / 0.6988 GB, free: 106.3 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01348/1.207, allocations: 2.28 MB / 0.701 GB, free: 106 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01893/1.225, allocations: 4.726 MB / 0.7056 GB, free: 105.7 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007122/1.226, allocations: 159.9 kB / 0.7058 GB, free: 105.7 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003985/1.23, allocations: 298 kB / 0.706 GB, free: 105.7 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02047/1.251, allocations: 7.488 MB / 0.7134 GB, free: 105.6 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03216/1.283, allocations: 11.06 MB / 0.7242 GB, free: 102.9 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005306/1.284, allocations: 67.59 kB / 0.7242 GB, free: 102.9 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00327/1.287, allocations: 30.5 kB / 0.7242 GB, free: 102.9 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002192/1.289, allocations: 1.154 MB / 0.7254 GB, free: 102.8 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0717/1.361, allocations: 52.17 MB / 0.7763 GB, free: 68.92 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005376/1.366, allocations: 4.266 MB / 0.7805 GB, free: 66.81 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003905/1.37, allocations: 3.062 MB / 0.7835 GB, free: 65.53 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001537/1.372, allocations: 1.003 MB / 0.7845 GB, free: 64.65 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.242e-05/1.372, allocations: 66.53 kB / 0.7845 GB, free: 64.59 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=203): time 6.452e-06/1.372, allocations: 0 / 0.7845 GB, free: 64.59 MB / 0.4948 GB Notification: Performance of matching and sorting (n=234): time 0.0447/1.417, allocations: 21.96 MB / 0.806 GB, free: 55.06 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.066e-05/1.417, allocations: 154.5 kB / 0.8061 GB, free: 54.88 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00563/1.422, allocations: 3.202 MB / 0.8092 GB, free: 52.08 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.001042/1.424, allocations: 25.7 kB / 0.8093 GB, free: 52.05 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.002582/1.426, allocations: 3.49 MB / 0.8127 GB, free: 48.89 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001403/1.428, allocations: 0.8581 MB / 0.8135 GB, free: 48.12 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005429/1.428, allocations: 0 / 0.8135 GB, free: 48.12 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0004052/1.429, allocations: 0.5911 MB / 0.8141 GB, free: 47.61 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003596/1.432, allocations: 2.723 MB / 0.8167 GB, free: 45.21 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005347/1.438, allocations: 6.638 MB / 0.8232 GB, free: 37.11 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005838/1.443, allocations: 4.184 MB / 0.8273 GB, free: 33.57 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001089/1.444, allocations: 40 kB / 0.8273 GB, free: 33.53 MB / 0.4948 GB Notification: Performance of matching and sorting (n=880) (initialization): time 0.01853/1.462, allocations: 9.524 MB / 0.8367 GB, free: 25.45 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 8.813e-05/1.462, allocations: 71.89 kB / 0.8367 GB, free: 25.38 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001588/1.462, allocations: 144.2 kB / 0.8369 GB, free: 25.24 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002611/1.465, allocations: 1.128 MB / 0.838 GB, free: 24.41 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006279/1.471, allocations: 1.675 MB / 0.8396 GB, free: 23 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006428/1.478, allocations: 5.617 MB / 0.8451 GB, free: 18.05 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006972/1.485, allocations: 286.2 kB / 0.8454 GB, free: 17.83 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002076/1.487, allocations: 420.2 kB / 0.8458 GB, free: 17.45 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 639 * Number of states: 0 () * Number of discrete variables: 44 (fixed.color[3],fixed.color[2],fixed.color[1],r2.cylinderColor[3],r2.cylinderColor[2],r2.cylinderColor[1],r1.cylinderColor[3],r1.cylinderColor[2],r1.cylinderColor[1],rotor1D.cylinderColor[3],rotor1D.cylinderColor[2],rotor1D.cylinderColor[1],torque.connectionLineColor[3],torque.connectionLineColor[2],torque.connectionLineColor[1],torque.torqueArrow.arrowLine.twoHeadedArrow,torque.torqueArrow.headAtOrigin,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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (841): * Single equations (assignments): 837 * 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.001318/1.488, allocations: 469.8 kB / 0.8462 GB, free: 16.98 MB / 0.4948 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.007818/1.496, allocations: 5.177 MB / 0.8513 GB, free: 12.72 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007575/1.497, allocations: 351.4 kB / 0.8516 GB, free: 12.38 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007859/1.505, allocations: 5.022 MB / 0.8565 GB, free: 8.395 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.362e-05/1.505, allocations: 29.52 kB / 0.8565 GB, free: 8.367 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.308e-05/1.505, allocations: 4 kB / 0.8565 GB, free: 8.363 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.793e-05/1.505, allocations: 14.17 kB / 0.8565 GB, free: 8.359 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01805/1.523, allocations: 10.53 MB / 0.8668 GB, free: 14.39 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.884e-05/1.523, allocations: 4 kB / 0.8668 GB, free: 14.39 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00276/1.526, allocations: 479.3 kB / 0.8673 GB, free: 13.92 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00273/1.528, allocations: 0.9348 MB / 0.8682 GB, free: 12.98 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007458/1.529, allocations: 19.92 kB / 0.8682 GB, free: 12.96 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007274/1.537, allocations: 5.332 MB / 0.8734 GB, free: 7.52 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.736e-06/1.537, allocations: 4 kB / 0.8734 GB, free: 7.516 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01377/1.55, allocations: 9.007 MB / 0.8822 GB, free: 14.4 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002328/1.553, allocations: 0.8048 MB / 0.883 GB, free: 13.57 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007591/1.554, allocations: 7.984 kB / 0.883 GB, free: 13.56 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002048/1.556, allocations: 143.8 kB / 0.8832 GB, free: 13.42 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003685/1.556, allocations: 141.7 kB / 0.8833 GB, free: 13.29 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001937/1.556, allocations: 72.52 kB / 0.8834 GB, free: 13.22 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.00376/1.56, allocations: 2.128 MB / 0.8854 GB, free: 11.11 MB / 0.5261 GB Notification: Performance of sort global known variables: time 2.91e-07/1.56, allocations: 4 kB / 0.8854 GB, free: 11.11 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.007209/1.567, allocations: 1.036 MB / 0.8865 GB, free: 10.07 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 8 (revolute.phi,revolute.w,rotor1D.phi,rotor1D.w,r1.phi,r1.w,r2.phi,r2.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (206): * Single equations (assignments): 202 * 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 Backend phase and start with SimCode phase: time 0.388/1.955, allocations: 10.37 MB / 0.8966 GB, free: 126.9 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01724/1.972, allocations: 6.498 MB / 0.9029 GB, free: 126.8 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 9.708e-06/1.973, allocations: 1.594 kB / 0.9029 GB, free: 126.8 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.005267/1.978, allocations: 2.491 MB / 0.9054 GB, free: 126.7 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003151/1.981, allocations: 352.4 kB / 0.9057 GB, free: 126.6 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03725/2.018, allocations: 10.92 MB / 0.9164 GB, free: 124.7 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004325/2.023, allocations: 3.77 MB / 0.92 GB, free: 123.9 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.005689/2.028, allocations: 2.208 MB / 0.9222 GB, free: 123.9 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003555/2.032, allocations: 2.215 MB / 0.9244 GB, free: 123.9 MB / 0.5261 GB Notification: Performance of SimCode: time 1.272e-06/2.032, allocations: 0 / 0.9244 GB, free: 123.9 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1407/2.173, allocations: 84.41 MB / 1.007 GB, free: 83.6 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002426/2.173, allocations: 141.6 kB / 1.007 GB, free: 83.41 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.619/6.792, allocations: 0 / 1.007 GB, free: 83.41 MB / 0.5261 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_Rotor1D_Rotor1D_3_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_Rotor1D_Rotor1D_3.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3_res.mat does not exist to compare? outputFormat=mat