Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque2.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Torque2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_Torque2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Torque2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_Torque2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001369/0.001369, allocations: 199.7 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.41/1.41, allocations: 227.2 MB / 245 MB, free: 7.594 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001023/0.001023, allocations: 101.4 kB / 297.3 MB, free: 6.184 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3774/0.3774, allocations: 45.22 MB / 394.6 MB, free: 31.7 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003036/0.0003038, allocations: 11.98 kB / 468.5 MB, free: 7.641 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4224/0.4227, allocations: 63.23 MB / 0.5193 GB, free: 43.6 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.16/0.5827, allocations: 113.2 MB / 0.6299 GB, free: 8.344 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003232/0.5831, allocations: 84.64 kB / 0.6299 GB, free: 8.266 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8694/1.453, allocations: 227.6 MB / 0.8522 GB, free: 21.27 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.274e-06/1.453, allocations: 4 kB / 0.8522 GB, free: 21.27 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0008083/1.453, allocations: 236 kB / 0.8525 GB, free: 21.04 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.04533/1.499, allocations: 12.67 MB / 0.8648 GB, free: 8.262 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.661e-05/1.499, allocations: 12.03 kB / 0.8648 GB, free: 8.25 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.009876/1.509, allocations: 1.989 MB / 0.8668 GB, free: 6.25 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05042/1.559, allocations: 12.61 MB / 0.8791 GB, free: 9.609 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03798/1.597, allocations: 11.38 MB / 0.8902 GB, free: 14.14 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001276/1.599, allocations: 0.8784 MB / 0.8911 GB, free: 13.26 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007637/1.606, allocations: 1.171 MB / 0.8922 GB, free: 12.09 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.8192/2.425, allocations: 27.72 MB / 0.9193 GB, free: 55.71 MB / 0.5262 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001681/2.427, allocations: 147.1 kB / 0.9194 GB, free: 55.71 MB / 0.5262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.008655/2.436, allocations: 0.5395 MB / 0.9199 GB, free: 55.71 MB / 0.5262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005634/2.442, allocations: 2.535 MB / 0.9224 GB, free: 55.69 MB / 0.5262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06276/2.504, allocations: 22.4 MB / 0.9443 GB, free: 55.57 MB / 0.5262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1875/2.692, allocations: 119.3 MB / 1.061 GB, free: 11.78 MB / 0.5574 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03546/2.728, allocations: 12.91 MB / 1.073 GB, free: 8.203 MB / 0.5574 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04448/2.772, allocations: 17.36 MB / 1.09 GB, free: 0 / 0.5574 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001865/2.772, allocations: 93.23 kB / 1.09 GB, free: 15.91 MB / 0.573 GB Notification: Performance of pre-optimization done (n=459): time 1.796e-05/2.772, allocations: 0 / 1.09 GB, free: 15.91 MB / 0.573 GB Notification: Performance of matching and sorting (n=543): time 0.6066/3.379, allocations: 62.62 MB / 1.152 GB, free: 113.8 MB / 0.5887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001541/3.379, allocations: 367.1 kB / 1.152 GB, free: 113.5 MB / 0.5887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02527/3.405, allocations: 10.24 MB / 1.162 GB, free: 112.7 MB / 0.5887 GB Notification: Performance of collectPreVariables (initialization): time 0.001673/3.406, allocations: 118.9 kB / 1.162 GB, free: 112.7 MB / 0.5887 GB Notification: Performance of collectInitialEqns (initialization): time 0.007934/3.414, allocations: 7.884 MB / 1.17 GB, free: 109.1 MB / 0.5887 GB Notification: Performance of collectInitialBindings (initialization): time 0.003564/3.418, allocations: 2.02 MB / 1.172 GB, free: 107.9 MB / 0.5887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002618/3.421, allocations: 282.2 kB / 1.172 GB, free: 107.9 MB / 0.5887 GB Notification: Performance of setup shared object (initialization): time 0.001375/3.422, allocations: 0.9019 MB / 1.173 GB, free: 107.5 MB / 0.5887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01163/3.434, allocations: 5.831 MB / 1.179 GB, free: 107.5 MB / 0.5887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0189/3.453, allocations: 13.68 MB / 1.192 GB, free: 97.46 MB / 0.5887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01712/3.47, allocations: 8.734 MB / 1.2 GB, free: 97.39 MB / 0.5887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0005492/3.47, allocations: 79.22 kB / 1.201 GB, free: 97.39 MB / 0.5887 GB Notification: Performance of matching and sorting (n=1812) (initialization): time 0.05012/3.52, allocations: 22.27 MB / 1.222 GB, free: 92.36 MB / 0.5887 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003059/3.521, allocations: 121.2 kB / 1.222 GB, free: 92.36 MB / 0.5887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005822/3.521, allocations: 275.4 kB / 1.223 GB, free: 92.36 MB / 0.5887 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0095/3.531, allocations: 3.278 MB / 1.226 GB, free: 91.78 MB / 0.5887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01435/3.545, allocations: 3.345 MB / 1.229 GB, free: 91.41 MB / 0.5887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02774/3.573, allocations: 23.21 MB / 1.252 GB, free: 79.07 MB / 0.5887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01682/3.59, allocations: 0.8241 MB / 1.253 GB, free: 78.82 MB / 0.5887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004638/3.595, allocations: 0.8109 MB / 1.253 GB, free: 78.71 MB / 0.5887 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1258 * Number of states: 0 () * Number of discrete variables: 132 (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.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.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1692): * Single equations (assignments): 1685 * 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 {(2,100.0%) 23,(2,100.0%) 23,(2,100.0%) 23,(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0174/3.612, allocations: 5.284 MB / 1.259 GB, free: 76.32 MB / 0.5887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003852/3.616, allocations: 0.9944 MB / 1.26 GB, free: 75.77 MB / 0.5887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02632/3.642, allocations: 12.62 MB / 1.272 GB, free: 70.15 MB / 0.5887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.339e-05/3.642, allocations: 59.95 kB / 1.272 GB, free: 70.09 MB / 0.5887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.19e-05/3.643, allocations: 16 kB / 1.272 GB, free: 70.08 MB / 0.5887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001397/3.643, allocations: 25.36 kB / 1.272 GB, free: 70.08 MB / 0.5887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0655/3.708, allocations: 28.69 MB / 1.3 GB, free: 47.07 MB / 0.5887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.501e-05/3.708, allocations: 8 kB / 1.3 GB, free: 47.06 MB / 0.5887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00577/3.714, allocations: 1.068 MB / 1.301 GB, free: 46.25 MB / 0.5887 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007182/3.721, allocations: 2.828 MB / 1.304 GB, free: 44.29 MB / 0.5887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001693/3.723, allocations: 108.1 kB / 1.304 GB, free: 44.19 MB / 0.5887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02503/3.748, allocations: 21.79 MB / 1.325 GB, free: 24.84 MB / 0.5887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.086e-06/3.748, allocations: 15.94 kB / 1.325 GB, free: 24.82 MB / 0.5887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4595/4.208, allocations: 23.98 MB / 1.349 GB, free: 104.3 MB / 0.5887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005041/4.213, allocations: 1.088 MB / 1.35 GB, free: 104.2 MB / 0.5887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005358/4.218, allocations: 101.2 kB / 1.35 GB, free: 104.2 MB / 0.5887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009547/4.228, allocations: 370.9 kB / 1.35 GB, free: 104.2 MB / 0.5887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002563/4.23, allocations: 355.9 kB / 1.35 GB, free: 104.2 MB / 0.5887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001586/4.232, allocations: 141.2 kB / 1.351 GB, free: 104.2 MB / 0.5887 GB Notification: Performance of sorting global known variables: time 0.02043/4.252, allocations: 7.408 MB / 1.358 GB, free: 104 MB / 0.5887 GB Notification: Performance of sort global known variables: time 1.082e-06/4.252, allocations: 0 / 1.358 GB, free: 104 MB / 0.5887 GB Notification: Performance of remove unused functions: time 0.01895/4.271, allocations: 2.796 MB / 1.361 GB, free: 104 MB / 0.5887 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 43 * Number of states: 16 (Revolute1.phi,Revolute1.w,Revolute3.phi,Revolute3.w,Revolute2.phi,Revolute2.w,Revolute4.phi,Revolute4.w,Revolute5.phi,Revolute5.w,Revolute7.phi,Revolute7.w,Revolute6.phi,Revolute6.w,Revolute8.phi,Revolute8.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 (451): * Single equations (assignments): 444 * 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.03741/4.309, allocations: 23.85 MB / 1.384 GB, free: 98.62 MB / 0.5887 GB Notification: Performance of simCode: created initialization part: time 0.03205/4.341, allocations: 14.66 MB / 1.398 GB, free: 98.04 MB / 0.5887 GB Notification: Performance of simCode: created event and clocks part: time 3.007e-05/4.341, allocations: 2.031 kB / 1.398 GB, free: 98.04 MB / 0.5887 GB Notification: Performance of simCode: created simulation system equations: time 0.01187/4.353, allocations: 6.242 MB / 1.404 GB, free: 97.49 MB / 0.5887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01137/4.364, allocations: 1.328 MB / 1.406 GB, free: 97.45 MB / 0.5887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.7337/5.098, allocations: 321.8 MB / 1.72 GB, free: 58.03 MB / 0.6512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02313/5.121, allocations: 8.158 MB / 1.728 GB, free: 57.03 MB / 0.6512 GB Notification: Performance of simCode: alias equations: time 0.02252/5.144, allocations: 4.64 MB / 1.732 GB, free: 56.93 MB / 0.6512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01579/5.16, allocations: 5.799 MB / 1.738 GB, free: 56.92 MB / 0.6512 GB Notification: Performance of SimCode: time 2.114e-06/5.16, allocations: 0 / 1.738 GB, free: 56.92 MB / 0.6512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8745/6.034, allocations: 222.3 MB / 1.955 GB, free: 102.4 MB / 0.6512 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002162/6.035, allocations: 199.1 kB / 1.955 GB, free: 102.1 MB / 0.6512 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.2/18.23, allocations: 0 / 1.955 GB, free: 102.1 MB / 0.6512 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque2_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_Torque2_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_Torque2.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque2_res.mat does not exist to compare? outputFormat=mat