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.0007938/0.000794, allocations: 97.44 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009249/0.000925, allocations: 200.8 kB / 18.28 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.342/1.342, allocations: 227.7 MB / 246.8 MB, free: 11.4 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1866/0.1866, allocations: 46.19 MB / 345.2 MB, free: 11.39 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002336/0.0002336, allocations: 8 kB / 419.6 MB, free: 19.63 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1058/0.106, allocations: 63.56 MB / 483.2 MB, free: 4.059 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Torque): time 0.2758/0.3819, allocations: 79.49 MB / 0.5495 GB, free: 13.05 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03509/0.417, allocations: 15.58 MB / 0.5647 GB, free: 1.875 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01302/0.4301, allocations: 355.3 kB / 0.565 GB, free: 1.82 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001962/0.432, allocations: 0.5892 MB / 0.5656 GB, free: 1.359 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006065/0.4381, allocations: 2.347 MB / 0.5679 GB, free: 15.7 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002121/0.4403, allocations: 0.8817 MB / 0.5688 GB, free: 14.95 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01263/0.4529, allocations: 9.992 MB / 0.5785 GB, free: 4.941 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01139/0.4643, allocations: 8.048 MB / 0.5864 GB, free: 12.77 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003098/0.4675, allocations: 1.731 MB / 0.5881 GB, free: 11.04 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004264/0.4717, allocations: 2.955 MB / 0.591 GB, free: 8.07 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008716/0.4726, allocations: 208 kB / 0.5912 GB, free: 7.867 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002464/0.4751, allocations: 1.151 MB / 0.5923 GB, free: 6.715 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002829/0.4779, allocations: 2.645 MB / 0.5949 GB, free: 4.062 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003707/0.4817, allocations: 2.982 MB / 0.5978 GB, free: 1.055 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009733/0.4914, allocations: 9.755 MB / 0.6073 GB, free: 7.27 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/0.4914, allocations: 4 kB / 0.6073 GB, free: 7.266 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.4914, allocations: 4 kB / 0.6073 GB, free: 7.262 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0003074/0.4918, allocations: 0 / 0.6073 GB, free: 7.262 MB / 446.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.01365/0.5054, allocations: 6.243 MB / 0.6134 GB, free: 0.9375 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.07e-05/0.5055, allocations: 8.875 kB / 0.6134 GB, free: 0.9297 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001974/0.5075, allocations: 1.021 MB / 0.6144 GB, free: 15.89 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04005/0.5475, allocations: 6.284 MB / 0.6206 GB, free: 9.59 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01028/0.5578, allocations: 4.574 MB / 0.625 GB, free: 4.938 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003871/0.5583, allocations: 361.5 kB / 0.6254 GB, free: 4.582 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001593/0.5599, allocations: 479.6 kB / 0.6258 GB, free: 4.113 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0251/0.585, allocations: 14.14 MB / 0.6396 GB, free: 4.957 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002026/0.5852, allocations: 75.36 kB / 0.6397 GB, free: 4.883 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008832/0.5861, allocations: 227.8 kB / 0.6399 GB, free: 4.66 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004808/0.5909, allocations: 2.703 MB / 0.6426 GB, free: 1.953 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02341/0.6144, allocations: 11.8 MB / 0.6541 GB, free: 6.121 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2659/0.8803, allocations: 57.08 MB / 0.7098 GB, free: 167.9 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01621/0.8965, allocations: 6.165 MB / 0.7158 GB, free: 167.2 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004468/0.901, allocations: 3.588 MB / 0.7193 GB, free: 167.2 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01291/0.914, allocations: 8.304 MB / 0.7275 GB, free: 163.9 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.076e-05/0.914, allocations: 64 kB / 0.7275 GB, free: 163.9 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=236): time 5.16e-06/0.914, allocations: 0 / 0.7275 GB, free: 163.9 MB / 0.5294 GB Notification: Performance of matching and sorting (n=278): time 0.07533/0.9894, allocations: 28.73 MB / 0.7556 GB, free: 148.9 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001104/0.9895, allocations: 238.6 kB / 0.7558 GB, free: 148.6 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008773/0.9983, allocations: 6.697 MB / 0.7623 GB, free: 141.9 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0007642/0.9991, allocations: 71.03 kB / 0.7624 GB, free: 141.8 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002599/1.002, allocations: 4.462 MB / 0.7668 GB, free: 137.4 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001024/1.003, allocations: 1.06 MB / 0.7678 GB, free: 136.3 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008125/1.004, allocations: 0.7159 MB / 0.7685 GB, free: 135.6 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 8.936e-05/1.004, allocations: 313 kB / 0.7688 GB, free: 135.3 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003834/1.008, allocations: 3.358 MB / 0.7721 GB, free: 131.9 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00629/1.014, allocations: 8.398 MB / 0.7803 GB, free: 121.3 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01195/1.026, allocations: 12.75 MB / 0.7927 GB, free: 106.2 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001094/1.026, allocations: 48 kB / 0.7928 GB, free: 106.2 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1102) (initialization): time 0.02082/1.047, allocations: 13.03 MB / 0.8055 GB, free: 93.14 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001721/1.047, allocations: 80 kB / 0.8056 GB, free: 93.06 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000246/1.047, allocations: 176 kB / 0.8057 GB, free: 92.89 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004011/1.051, allocations: 1.786 MB / 0.8075 GB, free: 91.1 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005698/1.057, allocations: 1.942 MB / 0.8094 GB, free: 89.15 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01178/1.069, allocations: 12.02 MB / 0.8211 GB, free: 76.87 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006114/1.075, allocations: 484.9 kB / 0.8216 GB, free: 76.4 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001153/1.076, allocations: 0.5043 MB / 0.8221 GB, free: 75.89 MB / 0.5294 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.004496/1.081, allocations: 2.986 MB / 0.825 GB, free: 72.9 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009088/1.082, allocations: 0.563 MB / 0.8255 GB, free: 72.33 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009196/1.091, allocations: 6.338 MB / 0.8317 GB, free: 65.97 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.844e-05/1.091, allocations: 32.7 kB / 0.8318 GB, free: 65.94 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.752e-05/1.091, allocations: 11.94 kB / 0.8318 GB, free: 65.93 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.081e-05/1.091, allocations: 11.95 kB / 0.8318 GB, free: 65.92 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01991/1.111, allocations: 14.18 MB / 0.8456 GB, free: 51.69 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-05/1.111, allocations: 4 kB / 0.8456 GB, free: 51.68 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001966/1.113, allocations: 457.5 kB / 0.8461 GB, free: 51.24 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003429/1.116, allocations: 1.526 MB / 0.8476 GB, free: 49.71 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000223/1.116, allocations: 52 kB / 0.8476 GB, free: 49.66 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01218/1.129, allocations: 11.22 MB / 0.8586 GB, free: 38.18 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.428e-06/1.129, allocations: 4 kB / 0.8586 GB, free: 38.17 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01313/1.142, allocations: 10.31 MB / 0.8687 GB, free: 27.71 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001763/1.144, allocations: 0.6419 MB / 0.8693 GB, free: 27.05 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00137/1.145, allocations: 48.7 kB / 0.8693 GB, free: 27 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002755/1.148, allocations: 183.8 kB / 0.8695 GB, free: 26.82 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004667/1.148, allocations: 174.8 kB / 0.8697 GB, free: 26.65 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001801/1.148, allocations: 72 kB / 0.8697 GB, free: 26.58 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.007756/1.156, allocations: 4.298 MB / 0.8739 GB, free: 22.3 MB / 0.5294 GB Notification: Performance of sort global known variables: time 5.61e-07/1.156, allocations: 4 kB / 0.8739 GB, free: 22.29 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.009641/1.166, allocations: 1.516 MB / 0.8754 GB, free: 20.78 MB / 0.5294 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.01562/1.181, allocations: 10.99 MB / 0.8862 GB, free: 9.645 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01094/1.192, allocations: 8.24 MB / 0.8942 GB, free: 1.406 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 7.064e-06/1.192, allocations: 4 kB / 0.8942 GB, free: 1.402 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.005332/1.198, allocations: 3.231 MB / 0.8974 GB, free: 14.14 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009922/1.208, allocations: 0.7142 MB / 0.8981 GB, free: 13.43 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3183/1.526, allocations: 96.69 MB / 0.9925 GB, free: 110 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004017/1.53, allocations: 4.544 MB / 0.9969 GB, free: 105.4 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.005636/1.536, allocations: 2.769 MB / 0.9996 GB, free: 102.6 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002873/1.539, allocations: 2.936 MB / 1.002 GB, free: 99.69 MB / 0.545 GB Notification: Performance of SimCode: time 6.82e-07/1.539, allocations: 3.938 kB / 1.002 GB, free: 99.69 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4204/1.959, allocations: 117.9 MB / 1.118 GB, free: 167.8 MB / 0.5606 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001502/1.959, allocations: 208.9 kB / 1.118 GB, free: 167.5 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.011/6.97, allocations: 4.328 kB / 1.118 GB, free: 167.5 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/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