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/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.0008779/0.0008779, allocations: 98.05 kB / 17 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00108/0.00108, allocations: 192.7 kB / 17.91 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.45/1.45, allocations: 227.4 MB / 246 MB, free: 11.98 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2044/0.2044, allocations: 45.92 MB / 344.1 MB, free: 12.21 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002919/0.0002921, allocations: 11.94 kB / 418.2 MB, free: 20.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1216/0.1219, allocations: 63.46 MB / 481.6 MB, free: 5.262 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Torque): time 0.2884/0.4103, allocations: 80.98 MB / 0.5494 GB, free: 13.36 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.04591/0.4563, allocations: 16.38 MB / 0.5654 GB, free: 1.379 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02324/0.4796, allocations: 383.6 kB / 0.5658 GB, free: 1.324 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0169/0.4965, allocations: 4.281 MB / 0.57 GB, free: 13.5 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.04196/0.5386, allocations: 12.38 MB / 0.5821 GB, free: 1.078 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007067/0.5456, allocations: 0.8661 MB / 0.5829 GB, free: 216 kB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.08443/0.6301, allocations: 63.14 MB / 0.6446 GB, free: 0.9883 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01215/0.6423, allocations: 7.296 MB / 0.6517 GB, free: 9.609 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004246/0.6466, allocations: 1.911 MB / 0.6536 GB, free: 7.691 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005432/0.6521, allocations: 2.971 MB / 0.6565 GB, free: 4.711 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001323/0.6534, allocations: 212 kB / 0.6567 GB, free: 4.504 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003046/0.6565, allocations: 0.9948 MB / 0.6576 GB, free: 3.508 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003245/0.6598, allocations: 2.661 MB / 0.6602 GB, free: 0.8398 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001919/0.6617, allocations: 1.259 MB / 0.6615 GB, free: 15.57 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.009561/0.6713, allocations: 8.292 MB / 0.6696 GB, free: 7.258 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 8.226e-06/0.6713, allocations: 4 kB / 0.6696 GB, free: 7.254 MB / 0.4981 GB Notification: Performance of FrontEnd: time 3.055e-06/0.6713, allocations: 0 / 0.6696 GB, free: 7.254 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 0.0003773/0.6717, allocations: 0 / 0.6696 GB, free: 7.254 MB / 0.4981 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.01627/0.688, allocations: 6.45 MB / 0.6759 GB, free: 0.7188 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.524e-05/0.6881, allocations: 16.03 kB / 0.6759 GB, free: 0.7031 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002893/0.691, allocations: 1.046 MB / 0.6769 GB, free: 15.64 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03387/0.7249, allocations: 6.341 MB / 0.6831 GB, free: 9.285 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01159/0.7365, allocations: 4.532 MB / 0.6875 GB, free: 4.672 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000463/0.737, allocations: 365.3 kB / 0.6879 GB, free: 4.312 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00247/0.7395, allocations: 487.6 kB / 0.6883 GB, free: 3.836 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02744/0.767, allocations: 14.49 MB / 0.7025 GB, free: 4.336 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001955/0.7672, allocations: 71.36 kB / 0.7026 GB, free: 4.266 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009527/0.7682, allocations: 235.7 kB / 0.7028 GB, free: 4.035 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00484/0.773, allocations: 2.82 MB / 0.7055 GB, free: 1.207 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2527/1.026, allocations: 12.05 MB / 0.7173 GB, free: 181.3 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05394/1.08, allocations: 57.91 MB / 0.7739 GB, free: 133.8 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01199/1.092, allocations: 6.155 MB / 0.7799 GB, free: 127.5 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003333/1.095, allocations: 3.572 MB / 0.7834 GB, free: 123.9 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01098/1.106, allocations: 8.328 MB / 0.7915 GB, free: 115.5 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.905e-05/1.106, allocations: 55.19 kB / 0.7915 GB, free: 115.5 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=236): time 5.52e-06/1.106, allocations: 0 / 0.7915 GB, free: 115.5 MB / 0.5294 GB Notification: Performance of matching and sorting (n=278): time 0.07244/1.179, allocations: 28.85 MB / 0.8197 GB, free: 86.41 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.299e-05/1.179, allocations: 235.6 kB / 0.8199 GB, free: 86.13 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009171/1.188, allocations: 6.73 MB / 0.8265 GB, free: 79.41 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0007085/1.189, allocations: 70.86 kB / 0.8266 GB, free: 79.34 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002812/1.192, allocations: 4.559 MB / 0.831 GB, free: 74.79 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001272/1.193, allocations: 1.057 MB / 0.8321 GB, free: 73.74 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004818/1.193, allocations: 165 kB / 0.8322 GB, free: 73.58 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0003343/1.194, allocations: 0.6694 MB / 0.8329 GB, free: 72.9 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004585/1.198, allocations: 3.334 MB / 0.8361 GB, free: 69.56 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007185/1.205, allocations: 8.417 MB / 0.8443 GB, free: 58.62 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006993/1.212, allocations: 5.165 MB / 0.8494 GB, free: 53.45 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001128/1.213, allocations: 52 kB / 0.8494 GB, free: 53.4 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1108) (initialization): time 0.02273/1.235, allocations: 13 MB / 0.8621 GB, free: 40.39 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002061/1.236, allocations: 84.25 kB / 0.8622 GB, free: 40.31 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002355/1.236, allocations: 176 kB / 0.8624 GB, free: 40.14 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004034/1.24, allocations: 1.812 MB / 0.8641 GB, free: 38.32 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006248/1.246, allocations: 1.949 MB / 0.8661 GB, free: 36.36 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01329/1.259, allocations: 12 MB / 0.8778 GB, free: 24.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007335/1.267, allocations: 0.4886 MB / 0.8782 GB, free: 23.61 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00176/1.269, allocations: 0.5089 MB / 0.8787 GB, free: 23.11 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 814 * Number of states: 0 () * Number of discrete variables: 67 (torque2.torqueArrow.arrowLine.twoHeadedArrow,torque2.torqueArrow.headAtOrigin,torque1.torqueArrow.arrowLine.twoHeadedArrow,torque1.torqueArrow.headAtOrigin,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 (1026): * Single equations (assignments): 1019 * Array equations: 5 * 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.006025/1.275, allocations: 3.044 MB / 0.8817 GB, free: 20.05 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001202/1.276, allocations: 0.5707 MB / 0.8823 GB, free: 19.47 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01011/1.286, allocations: 6.324 MB / 0.8884 GB, free: 13.13 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.298e-05/1.286, allocations: 36 kB / 0.8885 GB, free: 13.09 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.073e-05/1.286, allocations: 8 kB / 0.8885 GB, free: 13.09 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.595e-05/1.286, allocations: 11.95 kB / 0.8885 GB, free: 13.07 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02281/1.309, allocations: 14.26 MB / 0.9024 GB, free: 14.76 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.826e-05/1.309, allocations: 4 kB / 0.9024 GB, free: 14.75 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002281/1.311, allocations: 463.3 kB / 0.9029 GB, free: 14.3 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003829/1.315, allocations: 1.527 MB / 0.9044 GB, free: 12.77 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005009/1.316, allocations: 52.45 kB / 0.9044 GB, free: 12.72 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01521/1.331, allocations: 11.2 MB / 0.9154 GB, free: 1.258 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.805e-06/1.331, allocations: 7.938 kB / 0.9154 GB, free: 1.25 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2849/1.616, allocations: 10.28 MB / 0.9254 GB, free: 177.4 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001747/1.618, allocations: 0.6399 MB / 0.926 GB, free: 177.3 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001093/1.619, allocations: 54.59 kB / 0.9261 GB, free: 177.3 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002395/1.621, allocations: 183.6 kB / 0.9263 GB, free: 177.2 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004827/1.622, allocations: 174.7 kB / 0.9264 GB, free: 177.2 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001973/1.622, allocations: 71.47 kB / 0.9265 GB, free: 177.2 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.008424/1.63, allocations: 4.304 MB / 0.9307 GB, free: 175.8 MB / 0.545 GB Notification: Performance of sort global known variables: time 4.91e-07/1.63, allocations: 0 / 0.9307 GB, free: 175.8 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.008958/1.639, allocations: 1.551 MB / 0.9322 GB, free: 175.6 MB / 0.545 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 (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.01528/1.655, allocations: 10.96 MB / 0.9429 GB, free: 171.2 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01197/1.667, allocations: 8.233 MB / 0.951 GB, free: 168.3 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.599e-05/1.667, allocations: 0.75 kB / 0.951 GB, free: 168.3 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.005141/1.672, allocations: 3.226 MB / 0.9541 GB, free: 167 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004843/1.677, allocations: 0.7398 MB / 0.9548 GB, free: 166.7 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09432/1.771, allocations: 62.74 MB / 1.016 GB, free: 103.1 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006826/1.778, allocations: 4.627 MB / 1.021 GB, free: 98.45 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.006789/1.785, allocations: 2.791 MB / 1.023 GB, free: 95.65 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00425/1.789, allocations: 3.006 MB / 1.026 GB, free: 92.64 MB / 0.545 GB Notification: Performance of SimCode: time 8.92e-07/1.789, allocations: 0 / 1.026 GB, free: 92.64 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4501/2.239, allocations: 126.5 MB / 1.15 GB, free: 176.1 MB / 0.5606 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001745/2.24, allocations: 199.2 kB / 1.15 GB, free: 175.8 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.81/8.05, allocations: 3.938 kB / 1.15 GB, free: 175.8 MB / 0.5606 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