Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal") translateModel(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009195/0.0009195, allocations: 202.2 kB / 15.8 MB, free: 6.332 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.283/1.283, allocations: 226.6 MB / 243.1 MB, free: 14.31 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007279/0.0007279, allocations: 104.6 kB / 295.1 MB, free: 10.08 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2043/0.2043, allocations: 44.83 MB / 392 MB, free: 9.355 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002668/0.0002668, allocations: 12 kB / 464.7 MB, free: 49.8 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1016/0.1018, allocations: 62.96 MB / 0.5153 GB, free: 2.801 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal): time 0.2673/0.3692, allocations: 56.55 MB / 0.5705 GB, free: 4.902 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.03105/0.4002, allocations: 12.32 MB / 0.5826 GB, free: 8.684 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01242/0.4127, allocations: 275.3 kB / 0.5828 GB, free: 8.414 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.009624/0.4224, allocations: 2.931 MB / 0.5857 GB, free: 5.469 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02431/0.4467, allocations: 8.703 MB / 0.5942 GB, free: 12.73 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004561/0.4513, allocations: 0.9097 MB / 0.5951 GB, free: 11.82 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.07003/0.5213, allocations: 62.49 MB / 0.6561 GB, free: 13.26 MB / 474.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007696/0.5291, allocations: 5.554 MB / 0.6615 GB, free: 7.656 MB / 474.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002847/0.532, allocations: 1.635 MB / 0.6631 GB, free: 6.016 MB / 474.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003383/0.5354, allocations: 2.551 MB / 0.6656 GB, free: 3.457 MB / 474.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007043/0.5361, allocations: 176 kB / 0.6658 GB, free: 3.285 MB / 474.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002303/0.5384, allocations: 1.065 MB / 0.6668 GB, free: 2.219 MB / 474.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001858/0.5403, allocations: 2.158 MB / 0.6689 GB, free: 56 kB / 474.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001097/0.5414, allocations: 1.022 MB / 0.6699 GB, free: 15.02 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006595/0.548, allocations: 6.761 MB / 0.6765 GB, free: 8.246 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.935e-06/0.548, allocations: 0 / 0.6765 GB, free: 8.246 MB / 490.7 MB Notification: Performance of FrontEnd: time 4.599e-06/0.548, allocations: 0 / 0.6765 GB, free: 8.246 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0002641/0.5483, allocations: 3.938 kB / 0.6765 GB, free: 8.242 MB / 490.7 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.01137/0.5597, allocations: 5.252 MB / 0.6817 GB, free: 2.918 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.01e-05/0.5597, allocations: 8.031 kB / 0.6817 GB, free: 2.91 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01083/0.5706, allocations: 2.586 MB / 0.6842 GB, free: 320 kB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007706/0.5783, allocations: 3.774 MB / 0.6879 GB, free: 12.48 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001996/0.5785, allocations: 287.3 kB / 0.6882 GB, free: 12.2 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007442/0.5793, allocations: 379.7 kB / 0.6885 GB, free: 11.83 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02097/0.6003, allocations: 12 MB / 0.7002 GB, free: 15.04 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001481/0.6004, allocations: 59.48 kB / 0.7003 GB, free: 14.98 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004554/0.6009, allocations: 179.8 kB / 0.7005 GB, free: 14.8 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002981/0.6039, allocations: 2.143 MB / 0.7026 GB, free: 12.66 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0181/0.622, allocations: 10.35 MB / 0.7127 GB, free: 2.289 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2643/0.8863, allocations: 47.48 MB / 0.759 GB, free: 136.3 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01256/0.8989, allocations: 5.836 MB / 0.7647 GB, free: 133.3 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003122/0.9021, allocations: 2.977 MB / 0.7676 GB, free: 131.7 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01085/0.913, allocations: 8.859 MB / 0.7763 GB, free: 125.9 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.15e-05/0.913, allocations: 61.84 kB / 0.7764 GB, free: 125.8 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=206): time 4.739e-06/0.913, allocations: 0 / 0.7764 GB, free: 125.8 MB / 0.5105 GB Notification: Performance of matching and sorting (n=262): time 0.1039/1.017, allocations: 35.02 MB / 0.8106 GB, free: 91.07 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.618e-05/1.017, allocations: 213.8 kB / 0.8108 GB, free: 90.82 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005087/1.022, allocations: 4.745 MB / 0.8154 GB, free: 86.07 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.000544/1.023, allocations: 61.7 kB / 0.8155 GB, free: 86 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.001541/1.024, allocations: 3.553 MB / 0.8189 GB, free: 82.45 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009777/1.025, allocations: 0.9688 MB / 0.8199 GB, free: 81.49 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003089/1.026, allocations: 136 kB / 0.82 GB, free: 81.36 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0002444/1.026, allocations: 0.6017 MB / 0.8206 GB, free: 80.75 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003661/1.03, allocations: 3.145 MB / 0.8237 GB, free: 77.6 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004977/1.035, allocations: 7.02 MB / 0.8305 GB, free: 68.69 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005567/1.04, allocations: 4.59 MB / 0.835 GB, free: 64.1 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.963e-05/1.04, allocations: 40 kB / 0.835 GB, free: 64.06 MB / 0.5105 GB Notification: Performance of matching and sorting (n=914) (initialization): time 0.02315/1.063, allocations: 13.69 MB / 0.8484 GB, free: 50.36 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 7.793e-05/1.063, allocations: 66.34 kB / 0.8485 GB, free: 50.29 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001115/1.064, allocations: 136 kB / 0.8486 GB, free: 50.16 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01182/1.075, allocations: 4.421 MB / 0.8529 GB, free: 45.73 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004422/1.08, allocations: 1.482 MB / 0.8544 GB, free: 44.24 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02982/1.11, allocations: 26.82 MB / 0.8805 GB, free: 17.05 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005107/1.115, allocations: 412.4 kB / 0.8809 GB, free: 16.64 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008806/1.116, allocations: 408 kB / 0.8813 GB, free: 16.25 MB / 0.5105 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(8,50.0%) 50,(2,100.0%) 12} * Non-linear torn systems: 1 {2 21} Notification: Performance of prepare postOptimizeDAE: time 0.003291/1.119, allocations: 2.465 MB / 0.8837 GB, free: 13.77 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006849/1.12, allocations: 446.2 kB / 0.8842 GB, free: 13.33 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01438/1.134, allocations: 8.467 MB / 0.8924 GB, free: 4.832 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.443e-05/1.134, allocations: 29.8 kB / 0.8925 GB, free: 4.805 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.021e-05/1.134, allocations: 12 kB / 0.8925 GB, free: 4.793 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.146e-05/1.134, allocations: 15.95 kB / 0.8925 GB, free: 4.777 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02937/1.164, allocations: 17.05 MB / 0.9091 GB, free: 3.609 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.154e-05/1.164, allocations: 8 kB / 0.9091 GB, free: 3.602 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001466/1.165, allocations: 303.5 kB / 0.9094 GB, free: 3.305 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.1991/1.364, allocations: 4.1 MB / 0.9134 GB, free: 169.4 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004951/1.365, allocations: 52.08 kB / 0.9135 GB, free: 169.4 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03437/1.399, allocations: 25.62 MB / 0.9385 GB, free: 159.1 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.206e-06/1.399, allocations: 9.719 kB / 0.9385 GB, free: 159.1 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01845/1.418, allocations: 12.4 MB / 0.9506 GB, free: 154.5 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001139/1.419, allocations: 498.1 kB / 0.9511 GB, free: 154.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005622/1.42, allocations: 52.59 kB / 0.9511 GB, free: 154.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001885/1.421, allocations: 174.6 kB / 0.9513 GB, free: 154.3 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005945/1.422, allocations: 192 kB / 0.9515 GB, free: 154.2 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001731/1.422, allocations: 71.08 kB / 0.9516 GB, free: 154.2 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.00355/1.426, allocations: 2.988 MB / 0.9545 GB, free: 153.2 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.6e-07/1.426, allocations: 0 / 0.9545 GB, free: 153.2 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.004788/1.431, allocations: 1.465 MB / 0.9559 GB, free: 153.1 MB / 0.5261 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(8,50.0%) 43,(2,100.0%) 9} * Non-linear torn systems: 1 {2 25} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004455/1.431, allocations: 186.1 kB / 0.9561 GB, free: 152.9 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0111/1.442, allocations: 8.382 MB / 0.9643 GB, free: 146.1 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 6.282e-06/1.442, allocations: 0 / 0.9643 GB, free: 146.1 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.004821/1.447, allocations: 3.555 MB / 0.9677 GB, free: 142.6 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003156/1.45, allocations: 0.5609 MB / 0.9683 GB, free: 142 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01862/1.469, allocations: 14.92 MB / 0.9829 GB, free: 127.3 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00338/1.472, allocations: 3.891 MB / 0.9867 GB, free: 123.4 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001152/1.473, allocations: 327.4 kB / 0.987 GB, free: 123.1 MB / 0.5261 GB Notification: Performance of SimCode: time 9.92e-07/1.473, allocations: 0 / 0.987 GB, free: 123.1 MB / 0.5261 GB Notification: Performance of Templates: time 0.3717/1.845, allocations: 141.3 MB / 1.125 GB, free: 174.8 MB / 0.5417 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/FourbarVariants/SphericalAndUniversal/SphericalAndUniversal.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches