Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Torque.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Torque,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_Torque",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Torque,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_Torque",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009923/0.0009924, allocations: 182.4 kB / 15.76 MB, free: 6.367 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.463/1.463, allocations: 205.4 MB / 221.9 MB, free: 13.84 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009434/0.0009434, allocations: 94.8 kB / 270.2 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2005/0.2005, allocations: 43.55 MB / 362 MB, free: 11.32 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00032/0.0003199, allocations: 8 kB / 431.5 MB, free: 19.51 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1204/0.1208, allocations: 58.86 MB / 490.3 MB, free: 8.582 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3883/0.5092, allocations: 107.6 MB / 0.584 GB, free: 8.367 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002595/0.5095, allocations: 71.66 kB / 0.584 GB, free: 8.332 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6157/1.125, allocations: 132.5 MB / 0.7134 GB, free: 96.33 MB / 0.4948 GB Notification: Performance of FrontEnd: time 4.258e-06/1.125, allocations: 0 / 0.7134 GB, free: 96.33 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0006015/1.126, allocations: 132.8 kB / 0.7136 GB, free: 96.33 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: 2391 * Number of variables: 2391 Notification: Performance of Generate backend data structure: time 0.0326/1.159, allocations: 7.199 MB / 0.7206 GB, free: 93.94 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.497e-05/1.159, allocations: 9.531 kB / 0.7206 GB, free: 93.94 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006984/1.166, allocations: 1.19 MB / 0.7218 GB, free: 93.84 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0323/1.198, allocations: 7.145 MB / 0.7287 GB, free: 93.38 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02198/1.22, allocations: 7.489 MB / 0.7361 GB, free: 92.54 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008811/1.221, allocations: 0.4962 MB / 0.7365 GB, free: 92.52 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004279/1.225, allocations: 0.6647 MB / 0.7372 GB, free: 92.51 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0483/1.274, allocations: 16.2 MB / 0.753 GB, free: 88.51 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009368/1.275, allocations: 90.84 kB / 0.7531 GB, free: 88.5 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003894/1.278, allocations: 329.1 kB / 0.7534 GB, free: 88.5 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002444/1.281, allocations: 1.56 MB / 0.7549 GB, free: 88.48 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02655/1.307, allocations: 13.13 MB / 0.7678 GB, free: 88.41 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09157/1.399, allocations: 73.09 MB / 0.8391 GB, free: 35.83 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01507/1.414, allocations: 6.515 MB / 0.8455 GB, free: 32.97 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01714/1.431, allocations: 9.275 MB / 0.8546 GB, free: 25.18 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.785e-05/1.432, allocations: 63.8 kB / 0.8546 GB, free: 25.11 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=269): time 7.294e-06/1.432, allocations: 0 / 0.8546 GB, free: 25.11 MB / 0.4948 GB Notification: Performance of matching and sorting (n=311): time 0.07979/1.511, allocations: 30.13 MB / 0.884 GB, free: 15.36 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001685/1.512, allocations: 239.9 kB / 0.8843 GB, free: 15.07 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01537/1.527, allocations: 6.188 MB / 0.8903 GB, free: 9.867 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.001021/1.528, allocations: 69.7 kB / 0.8904 GB, free: 9.793 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.005743/1.534, allocations: 4.852 MB / 0.8951 GB, free: 4.949 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.002463/1.536, allocations: 1.175 MB / 0.8963 GB, free: 3.781 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001737/1.538, allocations: 180 kB / 0.8964 GB, free: 3.605 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.001226/1.539, allocations: 0.6903 MB / 0.8971 GB, free: 2.906 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.3192/1.859, allocations: 3.572 MB / 0.9006 GB, free: 104.4 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01195/1.871, allocations: 8.869 MB / 0.9093 GB, free: 97.58 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01098/1.882, allocations: 5.505 MB / 0.9146 GB, free: 97.55 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002831/1.882, allocations: 53.69 kB / 0.9147 GB, free: 97.55 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1179) (initialization): time 0.03133/1.913, allocations: 13.7 MB / 0.9281 GB, free: 97.01 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001959/1.914, allocations: 82.56 kB / 0.9282 GB, free: 97.01 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000301/1.914, allocations: 189.4 kB / 0.9283 GB, free: 97.01 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003982/1.918, allocations: 1.71 MB / 0.93 GB, free: 96.99 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007974/1.926, allocations: 2.14 MB / 0.9321 GB, free: 96.8 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0131/1.939, allocations: 11.67 MB / 0.9435 GB, free: 94.02 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01006/1.949, allocations: 0.5294 MB / 0.944 GB, free: 94.02 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002649/1.952, allocations: 0.5372 MB / 0.9445 GB, free: 94.02 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 853 * Number of states: 0 () * Number of discrete variables: 63 (fixed4.color[3],fixed4.color[2],fixed4.color[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],torque2.connectionLineColor[3],torque2.connectionLineColor[2],torque2.connectionLineColor[1],torque2.torqueColor[3],torque2.torqueColor[2],torque2.torqueColor[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueColor[3],torque1.torqueColor[2],torque1.torqueColor[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],fixed3.color[3],fixed3.color[2],fixed3.color[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.cylinderColor[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]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1107): * Single equations (assignments): 1102 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 23,(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.008259/1.96, allocations: 3.232 MB / 0.9477 GB, free: 93.71 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001291/1.961, allocations: 0.5955 MB / 0.9483 GB, free: 93.71 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01079/1.972, allocations: 6.741 MB / 0.9549 GB, free: 92.76 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.575e-05/1.972, allocations: 34.7 kB / 0.9549 GB, free: 92.76 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.051e-05/1.972, allocations: 10.53 kB / 0.9549 GB, free: 92.76 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.072e-05/1.972, allocations: 15.98 kB / 0.9549 GB, free: 92.76 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02927/2.002, allocations: 15.21 MB / 0.9698 GB, free: 87.36 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.959e-05/2.002, allocations: 8.672 kB / 0.9698 GB, free: 87.36 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003022/2.005, allocations: 0.5591 MB / 0.9703 GB, free: 87.32 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003472/2.008, allocations: 1.41 MB / 0.9717 GB, free: 87.05 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005617/2.009, allocations: 61.91 kB / 0.9718 GB, free: 87.01 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01214/2.021, allocations: 10.82 MB / 0.9823 GB, free: 81.32 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.759e-06/2.021, allocations: 7.406 kB / 0.9823 GB, free: 81.32 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01737/2.038, allocations: 11.85 MB / 0.9939 GB, free: 75.94 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00451/2.043, allocations: 1.152 MB / 0.995 GB, free: 75.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002016/2.045, allocations: 56 kB / 0.9951 GB, free: 75.27 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003117/2.048, allocations: 206.8 kB / 0.9953 GB, free: 75.23 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005031/2.049, allocations: 195 kB / 0.9955 GB, free: 75.2 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002197/2.049, allocations: 80.89 kB / 0.9955 GB, free: 75.18 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.007549/2.056, allocations: 4.433 MB / 0.9999 GB, free: 73.72 MB / 0.5105 GB Notification: Performance of sort global known variables: time 5.51e-07/2.056, allocations: 0 / 0.9999 GB, free: 73.72 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.009624/2.066, allocations: 1.658 MB / 1.001 GB, free: 73.18 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 8 (Revolute1.phi,Revolute1.w,Revolute3.phi,Revolute3.w,Revolute2.phi,Revolute2.w,Revolute4.phi,Revolute4.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 (254): * Single equations (assignments): 249 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(4,75.0%) 18,(4,75.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01697/2.083, allocations: 13.21 MB / 1.014 GB, free: 61.33 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01601/2.099, allocations: 8.819 MB / 1.023 GB, free: 53.62 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.726e-05/2.099, allocations: 0 / 1.023 GB, free: 53.62 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.006024/2.105, allocations: 3.389 MB / 1.026 GB, free: 50.66 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005731/2.111, allocations: 0.7184 MB / 1.027 GB, free: 50.05 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4814/2.592, allocations: 194.8 MB / 1.217 GB, free: 29.38 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009099/2.602, allocations: 5.044 MB / 1.222 GB, free: 28.52 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.009672/2.611, allocations: 2.975 MB / 1.225 GB, free: 28.46 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006757/2.618, allocations: 3.236 MB / 1.228 GB, free: 28.46 MB / 0.5417 GB Notification: Performance of SimCode: time 1.032e-06/2.618, allocations: 0.5469 kB / 1.228 GB, free: 28.46 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.513/3.131, allocations: 132.8 MB / 1.358 GB, free: 134.6 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001749/3.131, allocations: 196.4 kB / 1.358 GB, free: 134.3 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.329/10.46, allocations: 0 / 1.358 GB, free: 134.3 MB / 0.5573 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Torque.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Torque.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Torque.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Torque.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Torque_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_Torque_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_Torque.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Torque.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Torque_res.mat does not exist to compare? outputFormat=mat