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.00171/0.00171, allocations: 121.7 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001957/0.001958, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.477/1.477, allocations: 227.4 MB / 247 MB, free: 10.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.22/0.22, allocations: 46.14 MB / 344.4 MB, free: 11.41 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002209/0.002209, allocations: 75.88 kB / 480.9 MB, free: 4.465 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3096/0.3118, allocations: 62.45 MB / 0.5306 GB, free: 13.35 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Torque): time 0.01808/0.33, allocations: 15.52 MB / 0.5458 GB, free: 1.16 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01089/0.3409, allocations: 4.934 MB / 0.5506 GB, free: 13.17 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002542/0.3435, allocations: 107.7 kB / 0.5507 GB, free: 13.07 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009211/0.3527, allocations: 4.988 MB / 0.5556 GB, free: 8.062 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006803/0.3596, allocations: 2.47 MB / 0.558 GB, free: 5.582 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00255/0.3621, allocations: 1.076 MB / 0.559 GB, free: 4.504 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01029/0.3724, allocations: 6.848 MB / 0.5657 GB, free: 13.64 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007446/0.3799, allocations: 5.766 MB / 0.5714 GB, free: 7.797 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004851/0.3848, allocations: 2.375 MB / 0.5737 GB, free: 5.414 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005053/0.3899, allocations: 3.205 MB / 0.5768 GB, free: 2.199 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001461/0.3914, allocations: 0.5 MB / 0.5773 GB, free: 1.699 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003031/0.3944, allocations: 1.385 MB / 0.5787 GB, free: 320 kB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003338/0.3978, allocations: 2.977 MB / 0.5816 GB, free: 13.33 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004508/0.4023, allocations: 3.395 MB / 0.5849 GB, free: 9.914 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01319/0.4155, allocations: 10.51 MB / 0.5951 GB, free: 15.37 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.671e-06/0.4155, allocations: 0 / 0.5951 GB, free: 15.37 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.4155, allocations: 0 / 0.5951 GB, free: 15.37 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0002989/0.4158, allocations: 4 kB / 0.5951 GB, free: 15.36 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2161 * Number of variables: 2161 Notification: Performance of Generate backend data structure: time 0.01801/0.4339, allocations: 7.772 MB / 0.6027 GB, free: 7.492 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.45e-05/0.4339, allocations: 16.03 kB / 0.6027 GB, free: 7.477 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001935/0.4359, allocations: 1.025 MB / 0.6037 GB, free: 6.441 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04011/0.476, allocations: 6.222 MB / 0.6098 GB, free: 212 kB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01062/0.4866, allocations: 4.685 MB / 0.6144 GB, free: 11.44 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003301/0.487, allocations: 361.3 kB / 0.6147 GB, free: 11.09 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001415/0.4884, allocations: 483.7 kB / 0.6152 GB, free: 10.61 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02519/0.5136, allocations: 14.12 MB / 0.629 GB, free: 11.48 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001682/0.5138, allocations: 67.47 kB / 0.6291 GB, free: 11.41 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006107/0.5144, allocations: 227.8 kB / 0.6293 GB, free: 11.19 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004902/0.5193, allocations: 2.703 MB / 0.6319 GB, free: 8.48 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02353/0.5429, allocations: 11.78 MB / 0.6434 GB, free: 12.67 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0736/0.6165, allocations: 56.93 MB / 0.699 GB, free: 2.281 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01576/0.6323, allocations: 6.155 MB / 0.705 GB, free: 11.96 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004915/0.6373, allocations: 3.587 MB / 0.7085 GB, free: 8.355 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2611/0.8984, allocations: 8.304 MB / 0.7166 GB, free: 162.5 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.831e-05/0.8985, allocations: 60.61 kB / 0.7167 GB, free: 162.4 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=236): time 6.502e-06/0.8985, allocations: 4.281 kB / 0.7167 GB, free: 162.4 MB / 0.5606 GB Notification: Performance of matching and sorting (n=278): time 0.06669/0.9652, allocations: 29.19 MB / 0.7452 GB, free: 151.1 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.934e-05/0.9653, allocations: 231.6 kB / 0.7454 GB, free: 150.9 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007689/0.973, allocations: 6.709 MB / 0.752 GB, free: 144.3 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0006145/0.9737, allocations: 65.7 kB / 0.752 GB, free: 144.2 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.002142/0.9758, allocations: 4.633 MB / 0.7566 GB, free: 140.1 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001042/0.9769, allocations: 1.103 MB / 0.7576 GB, free: 139 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001917/0.9788, allocations: 1.733 MB / 0.7593 GB, free: 137.2 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.773e-05/0.9789, allocations: 309 kB / 0.7596 GB, free: 136.9 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003735/0.9826, allocations: 3.358 MB / 0.7629 GB, free: 133.5 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005367/0.988, allocations: 8.396 MB / 0.7711 GB, free: 122.7 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01069/0.9987, allocations: 12.75 MB / 0.7836 GB, free: 107.5 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001143/0.9988, allocations: 52 kB / 0.7836 GB, free: 107.4 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1102) (initialization): time 0.02017/1.019, allocations: 13.06 MB / 0.7964 GB, free: 94.38 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001765/1.019, allocations: 84 kB / 0.7964 GB, free: 94.3 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001952/1.019, allocations: 176 kB / 0.7966 GB, free: 94.13 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003866/1.023, allocations: 1.781 MB / 0.7983 GB, free: 92.34 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005711/1.029, allocations: 1.949 MB / 0.8002 GB, free: 90.39 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01289/1.042, allocations: 12.85 MB / 0.8128 GB, free: 77.26 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006777/1.049, allocations: 0.491 MB / 0.8133 GB, free: 76.77 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001409/1.05, allocations: 0.5038 MB / 0.8138 GB, free: 76.27 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 808 * Number of states: 0 () * Number of discrete variables: 67 (torque2.torqueArrow.twoHeadedArrow,torque2.torqueArrow.headAtOrigin,torque1.torqueArrow.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 (1020): * Single equations (assignments): 1013 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,23,100.0%), (2,23,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005228/1.055, allocations: 2.988 MB / 0.8167 GB, free: 73.27 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001412/1.057, allocations: 0.5898 MB / 0.8173 GB, free: 72.67 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01054/1.067, allocations: 6.342 MB / 0.8235 GB, free: 66.31 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.027e-05/1.067, allocations: 28 kB / 0.8235 GB, free: 66.28 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.017e-05/1.068, allocations: 15.94 kB / 0.8235 GB, free: 66.27 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.189e-05/1.068, allocations: 15.89 kB / 0.8235 GB, free: 66.25 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02443/1.092, allocations: 13.98 MB / 0.8372 GB, free: 52.22 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.752e-05/1.092, allocations: 8 kB / 0.8372 GB, free: 52.21 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002138/1.094, allocations: 455.3 kB / 0.8376 GB, free: 51.77 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003664/1.098, allocations: 1.531 MB / 0.8391 GB, free: 50.23 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003729/1.098, allocations: 59.92 kB / 0.8392 GB, free: 50.18 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01282/1.111, allocations: 12.18 MB / 0.8511 GB, free: 37.73 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.732e-06/1.111, allocations: 11.94 kB / 0.8511 GB, free: 37.71 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01374/1.125, allocations: 10.36 MB / 0.8612 GB, free: 27.22 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001464/1.126, allocations: 0.6532 MB / 0.8618 GB, free: 26.54 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001352/1.128, allocations: 48 kB / 0.8619 GB, free: 26.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002946/1.131, allocations: 183.7 kB / 0.862 GB, free: 26.32 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005979/1.131, allocations: 169.7 kB / 0.8622 GB, free: 26.15 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002644/1.132, allocations: 79.98 kB / 0.8623 GB, free: 26.07 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.006811/1.138, allocations: 4.298 MB / 0.8665 GB, free: 21.79 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.81e-07/1.138, allocations: 3.938 kB / 0.8665 GB, free: 21.78 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.00746/1.146, allocations: 1.52 MB / 0.868 GB, free: 20.27 MB / 0.5606 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(4,18,75.0%), (4,18,75.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01442/1.16, allocations: 11.03 MB / 0.8787 GB, free: 9.078 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01085/1.171, allocations: 8.297 MB / 0.8868 GB, free: 0.7812 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 7.123e-06/1.171, allocations: 0 / 0.8868 GB, free: 0.7812 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.005772/1.177, allocations: 3.246 MB / 0.89 GB, free: 13.52 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005815/1.183, allocations: 0.7509 MB / 0.8907 GB, free: 12.77 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3834/1.566, allocations: 75.72 MB / 0.9647 GB, free: 220.6 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004665/1.571, allocations: 4.53 MB / 0.9691 GB, free: 219.7 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.005286/1.576, allocations: 2.776 MB / 0.9718 GB, free: 219.6 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003746/1.58, allocations: 2.944 MB / 0.9747 GB, free: 217.6 MB / 0.6387 GB Notification: Performance of SimCode: time 1.383e-06/1.58, allocations: 0 / 0.9747 GB, free: 217.6 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1571/1.737, allocations: 116.5 MB / 1.088 GB, free: 108.6 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.64/25.37, allocations: 12.81 kB / 1.088 GB, free: 108.6 MB / 0.6387 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/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) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/Torque/Torque.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches