Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.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: translateModel(ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|universal.phi_a|universal.phi_b|universal.w_a|universal.w_b",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint") translateModel(ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|universal.phi_a|universal.phi_b|universal.w_a|universal.w_b",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001418/0.001419, allocations: 117.9 kB / 18.46 MB, free: 4.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001679/0.001679, allocations: 206.8 kB / 19.41 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.397/1.397, allocations: 227.4 MB / 247.6 MB, free: 10.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2129/0.2129, allocations: 46.1 MB / 345 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001369/0.001369, allocations: 71.89 kB / 482 MB, free: 4.055 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3733/0.3747, allocations: 62.44 MB / 0.5317 GB, free: 13.6 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint): time 0.01135/0.3861, allocations: 9.46 MB / 0.5409 GB, free: 6.18 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.008862/0.395, allocations: 3.804 MB / 0.5446 GB, free: 3.219 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002316/0.3973, allocations: 52 kB / 0.5447 GB, free: 3.211 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004891/0.4023, allocations: 2.289 MB / 0.5469 GB, free: 1.676 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005735/0.408, allocations: 1.608 MB / 0.5485 GB, free: 476 kB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002343/0.4104, allocations: 0.6901 MB / 0.5492 GB, free: 15.77 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.006662/0.4171, allocations: 3.804 MB / 0.5529 GB, free: 11.96 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004741/0.4219, allocations: 2.899 MB / 0.5557 GB, free: 9.016 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002754/0.4246, allocations: 1.289 MB / 0.557 GB, free: 7.723 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002991/0.4276, allocations: 1.721 MB / 0.5586 GB, free: 5.996 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009329/0.4286, allocations: 280 kB / 0.5589 GB, free: 5.723 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002619/0.4312, allocations: 1.159 MB / 0.56 GB, free: 4.562 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001887/0.4331, allocations: 1.594 MB / 0.5616 GB, free: 2.965 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003232/0.4364, allocations: 1.856 MB / 0.5634 GB, free: 1.098 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007657/0.444, allocations: 6.216 MB / 0.5695 GB, free: 10.86 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.201e-06/0.4441, allocations: 0 / 0.5695 GB, free: 10.86 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.4441, allocations: 0 / 0.5695 GB, free: 10.86 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001231/0.4442, allocations: 0 / 0.5695 GB, free: 10.86 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1276 * Number of variables: 1276 Notification: Performance of Generate backend data structure: time 0.007806/0.452, allocations: 4.151 MB / 0.5735 GB, free: 6.645 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.798e-05/0.4521, allocations: 8.031 kB / 0.5735 GB, free: 6.637 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007744/0.4598, allocations: 2 MB / 0.5755 GB, free: 4.629 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004605/0.4645, allocations: 2.319 MB / 0.5778 GB, free: 2.262 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001303/0.4646, allocations: 189.3 kB / 0.5779 GB, free: 2.074 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005877/0.4652, allocations: 271.9 kB / 0.5782 GB, free: 1.809 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0127/0.4779, allocations: 8.588 MB / 0.5866 GB, free: 8.602 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001205/0.4781, allocations: 43.58 kB / 0.5866 GB, free: 8.559 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003948/0.4785, allocations: 123.9 kB / 0.5867 GB, free: 8.438 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002827/0.4813, allocations: 1.735 MB / 0.5884 GB, free: 6.703 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01375/0.4951, allocations: 7.572 MB / 0.5958 GB, free: 15.12 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04292/0.538, allocations: 34.15 MB / 0.6292 GB, free: 11.99 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01032/0.5484, allocations: 3.1 MB / 0.6322 GB, free: 8.738 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003616/0.5521, allocations: 1.917 MB / 0.6341 GB, free: 6.809 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004971/0.5526, allocations: 331.8 kB / 0.6344 GB, free: 6.426 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.781e-05/0.5527, allocations: 47.22 kB / 0.6344 GB, free: 6.371 MB / 494.1 MB Notification: Performance of pre-optimization done (n=135): time 6.162e-06/0.5527, allocations: 0 / 0.6344 GB, free: 6.371 MB / 494.1 MB Notification: Performance of matching and sorting (n=156): time 0.05666/0.6094, allocations: 15.32 MB / 0.6494 GB, free: 6.922 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001149/0.6095, allocations: 171.2 kB / 0.6496 GB, free: 6.719 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007529/0.6171, allocations: 3.515 MB / 0.653 GB, free: 3.199 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0003579/0.6174, allocations: 45.7 kB / 0.653 GB, free: 3.148 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.00261/0.6201, allocations: 2.64 MB / 0.6556 GB, free: 484 kB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.001028/0.6211, allocations: 0.6058 MB / 0.6562 GB, free: 15.86 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002106/0.6232, allocations: 1.098 MB / 0.6573 GB, free: 14.75 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 0.0001368/0.6234, allocations: 305.1 kB / 0.6576 GB, free: 14.45 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003221/0.6266, allocations: 2.123 MB / 0.6596 GB, free: 12.32 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005815/0.6324, allocations: 5.337 MB / 0.6649 GB, free: 5.363 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009184/0.6416, allocations: 8.038 MB / 0.6727 GB, free: 11.74 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.66e-05/0.6417, allocations: 32 kB / 0.6727 GB, free: 11.71 MB / 0.5294 GB Notification: Performance of matching and sorting (n=697) (initialization): time 0.0147/0.6565, allocations: 8.291 MB / 0.6808 GB, free: 3.402 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001171/0.6566, allocations: 52 kB / 0.6809 GB, free: 3.352 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001636/0.6568, allocations: 112.1 kB / 0.681 GB, free: 3.242 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003044/0.6598, allocations: 1.23 MB / 0.6822 GB, free: 2.008 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003815/0.6637, allocations: 1.216 MB / 0.6834 GB, free: 0.7891 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009725/0.6734, allocations: 7.604 MB / 0.6908 GB, free: 9.047 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00383/0.6773, allocations: 311.4 kB / 0.6911 GB, free: 8.742 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008574/0.6781, allocations: 328 kB / 0.6914 GB, free: 8.422 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 516 * Number of states: 0 () * Number of discrete variables: 26 (torque.arrow.twoHeadedArrow,torque.arrow.headAtOrigin,universal.cylinderColor[3],universal.cylinderColor[2],universal.cylinderColor[1],torque.color[3],torque.color[2],torque.color[1],bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[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 (649): * Single equations (assignments): 645 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,22,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003225/0.6814, allocations: 1.847 MB / 0.6932 GB, free: 6.562 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007057/0.6821, allocations: 304 kB / 0.6935 GB, free: 6.262 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006536/0.6886, allocations: 3.576 MB / 0.697 GB, free: 2.672 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.979e-05/0.6887, allocations: 3.984 kB / 0.697 GB, free: 2.668 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.695e-06/0.6887, allocations: 3.984 kB / 0.697 GB, free: 2.664 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007396/0.6894, allocations: 361 kB / 0.6973 GB, free: 2.289 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000636/0.6901, allocations: 27.98 kB / 0.6974 GB, free: 2.262 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001385/0.6915, allocations: 99.8 kB / 0.6975 GB, free: 2.164 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000285/0.6918, allocations: 108.8 kB / 0.6976 GB, free: 2.059 MB / 0.545 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.00711/0.6989, allocations: 4.125 MB / 0.7016 GB, free: 13.92 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.006733/0.7056, allocations: 5.337 MB / 0.7068 GB, free: 8.551 MB / 0.5606 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001687/0.7073, allocations: 1.401 MB / 0.7082 GB, free: 7.152 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.003658/0.711, allocations: 2.192 MB / 0.7103 GB, free: 4.969 MB / 0.5606 GB Notification: Performance of Backend: time 1.754e-06/0.711, allocations: 0 / 0.7103 GB, free: 4.969 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.008239/0.7193, allocations: 4.128 MB / 0.7144 GB, free: 0.8438 MB / 0.5606 GB Notification: Performance of SimCode: time 0.01421/0.7335, allocations: 8.01 MB / 0.7222 GB, free: 8.777 MB / 0.5763 GB Notification: Performance of Templates: time 0.3347/1.068, allocations: 44.04 MB / 0.7652 GB, free: 158.8 MB / 0.5763 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/CheckConstaintTorqueUniversalJoint/CheckConstaintTorqueUniversalJoint.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches