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.001079/0.001079, allocations: 200.4 kB / 16.1 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.292/1.292, allocations: 226.6 MB / 243.4 MB, free: 8.172 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008252/0.0008252, allocations: 103.8 kB / 295.5 MB, free: 6.891 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3209/0.3209, allocations: 44.82 MB / 392.3 MB, free: 35.72 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000298/0.000298, allocations: 8 kB / 465.3 MB, free: 12.68 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2945/0.2948, allocations: 62.96 MB / 0.5159 GB, free: 37.04 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal): time 0.04063/0.3355, allocations: 56.56 MB / 0.5711 GB, free: 12.63 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.03058/0.3661, allocations: 12.32 MB / 0.5831 GB, free: 3.664 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01492/0.3811, allocations: 279.2 kB / 0.5834 GB, free: 3.391 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01139/0.3925, allocations: 2.938 MB / 0.5863 GB, free: 1.199 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02662/0.4192, allocations: 8.715 MB / 0.5948 GB, free: 8.453 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005518/0.4247, allocations: 0.979 MB / 0.5957 GB, free: 7.473 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.07599/0.5007, allocations: 62.53 MB / 0.6568 GB, free: 8.859 MB / 474.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008986/0.5097, allocations: 6.05 MB / 0.6627 GB, free: 2.719 MB / 474.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003342/0.5131, allocations: 1.646 MB / 0.6643 GB, free: 1.066 MB / 474.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004199/0.5174, allocations: 2.551 MB / 0.6668 GB, free: 14.51 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001034/0.5184, allocations: 176 kB / 0.667 GB, free: 14.34 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003014/0.5214, allocations: 1.252 MB / 0.6682 GB, free: 13.08 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002887/0.5244, allocations: 2.151 MB / 0.6703 GB, free: 10.93 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00313/0.5275, allocations: 2.328 MB / 0.6726 GB, free: 8.578 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006774/0.5343, allocations: 6.769 MB / 0.6792 GB, free: 1.793 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.392e-06/0.5343, allocations: 0 / 0.6792 GB, free: 1.793 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.216e-06/0.5343, allocations: 4 kB / 0.6792 GB, free: 1.789 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0002403/0.5346, allocations: 3.938 kB / 0.6792 GB, free: 1.785 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.2243/0.7589, allocations: 5.171 MB / 0.6843 GB, free: 138.7 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.058e-05/0.759, allocations: 10 kB / 0.6843 GB, free: 138.7 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01067/0.7697, allocations: 2.578 MB / 0.6868 GB, free: 138.2 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008356/0.7781, allocations: 3.863 MB / 0.6906 GB, free: 136.5 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000298/0.7784, allocations: 279.4 kB / 0.6908 GB, free: 136.4 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00152/0.7799, allocations: 388.1 kB / 0.6912 GB, free: 136.3 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02153/0.8015, allocations: 12 MB / 0.7029 GB, free: 130.9 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002339/0.8018, allocations: 61.17 kB / 0.703 GB, free: 130.8 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007746/0.8026, allocations: 178.6 kB / 0.7031 GB, free: 130.8 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003604/0.8062, allocations: 2.14 MB / 0.7052 GB, free: 130.4 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02255/0.8288, allocations: 10.34 MB / 0.7153 GB, free: 126.4 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04981/0.8786, allocations: 47.52 MB / 0.7617 GB, free: 77.8 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01215/0.8908, allocations: 5.821 MB / 0.7674 GB, free: 71.82 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003043/0.8939, allocations: 2.98 MB / 0.7703 GB, free: 68.84 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01184/0.9058, allocations: 8.871 MB / 0.779 GB, free: 59.82 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.961e-05/0.9059, allocations: 47.88 kB / 0.779 GB, free: 59.76 MB / 490.7 MB Notification: Performance of pre-optimization done (n=206): time 5.25e-06/0.9059, allocations: 4 kB / 0.779 GB, free: 59.76 MB / 490.7 MB Notification: Performance of matching and sorting (n=262): time 0.1016/1.007, allocations: 34.97 MB / 0.8132 GB, free: 24.73 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.834e-05/1.008, allocations: 209.9 kB / 0.8134 GB, free: 24.48 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005489/1.013, allocations: 4.745 MB / 0.818 GB, free: 19.73 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005728/1.014, allocations: 65.7 kB / 0.8181 GB, free: 19.66 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001703/1.015, allocations: 3.543 MB / 0.8215 GB, free: 16.07 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009324/1.016, allocations: 0.9677 MB / 0.8225 GB, free: 15.09 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003403/1.017, allocations: 136 kB / 0.8226 GB, free: 14.96 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.000253/1.017, allocations: 0.6112 MB / 0.8232 GB, free: 14.34 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003671/1.021, allocations: 3.141 MB / 0.8263 GB, free: 11.2 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004988/1.026, allocations: 7.02 MB / 0.8331 GB, free: 2.281 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01202/1.038, allocations: 10.9 MB / 0.8438 GB, free: 5.492 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001117/1.038, allocations: 40 kB / 0.8438 GB, free: 5.453 MB / 0.4948 GB Notification: Performance of matching and sorting (n=914) (initialization): time 0.02674/1.065, allocations: 13.7 MB / 0.8572 GB, free: 7.734 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 8.814e-05/1.065, allocations: 60 kB / 0.8573 GB, free: 7.676 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001328/1.065, allocations: 137.7 kB / 0.8574 GB, free: 7.543 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01182/1.077, allocations: 4.397 MB / 0.8617 GB, free: 3.129 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004702/1.081, allocations: 1.482 MB / 0.8631 GB, free: 1.645 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.282/1.363, allocations: 26.83 MB / 0.8893 GB, free: 158.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005154/1.369, allocations: 407.8 kB / 0.8897 GB, free: 158.1 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009428/1.37, allocations: 410.4 kB / 0.8901 GB, free: 158.1 MB / 0.5261 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.00452/1.374, allocations: 2.47 MB / 0.8925 GB, free: 157.1 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009784/1.375, allocations: 440.3 kB / 0.8929 GB, free: 157.1 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01545/1.391, allocations: 8.47 MB / 0.9012 GB, free: 154.3 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.183e-05/1.391, allocations: 33.36 kB / 0.9012 GB, free: 154.3 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.067e-05/1.391, allocations: 14.94 kB / 0.9013 GB, free: 154.3 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.227e-05/1.391, allocations: 11.11 kB / 0.9013 GB, free: 154.3 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03301/1.424, allocations: 17.05 MB / 0.9179 GB, free: 148.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.793e-05/1.424, allocations: 12.3 kB / 0.9179 GB, free: 148.1 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001514/1.425, allocations: 299.3 kB / 0.9182 GB, free: 148.1 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01036/1.436, allocations: 4.11 MB / 0.9222 GB, free: 147.3 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004667/1.436, allocations: 47.78 kB / 0.9223 GB, free: 147.2 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02879/1.465, allocations: 25.62 MB / 0.9473 GB, free: 129.4 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.65e-06/1.465, allocations: 7.938 kB / 0.9473 GB, free: 129.4 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01901/1.484, allocations: 12.41 MB / 0.9594 GB, free: 117.1 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001524/1.486, allocations: 0.4992 MB / 0.9599 GB, free: 116.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001113/1.487, allocations: 44 kB / 0.96 GB, free: 116.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002263/1.489, allocations: 176.8 kB / 0.9601 GB, free: 116.4 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007396/1.49, allocations: 185.8 kB / 0.9603 GB, free: 116.2 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001932/1.49, allocations: 77 kB / 0.9604 GB, free: 116.1 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.004439/1.495, allocations: 2.978 MB / 0.9633 GB, free: 113.2 MB / 0.5261 GB Notification: Performance of sort global known variables: time 2.31e-07/1.495, allocations: 0 / 0.9633 GB, free: 113.2 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.006788/1.501, allocations: 1.464 MB / 0.9647 GB, free: 111.7 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.0006195/1.502, allocations: 200.4 kB / 0.9649 GB, free: 111.5 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.013/1.515, allocations: 8.377 MB / 0.9731 GB, free: 103.2 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.223e-05/1.515, allocations: 4 kB / 0.9731 GB, free: 103.2 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.005799/1.521, allocations: 3.555 MB / 0.9766 GB, free: 99.58 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007093/1.528, allocations: 0.5456 MB / 0.9771 GB, free: 99.05 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02187/1.55, allocations: 14.91 MB / 0.9917 GB, free: 84.13 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003746/1.554, allocations: 3.899 MB / 0.9955 GB, free: 80.2 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001249/1.555, allocations: 323.4 kB / 0.9958 GB, free: 79.88 MB / 0.5261 GB Notification: Performance of SimCode: time 1.042e-06/1.555, allocations: 3.938 kB / 0.9958 GB, free: 79.88 MB / 0.5261 GB Notification: Performance of Templates: time 0.3813/1.936, allocations: 141.1 MB / 1.134 GB, free: 149.4 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