Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.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.FourbarVariants.SphericalAndUniversal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal") translateModel(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001042/0.001043, allocations: 97.92 kB / 18.01 MB, free: 5.734 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.001401/0.001401, allocations: 175.3 kB / 18.91 MB, free: 4.871 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.354/1.354, allocations: 223.3 MB / 243 MB, free: 212 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2027/0.2027, allocations: 44.25 MB / 338.3 MB, free: 2.641 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003279/0.0003282, allocations: 12 kB / 411 MB, free: 27.3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1174/0.1177, allocations: 61.93 MB / 472.9 MB, free: 13.34 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal): time 0.2958/0.4135, allocations: 60.79 MB / 0.5212 GB, free: 10.11 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03053/0.4441, allocations: 12.87 MB / 0.5338 GB, free: 6.707 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01403/0.4582, allocations: 275 kB / 0.534 GB, free: 6.664 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00212/0.4603, allocations: 0.497 MB / 0.5345 GB, free: 6.465 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007156/0.4675, allocations: 2.062 MB / 0.5365 GB, free: 5.781 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00276/0.4703, allocations: 1 MB / 0.5375 GB, free: 5.395 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01063/0.481, allocations: 9.113 MB / 0.5464 GB, free: 1.09 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009124/0.4901, allocations: 6.306 MB / 0.5526 GB, free: 13.58 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003465/0.4936, allocations: 1.508 MB / 0.554 GB, free: 12.13 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003852/0.4975, allocations: 2.574 MB / 0.5566 GB, free: 9.719 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008201/0.4984, allocations: 175.9 kB / 0.5567 GB, free: 9.547 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003013/0.5014, allocations: 1.283 MB / 0.558 GB, free: 8.312 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002366/0.5038, allocations: 2.193 MB / 0.5601 GB, free: 6.125 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002841/0.5066, allocations: 2.468 MB / 0.5625 GB, free: 3.645 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007402/0.514, allocations: 6.771 MB / 0.5691 GB, free: 13.07 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.711e-06/0.5141, allocations: 0 / 0.5691 GB, free: 13.07 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.5141, allocations: 4 kB / 0.5691 GB, free: 13.06 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0002702/0.5144, allocations: 0 / 0.5691 GB, free: 13.06 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1729 * Number of variables: 1729 Notification: Performance of Generate backend data structure: time 0.01293/0.5273, allocations: 5.151 MB / 0.5742 GB, free: 7.875 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.275e-05/0.5274, allocations: 12.03 kB / 0.5742 GB, free: 7.863 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01153/0.5389, allocations: 2.578 MB / 0.5767 GB, free: 5.277 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007964/0.5469, allocations: 3.931 MB / 0.5805 GB, free: 1.34 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002977/0.5472, allocations: 282.4 kB / 0.5808 GB, free: 1.102 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001361/0.5486, allocations: 385.8 kB / 0.5812 GB, free: 0.7617 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02273/0.5713, allocations: 12.03 MB / 0.5929 GB, free: 4.062 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002535/0.5716, allocations: 59.48 kB / 0.593 GB, free: 4.004 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001172/0.5728, allocations: 178.1 kB / 0.5932 GB, free: 3.867 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003625/0.5765, allocations: 2.146 MB / 0.5952 GB, free: 1.734 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0219/0.5984, allocations: 10.39 MB / 0.6054 GB, free: 7.332 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06308/0.6615, allocations: 47.51 MB / 0.6518 GB, free: 6.715 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01533/0.6769, allocations: 5.827 MB / 0.6575 GB, free: 0.7422 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004085/0.681, allocations: 2.98 MB / 0.6604 GB, free: 13.75 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01481/0.6959, allocations: 8.871 MB / 0.6691 GB, free: 4.77 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.226e-05/0.696, allocations: 59.75 kB / 0.6691 GB, free: 4.703 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=206): time 4.519e-06/0.696, allocations: 0 / 0.6691 GB, free: 4.703 MB / 0.4981 GB Notification: Performance of matching and sorting (n=262): time 0.1323/0.8283, allocations: 35 MB / 0.7033 GB, free: 1.68 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001469/0.8285, allocations: 205.9 kB / 0.7035 GB, free: 1.434 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2893/1.118, allocations: 4.769 MB / 0.7081 GB, free: 191 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0007434/1.119, allocations: 63.98 kB / 0.7082 GB, free: 190.9 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.00332/1.122, allocations: 3.545 MB / 0.7117 GB, free: 189 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001496/1.123, allocations: 0.9717 MB / 0.7126 GB, free: 188.3 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001522/1.125, allocations: 0.6038 MB / 0.7132 GB, free: 188.1 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 5.751e-05/1.125, allocations: 301.9 kB / 0.7135 GB, free: 187.8 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005791/1.131, allocations: 3.177 MB / 0.7166 GB, free: 186.6 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01034/1.141, allocations: 7.045 MB / 0.7235 GB, free: 180.4 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01392/1.155, allocations: 10.95 MB / 0.7342 GB, free: 172.1 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002883/1.156, allocations: 39.25 kB / 0.7342 GB, free: 172.1 MB / 0.5294 GB Notification: Performance of matching and sorting (n=914) (initialization): time 0.0299/1.185, allocations: 13.75 MB / 0.7476 GB, free: 166.7 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002611/1.186, allocations: 60.62 kB / 0.7477 GB, free: 166.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002994/1.186, allocations: 136 kB / 0.7478 GB, free: 166.5 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01169/1.198, allocations: 4.403 MB / 0.7521 GB, free: 163.1 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004665/1.202, allocations: 1.478 MB / 0.7536 GB, free: 161.7 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03276/1.235, allocations: 26.84 MB / 0.7798 GB, free: 134.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006905/1.242, allocations: 420 kB / 0.7802 GB, free: 134 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001438/1.244, allocations: 408 kB / 0.7806 GB, free: 133.6 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 612 * Number of states: 0 () * Number of discrete variables: 42 (Universal1.cylinderColor[3],Universal1.cylinderColor[2],Universal1.cylinderColor[1],FixedTranslation1.color[3],FixedTranslation1.color[2],FixedTranslation1.color[1],spherical.sphereColor[3],spherical.sphereColor[2],spherical.sphereColor[1],b3.color[3],b3.color[2],b3.color[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.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 (798): * Single equations (assignments): 792 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(8,50,50.0%), (2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,21)} Notification: Performance of prepare postOptimizeDAE: time 0.005471/1.249, allocations: 2.476 MB / 0.783 GB, free: 131.2 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001402/1.251, allocations: 434.4 kB / 0.7834 GB, free: 130.7 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01698/1.268, allocations: 8.483 MB / 0.7917 GB, free: 122.2 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.624e-05/1.268, allocations: 28.84 kB / 0.7917 GB, free: 122.2 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.455e-05/1.268, allocations: 12 kB / 0.7917 GB, free: 122.2 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.082e-05/1.268, allocations: 11.95 kB / 0.7917 GB, free: 122.2 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03155/1.299, allocations: 17.07 MB / 0.8084 GB, free: 105 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.097e-05/1.299, allocations: 8.125 kB / 0.8084 GB, free: 105 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001424/1.301, allocations: 299.5 kB / 0.8087 GB, free: 104.7 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01099/1.312, allocations: 4.101 MB / 0.8127 GB, free: 100.6 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006446/1.313, allocations: 49.17 kB / 0.8127 GB, free: 100.5 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03122/1.344, allocations: 25.65 MB / 0.8378 GB, free: 74.48 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.951e-06/1.344, allocations: 4.75 kB / 0.8378 GB, free: 74.48 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02093/1.365, allocations: 12.44 MB / 0.8499 GB, free: 61.91 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001565/1.366, allocations: 499.3 kB / 0.8504 GB, free: 61.39 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001499/1.368, allocations: 48.64 kB / 0.8505 GB, free: 61.35 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00308/1.371, allocations: 179.1 kB / 0.8506 GB, free: 61.18 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008491/1.372, allocations: 194 kB / 0.8508 GB, free: 60.98 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003012/1.372, allocations: 71.98 kB / 0.8509 GB, free: 60.91 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.005179/1.377, allocations: 3.013 MB / 0.8538 GB, free: 57.9 MB / 0.5294 GB Notification: Performance of sort global known variables: time 4.71e-07/1.377, allocations: 4.188 kB / 0.8538 GB, free: 57.9 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.00781/1.385, allocations: 1.461 MB / 0.8553 GB, free: 56.44 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 2 (j1.phi,j1.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 (158): * Single equations (assignments): 152 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(8,43,50.0%), (2,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,25)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007887/1.386, allocations: 199.3 kB / 0.8555 GB, free: 56.24 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01331/1.399, allocations: 8.407 MB / 0.8637 GB, free: 47.82 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.022e-05/1.399, allocations: 0 / 0.8637 GB, free: 47.82 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.005814/1.405, allocations: 3.563 MB / 0.8671 GB, free: 44.22 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007187/1.412, allocations: 0.5526 MB / 0.8677 GB, free: 43.67 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01958/1.432, allocations: 15.5 MB / 0.8828 GB, free: 28.07 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004246/1.436, allocations: 3.891 MB / 0.8866 GB, free: 24.15 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001328/1.438, allocations: 327.4 kB / 0.8869 GB, free: 23.83 MB / 0.5294 GB Notification: Performance of SimCode: time 1.633e-06/1.438, allocations: 0 / 0.8869 GB, free: 23.83 MB / 0.5294 GB Notification: Performance of Templates: time 0.4121/1.85, allocations: 140.8 MB / 1.024 GB, free: 66.37 MB / 0.5294 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/FourbarVariants/SphericalAndUniversal/SphericalAndUniversal.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches