Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque3.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.Torque3,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_Torque3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Torque3,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_Torque3",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.001143/0.001143, allocations: 169 kB / 8.742 MB, free: 344 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.397/1.397, allocations: 221.5 MB / 230.7 MB, free: 7.574 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.0009871/0.0009871, allocations: 97.27 kB / 281.6 MB, free: 5.332 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.1989/0.1989, allocations: 44.14 MB / 376.5 MB, free: 3.062 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.773e-05/1.789e-05, allocations: 224 / 444.7 MB, free: 15.15 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1312/0.1313, allocations: 61.92 MB / 0.4948 GB, free: 1.164 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4425/0.5738, allocations: 110.1 MB / 0.6023 GB, free: 2.25 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000306/0.5742, allocations: 79.95 kB / 0.6023 GB, free: 2.172 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.809/1.383, allocations: 200.4 MB / 0.798 GB, free: 80.16 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.084e-06/1.383, allocations: 0 / 0.798 GB, free: 80.16 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0006384/1.384, allocations: 219.8 kB / 0.7982 GB, free: 79.95 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: 3739 * Number of variables: 3739 Notification: Performance of Generate backend data structure: time 0.03443/1.418, allocations: 10.56 MB / 0.8085 GB, free: 69.32 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.467e-05/1.418, allocations: 15.98 kB / 0.8085 GB, free: 69.3 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04947/1.468, allocations: 12.43 MB / 0.8207 GB, free: 56.84 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02881/1.497, allocations: 11.45 MB / 0.8319 GB, free: 45.42 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006042/1.497, allocations: 356 kB / 0.8322 GB, free: 45.07 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005298/1.503, allocations: 0.6443 MB / 0.8328 GB, free: 44.43 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03188/1.535, allocations: 14.95 MB / 0.8474 GB, free: 29.48 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05276/1.588, allocations: 22.19 MB / 0.8691 GB, free: 5.398 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008156/1.588, allocations: 130.7 kB / 0.8692 GB, free: 5.27 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005037/1.593, allocations: 60 kB / 0.8693 GB, free: 5.211 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003396/1.597, allocations: 2.356 MB / 0.8716 GB, free: 2.855 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.8334/2.43, allocations: 102.9 MB / 0.972 GB, free: 32 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01203/2.442, allocations: 9.632 MB / 0.9815 GB, free: 30.14 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.009168/2.452, allocations: 6.661 MB / 0.988 GB, free: 27.38 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002686/2.454, allocations: 2.324 MB / 0.9902 GB, free: 25.32 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.837e-05/2.455, allocations: 79.56 kB / 0.9903 GB, free: 25.25 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=425): time 8.015e-06/2.455, allocations: 0 / 0.9903 GB, free: 25.25 MB / 0.5105 GB Notification: Performance of matching and sorting (n=513): time 0.1175/2.572, allocations: 52.57 MB / 1.042 GB, free: 15.1 MB / 0.5262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001783/2.572, allocations: 319.4 kB / 1.042 GB, free: 14.73 MB / 0.5262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01426/2.587, allocations: 6.609 MB / 1.048 GB, free: 9.09 MB / 0.5262 GB Notification: Performance of collectPreVariables (initialization): time 0.001544/2.588, allocations: 29.7 kB / 1.048 GB, free: 9.055 MB / 0.5262 GB Notification: Performance of collectInitialEqns (initialization): time 0.006652/2.595, allocations: 7.227 MB / 1.055 GB, free: 2.516 MB / 0.5262 GB Notification: Performance of collectInitialBindings (initialization): time 0.003456/2.598, allocations: 1.847 MB / 1.057 GB, free: 0.8516 MB / 0.5262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002071/2.6, allocations: 0 / 1.057 GB, free: 0.8516 MB / 0.5262 GB Notification: Performance of setup shared object (initialization): time 0.0009978/2.601, allocations: 0.8551 MB / 1.058 GB, free: 148 kB / 0.5262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02599/2.627, allocations: 6.646 MB / 1.065 GB, free: 14.82 MB / 0.5418 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01785/2.645, allocations: 12.41 MB / 1.077 GB, free: 32 kB / 0.5418 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01439/2.66, allocations: 8.005 MB / 1.085 GB, free: 9.418 MB / 0.5574 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003143/2.66, allocations: 72 kB / 1.085 GB, free: 9.348 MB / 0.5574 GB Notification: Performance of matching and sorting (n=1690) (initialization): time 0.04648/2.707, allocations: 19.19 MB / 1.103 GB, free: 9.07 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.000215/2.707, allocations: 117.3 kB / 1.103 GB, free: 8.961 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004526/2.707, allocations: 254.4 kB / 1.104 GB, free: 8.715 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008408/2.716, allocations: 3.247 MB / 1.107 GB, free: 6.312 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01379/2.73, allocations: 3.146 MB / 1.11 GB, free: 3.684 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.5066/3.236, allocations: 21.27 MB / 1.131 GB, free: 129 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01182/3.248, allocations: 0.5264 MB / 1.131 GB, free: 129 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003698/3.252, allocations: 0.75 MB / 1.132 GB, free: 129 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1146 * Number of states: 0 () * Number of discrete variables: 126 (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],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[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],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 (1570): * Single equations (assignments): 1563 * 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.004336/3.256, allocations: 0.7812 MB / 1.133 GB, free: 128.7 MB / 0.573 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02174/3.278, allocations: 11.37 MB / 1.144 GB, free: 128.6 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002784/3.281, allocations: 0.7403 MB / 1.145 GB, free: 128.6 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02196/3.303, allocations: 11.66 MB / 1.156 GB, free: 128.3 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.32e-05/3.303, allocations: 51.06 kB / 1.156 GB, free: 128.3 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.722e-05/3.303, allocations: 20.17 kB / 1.156 GB, free: 128.3 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001221/3.303, allocations: 25.08 kB / 1.156 GB, free: 128.3 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05726/3.36, allocations: 24.06 MB / 1.18 GB, free: 122.3 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.544e-05/3.361, allocations: 0 / 1.18 GB, free: 122.3 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005547/3.366, allocations: 0.9905 MB / 1.18 GB, free: 122.3 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007038/3.373, allocations: 2.795 MB / 1.183 GB, free: 121.8 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001382/3.375, allocations: 11.5 kB / 1.183 GB, free: 121.8 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02544/3.4, allocations: 19.79 MB / 1.203 GB, free: 111.3 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.154e-05/3.4, allocations: 3.688 kB / 1.203 GB, free: 111.3 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03327/3.433, allocations: 18.32 MB / 1.22 GB, free: 102.9 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003112/3.437, allocations: 0.743 MB / 1.221 GB, free: 102.1 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003627/3.44, allocations: 13.06 kB / 1.221 GB, free: 102.1 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007507/3.448, allocations: 325.9 kB / 1.222 GB, free: 102 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002263/3.45, allocations: 304.5 kB / 1.222 GB, free: 101.8 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00138/3.451, allocations: 128.2 kB / 1.222 GB, free: 101.7 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.009835/3.461, allocations: 4.45 MB / 1.226 GB, free: 97.8 MB / 0.573 GB Notification: Performance of sort global known variables: time 8.52e-07/3.461, allocations: 0 / 1.226 GB, free: 97.8 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01783/3.479, allocations: 2.259 MB / 1.228 GB, free: 95.54 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 16 (Revolute5.phi,Revolute5.w,Revolute6.phi,Revolute6.w,Revolute7.phi,Revolute7.w,Revolute8.phi,Revolute8.w,Revolute1.phi,Revolute1.w,Revolute2.phi,Revolute2.w,Revolute3.phi,Revolute3.w,Revolute4.phi,Revolute4.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (421): * Single equations (assignments): 414 * 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.03562/3.515, allocations: 19.15 MB / 1.247 GB, free: 79.03 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.02621/3.541, allocations: 13.71 MB / 1.261 GB, free: 67.39 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 9.738e-06/3.541, allocations: 0 / 1.261 GB, free: 67.39 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.01188/3.553, allocations: 5.868 MB / 1.266 GB, free: 62.18 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008082/3.561, allocations: 0.9068 MB / 1.267 GB, free: 61.44 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06757/3.629, allocations: 24.04 MB / 1.291 GB, free: 40.68 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01612/3.645, allocations: 7.594 MB / 1.298 GB, free: 33.1 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.02006/3.665, allocations: 4.128 MB / 1.302 GB, free: 28.99 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01243/3.678, allocations: 5.239 MB / 1.307 GB, free: 23.75 MB / 0.573 GB Notification: Performance of SimCode: time 1.192e-06/3.678, allocations: 0 / 1.307 GB, free: 23.75 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.631/4.309, allocations: 184.7 MB / 1.488 GB, free: 35.49 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001518/4.309, allocations: 126.8 kB / 1.488 GB, free: 35.3 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.421/12.73, allocations: 4 kB / 1.488 GB, free: 35.29 MB / 0.573 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque3.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque3.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque3.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque3_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_Torque3_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_Torque3.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque3.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque3_res.mat does not exist to compare? outputFormat=mat