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: "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_FourbarVariants_SphericalAndUniversal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_FourbarVariants_SphericalAndUniversal",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009875/0.0009876, allocations: 193.1 kB / 16.09 MB, free: 5.68 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.287/1.287, allocations: 226.5 MB / 243.4 MB, free: 8.219 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008774/0.0008772, allocations: 100.8 kB / 295.5 MB, free: 6.898 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3237/0.3237, allocations: 44.83 MB / 392.3 MB, free: 35.72 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002733/0.0002733, allocations: 8 kB / 465.4 MB, free: 12.58 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3062/0.3065, allocations: 62.96 MB / 0.516 GB, free: 37.2 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal): time 0.03865/0.3452, allocations: 56.56 MB / 0.5712 GB, free: 12.79 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.02748/0.3728, allocations: 12.32 MB / 0.5832 GB, free: 3.742 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01231/0.3851, allocations: 275.2 kB / 0.5835 GB, free: 3.473 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.009441/0.3946, allocations: 2.935 MB / 0.5864 GB, free: 1.172 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02349/0.4181, allocations: 8.723 MB / 0.5949 GB, free: 8.418 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004488/0.4226, allocations: 0.9673 MB / 0.5958 GB, free: 7.449 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.07562/0.4983, allocations: 62.55 MB / 0.6569 GB, free: 8.816 MB / 474.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008198/0.5065, allocations: 6.05 MB / 0.6628 GB, free: 2.68 MB / 474.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003121/0.5097, allocations: 1.642 MB / 0.6644 GB, free: 1.031 MB / 474.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003903/0.5136, allocations: 2.547 MB / 0.6669 GB, free: 14.48 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009723/0.5146, allocations: 176 kB / 0.6671 GB, free: 14.3 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003242/0.5179, allocations: 1.252 MB / 0.6683 GB, free: 13.05 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002515/0.5204, allocations: 2.158 MB / 0.6704 GB, free: 10.89 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002627/0.523, allocations: 2.378 MB / 0.6727 GB, free: 8.488 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006568/0.5296, allocations: 6.89 MB / 0.6795 GB, free: 1.582 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.003e-06/0.5296, allocations: 0 / 0.6795 GB, free: 1.582 MB / 490.7 MB Notification: Performance of FrontEnd: time 4.158e-06/0.5297, allocations: 0 / 0.6795 GB, free: 1.582 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0002133/0.5299, allocations: 7.938 kB / 0.6795 GB, free: 1.574 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.2299/0.7598, allocations: 5.347 MB / 0.6847 GB, free: 138.8 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.248e-05/0.7599, allocations: 8.656 kB / 0.6847 GB, free: 138.8 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002821/0.7627, allocations: 0.9076 MB / 0.6856 GB, free: 138.4 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0362/0.7989, allocations: 6.101 MB / 0.6915 GB, free: 137.6 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008963/0.8079, allocations: 4.553 MB / 0.696 GB, free: 135.7 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001926/0.8082, allocations: 283.5 kB / 0.6963 GB, free: 135.6 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001052/0.8092, allocations: 388.5 kB / 0.6966 GB, free: 135.5 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02266/0.8319, allocations: 11.9 MB / 0.7082 GB, free: 129.9 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001989/0.8321, allocations: 58.91 kB / 0.7083 GB, free: 129.8 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005591/0.8327, allocations: 182.3 kB / 0.7085 GB, free: 129.7 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003497/0.8362, allocations: 2.145 MB / 0.7106 GB, free: 128.9 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01954/0.8558, allocations: 10.13 MB / 0.7205 GB, free: 121.3 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0453/0.9011, allocations: 47.3 MB / 0.7667 GB, free: 72.86 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01231/0.9135, allocations: 5.77 MB / 0.7723 GB, free: 66.94 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002826/0.9163, allocations: 2.925 MB / 0.7751 GB, free: 64.01 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01082/0.9272, allocations: 8.774 MB / 0.7837 GB, free: 55.08 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.586e-05/0.9273, allocations: 55.81 kB / 0.7838 GB, free: 55.02 MB / 490.7 MB Notification: Performance of pre-optimization done (n=206): time 5.531e-06/0.9273, allocations: 0 / 0.7838 GB, free: 55.02 MB / 490.7 MB Notification: Performance of matching and sorting (n=262): time 0.1069/1.034, allocations: 34.74 MB / 0.8177 GB, free: 20.22 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.687e-05/1.034, allocations: 205.9 kB / 0.8179 GB, free: 19.98 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00512/1.039, allocations: 4.773 MB / 0.8226 GB, free: 15.2 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005339/1.04, allocations: 65.7 kB / 0.8226 GB, free: 15.13 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001543/1.042, allocations: 3.594 MB / 0.8261 GB, free: 11.49 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009052/1.042, allocations: 0.9754 MB / 0.8271 GB, free: 10.5 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003065/1.043, allocations: 132 kB / 0.8272 GB, free: 10.38 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002475/1.043, allocations: 0.5831 MB / 0.8278 GB, free: 9.785 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003392/1.046, allocations: 3.008 MB / 0.8307 GB, free: 6.773 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004912/1.051, allocations: 6.816 MB / 0.8374 GB, free: 14.08 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01205/1.063, allocations: 10.64 MB / 0.8478 GB, free: 1.578 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.522e-05/1.064, allocations: 43.94 kB / 0.8478 GB, free: 1.535 MB / 0.4948 GB Notification: Performance of matching and sorting (n=872) (initialization): time 0.02723/1.091, allocations: 13.15 MB / 0.8606 GB, free: 4.359 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 9.269e-05/1.091, allocations: 64 kB / 0.8607 GB, free: 4.297 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001552/1.091, allocations: 136.2 kB / 0.8608 GB, free: 4.164 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01225/1.103, allocations: 4.221 MB / 0.865 GB, free: 15.92 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004523/1.108, allocations: 1.407 MB / 0.8663 GB, free: 14.52 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2467/1.355, allocations: 26.38 MB / 0.8921 GB, free: 157.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005664/1.36, allocations: 398.2 kB / 0.8925 GB, free: 157.4 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001288/1.362, allocations: 397.4 kB / 0.8929 GB, free: 157.4 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 606 * 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 (756): * Single equations (assignments): 750 * 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.004786/1.367, allocations: 2.464 MB / 0.8953 GB, free: 156.4 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001181/1.368, allocations: 440.9 kB / 0.8957 GB, free: 156.4 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01756/1.385, allocations: 8.22 MB / 0.9037 GB, free: 153.7 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.883e-05/1.385, allocations: 33.08 kB / 0.9037 GB, free: 153.7 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.691e-05/1.385, allocations: 13.03 kB / 0.9037 GB, free: 153.7 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.202e-05/1.386, allocations: 16.19 kB / 0.9038 GB, free: 153.7 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03233/1.418, allocations: 16.87 MB / 0.9202 GB, free: 147.4 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.943e-05/1.418, allocations: 7.469 kB / 0.9202 GB, free: 147.4 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001357/1.419, allocations: 295.6 kB / 0.9205 GB, free: 147.4 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01014/1.429, allocations: 3.936 MB / 0.9244 GB, free: 146.6 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004626/1.43, allocations: 57.59 kB / 0.9244 GB, free: 146.6 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02771/1.458, allocations: 25.17 MB / 0.949 GB, free: 127.8 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.012e-06/1.458, allocations: 11.94 kB / 0.949 GB, free: 127.8 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01778/1.476, allocations: 12.09 MB / 0.9608 GB, free: 115.8 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001198/1.477, allocations: 499.2 kB / 0.9613 GB, free: 115.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006843/1.477, allocations: 48 kB / 0.9613 GB, free: 115.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002091/1.48, allocations: 176.5 kB / 0.9615 GB, free: 115.1 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008698/1.48, allocations: 193.7 kB / 0.9617 GB, free: 114.9 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001849/1.481, allocations: 73.09 kB / 0.9618 GB, free: 114.8 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.003646/1.484, allocations: 3.02 MB / 0.9647 GB, free: 111.8 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.242e-06/1.484, allocations: 0 / 0.9647 GB, free: 111.8 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.00571/1.49, allocations: 1.428 MB / 0.9661 GB, free: 110.4 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.01769/1.508, allocations: 12.77 MB / 0.9786 GB, free: 97.54 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01186/1.52, allocations: 8.118 MB / 0.9865 GB, free: 89.46 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 7.735e-06/1.52, allocations: 0 / 0.9865 GB, free: 89.46 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.005067/1.525, allocations: 3.509 MB / 0.9899 GB, free: 85.91 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007249/1.532, allocations: 0.5783 MB / 0.9905 GB, free: 85.35 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07881/1.611, allocations: 50.37 MB / 1.04 GB, free: 30.82 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003754/1.615, allocations: 3.927 MB / 1.044 GB, free: 26.86 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002556/1.617, allocations: 2.413 MB / 1.046 GB, free: 24.45 MB / 0.5261 GB Notification: Performance of SimCode: time 7.01e-07/1.617, allocations: 0 / 1.046 GB, free: 24.45 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 9.126/10.74, allocations: 162.2 MB / 1.204 GB, free: 75.58 MB / 0.5417 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_FourbarVariants_SphericalAndUniversal_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_FourbarVariants_SphericalAndUniversal.fmu > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_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","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches