Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Forces.Torque,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Revolute1.phi|Revolute1.w|Revolute2.phi|Revolute2.w|Revolute3.phi|Revolute3.w|Revolute4.phi|Revolute4.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque") translateModel(ModelicaTest.MultiBody.Forces.Torque,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Revolute1.phi|Revolute1.w|Revolute2.phi|Revolute2.w|Revolute3.phi|Revolute3.w|Revolute4.phi|Revolute4.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001235/0.001235, allocations: 114.4 kB / 17.78 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001286/0.001286, allocations: 183.8 kB / 18.72 MB, free: 4.352 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.356/1.356, allocations: 222.9 MB / 242.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2208/0.2208, allocations: 44.2 MB / 336.8 MB, free: 2.656 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001519/0.001519, allocations: 63.91 kB / 470.6 MB, free: 13.15 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3958/0.3973, allocations: 60.82 MB / 0.5189 GB, free: 3.609 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Torque): time 0.01899/0.4163, allocations: 15.8 MB / 0.5343 GB, free: 8.129 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01233/0.4287, allocations: 4.96 MB / 0.5392 GB, free: 4.211 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003551/0.4322, allocations: 107.6 kB / 0.5393 GB, free: 4.191 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01033/0.4425, allocations: 5.059 MB / 0.5442 GB, free: 0.8242 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009344/0.4519, allocations: 2.63 MB / 0.5468 GB, free: 14.92 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003366/0.4552, allocations: 1.079 MB / 0.5479 GB, free: 14.17 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01079/0.466, allocations: 6.84 MB / 0.5545 GB, free: 7.508 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007798/0.4738, allocations: 4.857 MB / 0.5593 GB, free: 2.574 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005481/0.4793, allocations: 2.43 MB / 0.5616 GB, free: 140 kB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005306/0.4846, allocations: 3.248 MB / 0.5648 GB, free: 12.88 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001786/0.4864, allocations: 0.5078 MB / 0.5653 GB, free: 12.37 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003684/0.4901, allocations: 1.412 MB / 0.5667 GB, free: 10.96 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003726/0.4938, allocations: 3.12 MB / 0.5697 GB, free: 7.828 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005433/0.4992, allocations: 3.429 MB / 0.5731 GB, free: 4.379 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01458/0.5138, allocations: 10.65 MB / 0.5835 GB, free: 9.684 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.997e-06/0.5138, allocations: 0 / 0.5835 GB, free: 9.684 MB / 446.1 MB Notification: Performance of FrontEnd: time 3.387e-06/0.5138, allocations: 7.938 kB / 0.5835 GB, free: 9.676 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0006326/0.5145, allocations: 0 / 0.5835 GB, free: 9.676 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: 2219 * Number of variables: 2219 Notification: Performance of Generate backend data structure: time 0.0196/0.5341, allocations: 7.702 MB / 0.591 GB, free: 1.875 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.347e-05/0.5341, allocations: 8.031 kB / 0.591 GB, free: 1.867 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01249/0.5466, allocations: 2.808 MB / 0.5938 GB, free: 15.05 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009215/0.5558, allocations: 4.38 MB / 0.5981 GB, free: 10.59 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003402/0.5562, allocations: 365.7 kB / 0.5984 GB, free: 10.23 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001648/0.5578, allocations: 487.7 kB / 0.5989 GB, free: 9.75 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02824/0.586, allocations: 14.63 MB / 0.6132 GB, free: 10.1 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002173/0.5863, allocations: 67.5 kB / 0.6132 GB, free: 10.04 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007914/0.5871, allocations: 227.8 kB / 0.6134 GB, free: 9.812 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004992/0.592, allocations: 2.828 MB / 0.6162 GB, free: 6.977 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02638/0.6184, allocations: 12.36 MB / 0.6283 GB, free: 10.59 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07716/0.6956, allocations: 58.25 MB / 0.6852 GB, free: 14.86 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01585/0.7114, allocations: 6.068 MB / 0.6911 GB, free: 8.621 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004831/0.7163, allocations: 3.399 MB / 0.6944 GB, free: 5.203 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01472/0.731, allocations: 8.576 MB / 0.7028 GB, free: 12.46 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.382e-05/0.731, allocations: 60.14 kB / 0.7028 GB, free: 12.39 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=236): time 4.147e-06/0.731, allocations: 0 / 0.7028 GB, free: 12.39 MB / 0.5606 GB Notification: Performance of matching and sorting (n=278): time 0.345/1.076, allocations: 30.84 MB / 0.733 GB, free: 161.3 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001108/1.076, allocations: 241.2 kB / 0.7332 GB, free: 161.1 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01153/1.088, allocations: 6.764 MB / 0.7398 GB, free: 158.8 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0008645/1.089, allocations: 65.3 kB / 0.7399 GB, free: 158.8 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.003224/1.092, allocations: 4.672 MB / 0.7444 GB, free: 155.6 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001361/1.093, allocations: 1.12 MB / 0.7455 GB, free: 154.8 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002256/1.095, allocations: 1.809 MB / 0.7473 GB, free: 153.9 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.77e-05/1.095, allocations: 305.1 kB / 0.7476 GB, free: 153.6 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005503/1.101, allocations: 3.585 MB / 0.7511 GB, free: 152.2 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008029/1.109, allocations: 8.685 MB / 0.7595 GB, free: 143.1 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01236/1.121, allocations: 13.2 MB / 0.7724 GB, free: 127.4 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001151/1.121, allocations: 52 kB / 0.7725 GB, free: 127.4 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1146) (initialization): time 0.02364/1.145, allocations: 14.05 MB / 0.7862 GB, free: 113.3 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001309/1.145, allocations: 84 kB / 0.7863 GB, free: 113.2 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002042/1.145, allocations: 177.6 kB / 0.7865 GB, free: 113.1 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005316/1.151, allocations: 2.288 MB / 0.7887 GB, free: 110.8 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006734/1.157, allocations: 2.012 MB / 0.7907 GB, free: 108.8 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01509/1.173, allocations: 14.34 MB / 0.8047 GB, free: 94.15 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008583/1.181, allocations: 0.511 MB / 0.8052 GB, free: 93.64 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001735/1.183, allocations: 0.5156 MB / 0.8057 GB, free: 93.13 MB / 0.5606 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 (1064): * Single equations (assignments): 1057 * 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.005706/1.189, allocations: 3.053 MB / 0.8086 GB, free: 90.07 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001484/1.19, allocations: 0.5859 MB / 0.8092 GB, free: 89.48 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01105/1.201, allocations: 7.06 MB / 0.8161 GB, free: 82.39 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.475e-05/1.201, allocations: 32 kB / 0.8161 GB, free: 82.36 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.363e-05/1.201, allocations: 8 kB / 0.8162 GB, free: 82.36 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.341e-05/1.201, allocations: 15.95 kB / 0.8162 GB, free: 82.34 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02254/1.224, allocations: 14.78 MB / 0.8306 GB, free: 67.52 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.368e-05/1.224, allocations: 12.03 kB / 0.8306 GB, free: 67.5 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002121/1.226, allocations: 455.3 kB / 0.831 GB, free: 67.06 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00489/1.231, allocations: 2.045 MB / 0.833 GB, free: 65.01 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003468/1.231, allocations: 48 kB / 0.8331 GB, free: 64.96 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01458/1.246, allocations: 13.71 MB / 0.8465 GB, free: 50.98 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.522e-06/1.246, allocations: 19.97 kB / 0.8465 GB, free: 50.96 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01601/1.262, allocations: 11.25 MB / 0.8575 GB, free: 39.57 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002118/1.264, allocations: 0.6649 MB / 0.8581 GB, free: 38.88 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001334/1.265, allocations: 47.98 kB / 0.8582 GB, free: 38.83 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002854/1.268, allocations: 203.6 kB / 0.8584 GB, free: 38.63 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006484/1.269, allocations: 173.6 kB / 0.8585 GB, free: 38.46 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002072/1.269, allocations: 76 kB / 0.8586 GB, free: 38.39 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.00565/1.275, allocations: 4.321 MB / 0.8628 GB, free: 34.08 MB / 0.5606 GB Notification: Performance of sort global known variables: time 3e-07/1.275, allocations: 0 / 0.8628 GB, free: 34.08 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.008677/1.283, allocations: 1.613 MB / 0.8644 GB, free: 32.47 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.0006468/1.284, allocations: 196.6 kB / 0.8646 GB, free: 32.27 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01107/1.295, allocations: 8.358 MB / 0.8728 GB, free: 23.91 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 7.284e-06/1.295, allocations: 0 / 0.8728 GB, free: 23.91 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.004672/1.3, allocations: 3.203 MB / 0.8759 GB, free: 20.69 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004789/1.304, allocations: 0.7468 MB / 0.8766 GB, free: 19.95 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02575/1.33, allocations: 15.2 MB / 0.8915 GB, free: 4.656 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004768/1.335, allocations: 4.619 MB / 0.896 GB, free: 4 kB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.006227/1.341, allocations: 2.787 MB / 0.8987 GB, free: 13.21 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001335/1.342, allocations: 387.4 kB / 0.8991 GB, free: 12.83 MB / 0.5762 GB Notification: Performance of SimCode: time 1.082e-06/1.342, allocations: 0 / 0.8991 GB, free: 12.83 MB / 0.5762 GB Notification: Performance of Templates: time 0.4064/1.749, allocations: 63.35 MB / 0.9609 GB, free: 192.5 MB / 0.6075 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/Torque/Torque.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches