Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque2.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.Forces.Torque2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_Torque2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Torque2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_Torque2",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.001087/0.001087, 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.414/1.414, allocations: 221.5 MB / 230.7 MB, free: 7.59 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.0009914/0.0009913, allocations: 93.98 kB / 281.6 MB, free: 5.336 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.1769/0.1769, allocations: 44.16 MB / 376.5 MB, free: 3.059 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 2.271e-05/2.272e-05, allocations: 4.219 kB / 444.7 MB, free: 15.16 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.138/0.138, allocations: 61.92 MB / 0.4948 GB, free: 1.168 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4428/0.5809, allocations: 111.6 MB / 0.6038 GB, free: 0.7422 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002059/0.5812, allocations: 79.95 kB / 0.6038 GB, free: 0.6641 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8231/1.404, allocations: 216.7 MB / 0.8154 GB, free: 62.96 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.733e-06/1.404, allocations: 0 / 0.8154 GB, free: 62.96 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0007459/1.405, allocations: 239.4 kB / 0.8157 GB, free: 62.73 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: 4009 * Number of variables: 4009 Notification: Performance of Generate backend data structure: time 0.0385/1.444, allocations: 11.52 MB / 0.8269 GB, free: 51.14 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.702e-05/1.444, allocations: 11.98 kB / 0.8269 GB, free: 51.13 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04911/1.493, allocations: 12.61 MB / 0.8392 GB, free: 38.48 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03023/1.523, allocations: 12.2 MB / 0.8512 GB, free: 26.32 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006849/1.524, allocations: 383.9 kB / 0.8515 GB, free: 25.94 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005178/1.529, allocations: 0.6911 MB / 0.8522 GB, free: 25.25 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0285/1.558, allocations: 15.76 MB / 0.8676 GB, free: 9.492 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4356/1.993, allocations: 23.76 MB / 0.8908 GB, free: 73.18 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009508/1.994, allocations: 146.1 kB / 0.8909 GB, free: 73.18 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004511/1.999, allocations: 65.53 kB / 0.891 GB, free: 73.18 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005089/2.004, allocations: 2.535 MB / 0.8935 GB, free: 73.15 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1406/2.144, allocations: 114.1 MB / 1.005 GB, free: 8.52 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0107/2.155, allocations: 9.704 MB / 1.014 GB, free: 3.969 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008031/2.163, allocations: 6.687 MB / 1.021 GB, free: 1.184 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001316/2.165, allocations: 1.078 MB / 1.022 GB, free: 296 kB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.846e-05/2.165, allocations: 80.53 kB / 1.022 GB, free: 228 kB / 0.5105 GB Notification: Performance of pre-optimization done (n=438): time 9.438e-06/2.165, allocations: 0 / 1.022 GB, free: 228 kB / 0.5105 GB Notification: Performance of matching and sorting (n=526): time 0.1361/2.301, allocations: 57.67 MB / 1.078 GB, free: 13.43 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001959/2.301, allocations: 367.6 kB / 1.079 GB, free: 13 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0179/2.319, allocations: 7.544 MB / 1.086 GB, free: 6.43 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.001628/2.321, allocations: 25.7 kB / 1.086 GB, free: 6.398 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.00667/2.327, allocations: 8.008 MB / 1.094 GB, free: 15.14 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.003053/2.33, allocations: 1.914 MB / 1.096 GB, free: 13.42 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00143/2.332, allocations: 4 kB / 1.096 GB, free: 13.42 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0007871/2.333, allocations: 0.9108 MB / 1.097 GB, free: 12.67 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009671/2.342, allocations: 5.535 MB / 1.102 GB, free: 7.746 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.4236/2.766, allocations: 13.49 MB / 1.115 GB, free: 126.3 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01993/2.786, allocations: 8.52 MB / 1.124 GB, free: 126.3 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000927/2.787, allocations: 81.62 kB / 1.124 GB, free: 126.3 MB / 0.573 GB Notification: Performance of matching and sorting (n=1852) (initialization): time 0.05354/2.841, allocations: 20.32 MB / 1.144 GB, free: 125.5 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003202/2.841, allocations: 124.2 kB / 1.144 GB, free: 125.5 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005154/2.841, allocations: 285.7 kB / 1.144 GB, free: 125.5 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008428/2.85, allocations: 3.294 MB / 1.147 GB, free: 125.4 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01366/2.864, allocations: 3.412 MB / 1.15 GB, free: 125.1 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02719/2.891, allocations: 21.35 MB / 1.171 GB, free: 119.8 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01326/2.904, allocations: 0.5613 MB / 1.172 GB, free: 119.8 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003648/2.908, allocations: 0.8375 MB / 1.173 GB, free: 119.8 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1288 * Number of states: 0 () * Number of discrete variables: 138 (fixed8.color[3],fixed8.color[2],fixed8.color[1],fixed7.color[3],fixed7.color[2],fixed7.color[1],Revolute8.cylinderColor[3],Revolute8.cylinderColor[2],Revolute8.cylinderColor[1],Revolute7.cylinderColor[3],Revolute7.cylinderColor[2],Revolute7.cylinderColor[1],Revolute6.cylinderColor[3],Revolute6.cylinderColor[2],Revolute6.cylinderColor[1],torque4.connectionLineColor[3],torque4.connectionLineColor[2],torque4.connectionLineColor[1],torque4.torqueArrow.arrowLine.twoHeadedArrow,torque4.torqueArrow.headAtOrigin,torque4.torqueColor[3],torque4.torqueColor[2],torque4.torqueColor[1],torque4.forceArrow.arrowLine.twoHeadedArrow,torque4.forceArrow.headAtOrigin,torque4.forceArrow.color[3],torque4.forceArrow.color[2],torque4.forceArrow.color[1],torque4.forceColor[3],torque4.forceColor[2],torque4.forceColor[1],torque3.connectionLineColor[3],torque3.connectionLineColor[2],torque3.connectionLineColor[1],torque3.torqueArrow.arrowLine.twoHeadedArrow,torque3.torqueArrow.headAtOrigin,torque3.torqueColor[3],torque3.torqueColor[2],torque3.torqueColor[1],torque3.forceArrow.arrowLine.twoHeadedArrow,torque3.forceArrow.headAtOrigin,torque3.forceArrow.color[3],torque3.forceArrow.color[2],torque3.forceArrow.color[1],torque3.forceColor[3],torque3.forceColor[2],torque3.forceColor[1],fixedRotation1.color[3],fixedRotation1.color[2],fixedRotation1.color[1],fixed6.color[3],fixed6.color[2],fixed6.color[1],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[1],fixed5.color[3],fixed5.color[2],fixed5.color[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],Revolute5.cylinderColor[3],Revolute5.cylinderColor[2],Revolute5.cylinderColor[1],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.torqueArrow.arrowLine.twoHeadedArrow,torque2.torqueArrow.headAtOrigin,torque2.torqueColor[3],torque2.torqueColor[2],torque2.torqueColor[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueArrow.arrowLine.twoHeadedArrow,torque1.torqueArrow.headAtOrigin,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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1732): * Single equations (assignments): 1725 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(4,75.0%) 21,(4,75.0%) 21,(4,75.0%) 21,(4,75.0%) 21} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004982/2.913, allocations: 0.8519 MB / 1.174 GB, free: 119.4 MB / 0.573 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01981/2.933, allocations: 11.53 MB / 1.185 GB, free: 117.3 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002793/2.935, allocations: 0.8327 MB / 1.186 GB, free: 117.3 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02245/2.958, allocations: 11.83 MB / 1.197 GB, free: 113.3 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001367/2.958, allocations: 52.94 kB / 1.197 GB, free: 113.3 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.641e-05/2.958, allocations: 17 kB / 1.197 GB, free: 113.3 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001683/2.958, allocations: 31 kB / 1.197 GB, free: 113.3 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05593/3.014, allocations: 25.04 MB / 1.222 GB, free: 101.5 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.841e-05/3.014, allocations: 9.469 kB / 1.222 GB, free: 101.5 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005725/3.02, allocations: 0.9912 MB / 1.223 GB, free: 100.8 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007275/3.028, allocations: 2.803 MB / 1.225 GB, free: 98.8 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001308/3.029, allocations: 12 kB / 1.225 GB, free: 98.79 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02173/3.051, allocations: 19.73 MB / 1.245 GB, free: 81.16 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.608e-06/3.051, allocations: 7.844 kB / 1.245 GB, free: 81.15 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02997/3.081, allocations: 19.37 MB / 1.264 GB, free: 64.16 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003418/3.084, allocations: 0.8253 MB / 1.264 GB, free: 63.35 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003764/3.088, allocations: 11.09 kB / 1.264 GB, free: 63.34 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007118/3.095, allocations: 285.3 kB / 1.265 GB, free: 63.2 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00268/3.098, allocations: 322.3 kB / 1.265 GB, free: 62.99 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001411/3.099, allocations: 134 kB / 1.265 GB, free: 62.87 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.0131/3.112, allocations: 5.09 MB / 1.27 GB, free: 58.48 MB / 0.573 GB Notification: Performance of sort global known variables: time 7.22e-07/3.112, allocations: 0 / 1.27 GB, free: 58.48 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01797/3.13, allocations: 2.412 MB / 1.272 GB, free: 56.08 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 16 (Revolute6.phi,Revolute6.w,Revolute8.phi,Revolute8.w,Revolute5.phi,Revolute5.w,Revolute7.phi,Revolute7.w,Revolute2.phi,Revolute2.w,Revolute4.phi,Revolute4.w,Revolute1.phi,Revolute1.w,Revolute3.phi,Revolute3.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (434): * Single equations (assignments): 427 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(4,75.0%) 18,(4,75.0%) 18,(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.03082/3.161, allocations: 20.51 MB / 1.292 GB, free: 38 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.02655/3.188, allocations: 14.26 MB / 1.306 GB, free: 24.23 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.715e-05/3.188, allocations: 0 / 1.306 GB, free: 24.23 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.01097/3.199, allocations: 5.864 MB / 1.312 GB, free: 18.33 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00889/3.208, allocations: 0.9989 MB / 1.313 GB, free: 17.37 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4596/3.668, allocations: 25.79 MB / 1.338 GB, free: 125.1 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02248/3.69, allocations: 8.173 MB / 1.346 GB, free: 124.1 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.01844/3.709, allocations: 4.544 MB / 1.351 GB, free: 123.9 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01393/3.723, allocations: 5.73 MB / 1.356 GB, free: 123.9 MB / 0.573 GB Notification: Performance of SimCode: time 1.482e-06/3.723, allocations: 0 / 1.356 GB, free: 123.9 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7983/4.521, allocations: 198.1 MB / 1.55 GB, free: 97.2 MB / 0.5886 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001561/4.521, allocations: 125.7 kB / 1.55 GB, free: 97.01 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.217/13.74, allocations: 0 / 1.55 GB, free: 97.01 MB / 0.5886 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque2_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_Torque2_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_Torque2.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque2_res.mat does not exist to compare? outputFormat=mat