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.001168/0.001168, allocations: 118.8 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001454/0.001454, allocations: 202 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.351/1.351, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2136/0.2136, allocations: 46.11 MB / 344.3 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001587/0.001587, allocations: 71.89 kB / 480.8 MB, free: 4.555 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3334/0.335, allocations: 62.43 MB / 0.5305 GB, free: 13.4 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Torque): time 0.01707/0.3521, allocations: 15.52 MB / 0.5457 GB, free: 1.219 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01276/0.3649, allocations: 4.94 MB / 0.5505 GB, free: 13.27 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003795/0.3688, allocations: 107.7 kB / 0.5506 GB, free: 13.16 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01029/0.3791, allocations: 4.984 MB / 0.5555 GB, free: 8.164 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007808/0.387, allocations: 2.466 MB / 0.5579 GB, free: 5.688 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003366/0.3903, allocations: 1.08 MB / 0.5589 GB, free: 4.605 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01157/0.4019, allocations: 6.855 MB / 0.5656 GB, free: 13.73 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008432/0.4104, allocations: 5.758 MB / 0.5712 GB, free: 7.898 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00438/0.4148, allocations: 2.379 MB / 0.5736 GB, free: 5.512 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00507/0.4199, allocations: 3.213 MB / 0.5767 GB, free: 2.289 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001881/0.4218, allocations: 0.5 MB / 0.5772 GB, free: 1.789 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003687/0.4256, allocations: 1.381 MB / 0.5785 GB, free: 416 kB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00405/0.4296, allocations: 2.996 MB / 0.5815 GB, free: 13.4 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00562/0.4353, allocations: 3.395 MB / 0.5848 GB, free: 9.988 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01312/0.4484, allocations: 10.47 MB / 0.595 GB, free: 15.48 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.673e-06/0.4485, allocations: 0 / 0.595 GB, free: 15.48 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.4485, allocations: 4 kB / 0.595 GB, free: 15.48 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0003972/0.4489, allocations: 0 / 0.595 GB, free: 15.48 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.02149/0.4704, allocations: 7.572 MB / 0.6024 GB, free: 7.816 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.56e-05/0.4705, allocations: 16.03 kB / 0.6024 GB, free: 7.801 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00308/0.4736, allocations: 1.021 MB / 0.6034 GB, free: 6.77 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04123/0.5148, allocations: 6.186 MB / 0.6095 GB, free: 0.5664 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01239/0.5273, allocations: 4.66 MB / 0.614 GB, free: 11.82 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003464/0.5276, allocations: 357.3 kB / 0.6144 GB, free: 11.47 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001996/0.5297, allocations: 479.6 kB / 0.6148 GB, free: 11 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02738/0.5571, allocations: 14.12 MB / 0.6286 GB, free: 11.86 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002846/0.5574, allocations: 67.36 kB / 0.6287 GB, free: 11.8 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001456/0.5589, allocations: 235.7 kB / 0.6289 GB, free: 11.57 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004974/0.5639, allocations: 2.703 MB / 0.6315 GB, free: 8.859 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02499/0.5889, allocations: 11.78 MB / 0.643 GB, free: 13.05 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08153/0.6705, allocations: 56.82 MB / 0.6985 GB, free: 2.758 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0157/0.6862, allocations: 6.152 MB / 0.7045 GB, free: 12.44 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004719/0.691, allocations: 3.59 MB / 0.708 GB, free: 8.832 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01641/0.7074, allocations: 8.281 MB / 0.7161 GB, free: 396 kB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.796e-05/0.7075, allocations: 64.16 kB / 0.7162 GB, free: 324 kB / 0.5606 GB Notification: Performance of pre-optimization done (n=236): time 5.811e-06/0.7075, allocations: 0 / 0.7162 GB, free: 324 kB / 0.5606 GB Notification: Performance of matching and sorting (n=278): time 0.3208/1.028, allocations: 28.76 MB / 0.7443 GB, free: 152.7 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.037e-05/1.028, allocations: 231.6 kB / 0.7445 GB, free: 152.4 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00793/1.036, allocations: 6.7 MB / 0.751 GB, free: 145.7 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0005815/1.037, allocations: 72.61 kB / 0.7511 GB, free: 145.7 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.002455/1.039, allocations: 4.458 MB / 0.7555 GB, free: 141.2 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001214/1.041, allocations: 1.065 MB / 0.7565 GB, free: 140.1 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002366/1.043, allocations: 1.717 MB / 0.7582 GB, free: 138.4 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.984e-05/1.043, allocations: 301.1 kB / 0.7585 GB, free: 138.1 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003945/1.047, allocations: 3.362 MB / 0.7617 GB, free: 134.7 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00592/1.053, allocations: 8.405 MB / 0.77 GB, free: 123.9 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01081/1.064, allocations: 12.75 MB / 0.7824 GB, free: 108.7 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001355/1.064, allocations: 52 kB / 0.7825 GB, free: 108.6 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1102) (initialization): time 0.02088/1.085, allocations: 13.02 MB / 0.7952 GB, free: 95.6 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002085/1.085, allocations: 80 kB / 0.7953 GB, free: 95.52 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002553/1.085, allocations: 176 kB / 0.7954 GB, free: 95.35 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004302/1.09, allocations: 1.79 MB / 0.7972 GB, free: 93.55 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006004/1.096, allocations: 1.942 MB / 0.7991 GB, free: 91.61 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01362/1.109, allocations: 12.85 MB / 0.8116 GB, free: 78.48 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007556/1.117, allocations: 487.2 kB / 0.8121 GB, free: 78.01 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001779/1.119, allocations: 0.5155 MB / 0.8126 GB, free: 77.49 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.005964/1.125, allocations: 2.985 MB / 0.8155 GB, free: 74.49 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001448/1.126, allocations: 0.5631 MB / 0.816 GB, free: 73.92 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01132/1.138, allocations: 6.331 MB / 0.8222 GB, free: 67.57 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.008e-05/1.138, allocations: 39.69 kB / 0.8223 GB, free: 67.54 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.165e-05/1.138, allocations: 8 kB / 0.8223 GB, free: 67.53 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.722e-05/1.138, allocations: 15.95 kB / 0.8223 GB, free: 67.51 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02767/1.166, allocations: 13.98 MB / 0.8359 GB, free: 53.49 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.82e-05/1.166, allocations: 4 kB / 0.8359 GB, free: 53.48 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002202/1.168, allocations: 463.3 kB / 0.8364 GB, free: 53.03 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003681/1.171, allocations: 1.53 MB / 0.8379 GB, free: 51.5 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003599/1.172, allocations: 55.94 kB / 0.8379 GB, free: 51.45 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01296/1.185, allocations: 12.17 MB / 0.8498 GB, free: 39 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.665e-06/1.185, allocations: 15.94 kB / 0.8498 GB, free: 38.99 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01413/1.199, allocations: 10.32 MB / 0.8599 GB, free: 28.53 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001932/1.201, allocations: 0.6302 MB / 0.8605 GB, free: 27.87 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001511/1.203, allocations: 51.94 kB / 0.8606 GB, free: 27.82 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003171/1.206, allocations: 179.8 kB / 0.8608 GB, free: 27.64 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007035/1.206, allocations: 173.6 kB / 0.8609 GB, free: 27.47 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000319/1.207, allocations: 75.98 kB / 0.861 GB, free: 27.4 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.006878/1.214, allocations: 4.302 MB / 0.8652 GB, free: 23.11 MB / 0.5606 GB Notification: Performance of sort global known variables: time 4.81e-07/1.214, allocations: 0 / 0.8652 GB, free: 23.11 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.007697/1.221, allocations: 1.518 MB / 0.8667 GB, free: 21.59 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.01577/1.237, allocations: 11 MB / 0.8774 GB, free: 10.45 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01182/1.249, allocations: 8.288 MB / 0.8855 GB, free: 2.16 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.107e-05/1.249, allocations: 0 / 0.8855 GB, free: 2.16 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.005756/1.255, allocations: 3.248 MB / 0.8887 GB, free: 14.89 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00737/1.262, allocations: 0.7575 MB / 0.8894 GB, free: 14.14 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4028/1.665, allocations: 75.45 MB / 0.9631 GB, free: 220.5 MB / 0.6388 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007789/1.673, allocations: 4.534 MB / 0.9675 GB, free: 219.6 MB / 0.6388 GB Notification: Performance of simCode: alias equations: time 0.006833/1.68, allocations: 2.772 MB / 0.9702 GB, free: 219.6 MB / 0.6388 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00502/1.685, allocations: 2.931 MB / 0.9731 GB, free: 217.9 MB / 0.6388 GB Notification: Performance of SimCode: time 1.312e-06/1.685, allocations: 3.906 kB / 0.9731 GB, free: 217.9 MB / 0.6388 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.159/1.844, allocations: 118.3 MB / 1.089 GB, free: 108 MB / 0.6388 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.89/24.73, allocations: 8.938 kB / 1.089 GB, free: 108 MB / 0.6388 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