Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque.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.Torque,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_Torque",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Torque,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_Torque",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001031/0.001031, allocations: 197 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.244/1.244, allocations: 225.4 MB / 240.1 MB, free: 15.05 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000826/0.000826, allocations: 92.16 kB / 292.1 MB, free: 5.961 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.18/0.18, allocations: 45.14 MB / 389.3 MB, free: 11.84 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 2.713e-05/2.715e-05, allocations: 4 kB / 460.5 MB, free: 69.9 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.104/0.1041, allocations: 63.24 MB / 0.5115 GB, free: 6.68 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3869/0.491, allocations: 109.8 MB / 0.6187 GB, free: 284 kB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002439/0.4913, allocations: 75.66 kB / 0.6188 GB, free: 248 kB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3129/0.8042, allocations: 128.4 MB / 0.7442 GB, free: 7.539 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.423e-06/0.8042, allocations: 0 / 0.7442 GB, free: 7.539 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0004258/0.8046, allocations: 127.9 kB / 0.7443 GB, free: 7.414 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2219 * Number of variables: 2219 Notification: Performance of Generate backend data structure: time 0.02019/0.8248, allocations: 6.437 MB / 0.7506 GB, free: 0.8984 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.038e-05/0.8249, allocations: 15.97 kB / 0.7506 GB, free: 0.8828 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.2738/1.099, allocations: 1.109 MB / 0.7517 GB, free: 109.4 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03/1.129, allocations: 7.063 MB / 0.7586 GB, free: 109 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01658/1.145, allocations: 6.313 MB / 0.7648 GB, free: 108.6 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000694/1.146, allocations: 476.1 kB / 0.7652 GB, free: 108.6 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003021/1.149, allocations: 0.6285 MB / 0.7659 GB, free: 108.6 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02827/1.177, allocations: 15.16 MB / 0.7807 GB, free: 104.7 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002118/1.178, allocations: 91.19 kB / 0.7808 GB, free: 104.7 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008787/1.179, allocations: 304.2 kB / 0.781 GB, free: 104.7 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00142/1.18, allocations: 1.429 MB / 0.7824 GB, free: 104.6 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03097/1.211, allocations: 12.11 MB / 0.7943 GB, free: 104.6 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07298/1.284, allocations: 69.89 MB / 0.8625 GB, free: 55.26 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01276/1.297, allocations: 6.106 MB / 0.8685 GB, free: 53.18 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003384/1.3, allocations: 3.375 MB / 0.8718 GB, free: 51.79 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01117/1.311, allocations: 8.324 MB / 0.8799 GB, free: 47.74 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.494e-05/1.311, allocations: 53.19 kB / 0.88 GB, free: 47.69 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=236): time 5.07e-06/1.312, allocations: 3.438 kB / 0.88 GB, free: 47.69 MB / 0.5261 GB Notification: Performance of matching and sorting (n=278): time 0.05731/1.369, allocations: 24.34 MB / 0.9037 GB, free: 28.92 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.768e-05/1.369, allocations: 235.6 kB / 0.9039 GB, free: 28.64 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007457/1.376, allocations: 5.908 MB / 0.9097 GB, free: 23.42 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0003358/1.377, allocations: 65.7 kB / 0.9098 GB, free: 23.35 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001854/1.379, allocations: 4.574 MB / 0.9142 GB, free: 19.24 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007086/1.379, allocations: 1.064 MB / 0.9153 GB, free: 18.3 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003099/1.38, allocations: 167.9 kB / 0.9154 GB, free: 18.14 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0003147/1.38, allocations: 0.6707 MB / 0.9161 GB, free: 17.57 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00355/1.384, allocations: 3.176 MB / 0.9192 GB, free: 14.71 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005016/1.389, allocations: 8.263 MB / 0.9273 GB, free: 4.504 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005376/1.394, allocations: 5.067 MB / 0.9322 GB, free: 152 kB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.685e-05/1.394, allocations: 55.94 kB / 0.9323 GB, free: 96 kB / 0.5261 GB Notification: Performance of matching and sorting (n=1103) (initialization): time 0.02244/1.417, allocations: 12.9 MB / 0.9449 GB, free: 5.824 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 9.568e-05/1.417, allocations: 82.02 kB / 0.945 GB, free: 5.746 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000159/1.417, allocations: 180 kB / 0.9451 GB, free: 5.57 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003764/1.421, allocations: 1.699 MB / 0.9468 GB, free: 4.301 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005977/1.427, allocations: 1.981 MB / 0.9487 GB, free: 2.469 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01341/1.44, allocations: 11.33 MB / 0.9598 GB, free: 6.887 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00598/1.446, allocations: 0.4915 MB / 0.9603 GB, free: 6.395 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007572/1.447, allocations: 0.5078 MB / 0.9608 GB, free: 5.887 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 819 * Number of states: 0 () * Number of discrete variables: 67 (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 (1031): * Single equations (assignments): 1026 * 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.001055/1.448, allocations: 0.7581 MB / 0.9615 GB, free: 5.121 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007833/1.449, allocations: 0.5708 MB / 0.9621 GB, free: 4.543 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2789/1.728, allocations: 6.068 MB / 0.968 GB, free: 124.3 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.866e-05/1.728, allocations: 33.8 kB / 0.968 GB, free: 124.3 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.353e-05/1.728, allocations: 12.72 kB / 0.968 GB, free: 124.3 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.459e-05/1.728, allocations: 14.41 kB / 0.968 GB, free: 124.3 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02382/1.752, allocations: 13.91 MB / 0.9816 GB, free: 123.5 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.852e-05/1.752, allocations: 4.188 kB / 0.9816 GB, free: 123.5 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00233/1.754, allocations: 0.4927 MB / 0.9821 GB, free: 123.5 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003298/1.757, allocations: 1.413 MB / 0.9835 GB, free: 123.5 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002227/1.758, allocations: 49.47 kB / 0.9835 GB, free: 123.5 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01174/1.769, allocations: 10.54 MB / 0.9938 GB, free: 120.8 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.089e-06/1.769, allocations: 8.625 kB / 0.9938 GB, free: 120.8 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01203/1.781, allocations: 10.73 MB / 1.004 GB, free: 119.2 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001656/1.783, allocations: 0.6375 MB / 1.005 GB, free: 119.1 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00066/1.784, allocations: 57.03 kB / 1.005 GB, free: 119.1 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002096/1.786, allocations: 188.8 kB / 1.005 GB, free: 119.1 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004117/1.786, allocations: 170.9 kB / 1.005 GB, free: 119.1 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001788/1.786, allocations: 71.97 kB / 1.005 GB, free: 119.1 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.005508/1.792, allocations: 4.211 MB / 1.01 GB, free: 118.8 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.6e-07/1.792, allocations: 3.719 kB / 1.01 GB, free: 118.8 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.005992/1.798, allocations: 1.544 MB / 1.011 GB, free: 118.8 MB / 0.5573 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (220): * Single equations (assignments): 215 * 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.01225/1.81, allocations: 12.12 MB / 1.023 GB, free: 113.8 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.00998/1.82, allocations: 7.962 MB / 1.031 GB, free: 111.3 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 5.07e-06/1.82, allocations: 0 / 1.031 GB, free: 111.3 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.003958/1.824, allocations: 3.097 MB / 1.034 GB, free: 110.1 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003206/1.827, allocations: 0.6948 MB / 1.034 GB, free: 109.8 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02814/1.856, allocations: 14.38 MB / 1.048 GB, free: 104.8 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005324/1.861, allocations: 4.763 MB / 1.053 GB, free: 103.2 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.005921/1.867, allocations: 2.791 MB / 1.056 GB, free: 103.1 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002933/1.87, allocations: 2.991 MB / 1.059 GB, free: 100.7 MB / 0.5573 GB Notification: Performance of SimCode: time 6.01e-07/1.87, allocations: 0 / 1.059 GB, free: 100.7 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4396/2.309, allocations: 125.5 MB / 1.181 GB, free: 93.3 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001454/2.31, allocations: 171.2 kB / 1.181 GB, free: 93.07 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.344/7.654, allocations: 0 / 1.181 GB, free: 93.07 MB / 0.5573 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_Torque_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_Torque.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque_res.mat does not exist to compare? outputFormat=mat