Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical") translateModel(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009561/0.0009564, allocations: 175.1 kB / 16.72 MB, free: 5.059 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.287/1.287, allocations: 205.4 MB / 222.9 MB, free: 8.938 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007724/0.0007724, allocations: 78.44 kB / 271.2 MB, free: 8.246 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3139/0.3139, allocations: 43.56 MB / 363.1 MB, free: 52.1 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003906/0.000391, allocations: 12 kB / 432 MB, free: 5.836 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1097/0.1101, allocations: 58.86 MB / 490.8 MB, free: 10.89 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical): time 0.2207/0.3309, allocations: 48.47 MB / 0.5267 GB, free: 15.97 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.02164/0.3526, allocations: 10.63 MB / 0.537 GB, free: 8.75 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009872/0.3625, allocations: 227.8 kB / 0.5373 GB, free: 8.715 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007352/0.3699, allocations: 2.519 MB / 0.5397 GB, free: 7.828 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01835/0.3883, allocations: 7.624 MB / 0.5472 GB, free: 4.648 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003901/0.3922, allocations: 0.9151 MB / 0.548 GB, free: 4.312 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.04402/0.4362, allocations: 36.69 MB / 0.5839 GB, free: 11.06 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009105/0.4454, allocations: 5.623 MB / 0.5894 GB, free: 5.383 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004158/0.4496, allocations: 1.895 MB / 0.5912 GB, free: 3.48 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004804/0.4544, allocations: 3.139 MB / 0.5943 GB, free: 340 kB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001567/0.456, allocations: 236 kB / 0.5945 GB, free: 104 kB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003612/0.4597, allocations: 1.318 MB / 0.5958 GB, free: 14.78 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003784/0.4635, allocations: 2.591 MB / 0.5983 GB, free: 12.18 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004961/0.4685, allocations: 2.809 MB / 0.6011 GB, free: 9.352 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008587/0.4771, allocations: 7.965 MB / 0.6089 GB, free: 1.367 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.4771, allocations: 0 / 0.6089 GB, free: 1.367 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.807e-06/0.4771, allocations: 3.984 kB / 0.6089 GB, free: 1.363 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003273/0.4774, allocations: 0 / 0.6089 GB, free: 1.363 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2242 * Number of variables: 2242 Notification: Performance of Generate backend data structure: time 0.0123/0.4897, allocations: 6.097 MB / 0.6148 GB, free: 11.19 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.867e-05/0.4898, allocations: 12.03 kB / 0.6148 GB, free: 11.18 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01475/0.5046, allocations: 4.024 MB / 0.6188 GB, free: 7.137 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008537/0.5131, allocations: 4.22 MB / 0.6229 GB, free: 2.855 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002356/0.5134, allocations: 320.6 kB / 0.6232 GB, free: 2.539 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001147/0.5145, allocations: 439.5 kB / 0.6236 GB, free: 2.109 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02155/0.5361, allocations: 15.72 MB / 0.639 GB, free: 1.457 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001326/0.5363, allocations: 63.42 kB / 0.639 GB, free: 1.395 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005331/0.5368, allocations: 203.8 kB / 0.6392 GB, free: 1.195 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004344/0.5412, allocations: 3.216 MB / 0.6423 GB, free: 13.98 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02414/0.5653, allocations: 14.14 MB / 0.6562 GB, free: 15.81 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2895/0.8549, allocations: 57.79 MB / 0.7126 GB, free: 97.42 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01246/0.8674, allocations: 6.586 MB / 0.719 GB, free: 94.55 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004876/0.8723, allocations: 3.752 MB / 0.7227 GB, free: 93.05 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02397/0.8964, allocations: 14.78 MB / 0.7371 GB, free: 85.49 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.519e-05/0.8965, allocations: 64.3 kB / 0.7372 GB, free: 85.43 MB / 490.7 MB Notification: Performance of pre-optimization done (n=292): time 7.805e-06/0.8965, allocations: 0 / 0.7372 GB, free: 85.43 MB / 490.7 MB Notification: Performance of matching and sorting (n=342): time 0.1319/1.028, allocations: 42.79 MB / 0.779 GB, free: 63.21 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.562e-05/1.029, allocations: 211.6 kB / 0.7792 GB, free: 62.96 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006891/1.035, allocations: 5.455 MB / 0.7845 GB, free: 57.52 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008141/1.036, allocations: 73.7 kB / 0.7846 GB, free: 57.44 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002089/1.038, allocations: 4.351 MB / 0.7888 GB, free: 53.09 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001466/1.04, allocations: 1.27 MB / 0.7901 GB, free: 51.84 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005631/1.04, allocations: 176 kB / 0.7902 GB, free: 51.66 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0003655/1.041, allocations: 0.6943 MB / 0.7909 GB, free: 50.96 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006216/1.047, allocations: 4.804 MB / 0.7956 GB, free: 46.15 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008562/1.056, allocations: 9.791 MB / 0.8052 GB, free: 33.95 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01621/1.072, allocations: 15.58 MB / 0.8204 GB, free: 15.91 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001497/1.072, allocations: 52 kB / 0.8204 GB, free: 15.86 MB / 490.7 MB Notification: Performance of matching and sorting (n=1190) (initialization): time 0.04152/1.114, allocations: 19.56 MB / 0.8395 GB, free: 12.26 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001148/1.114, allocations: 76 kB / 0.8396 GB, free: 12.18 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000212/1.114, allocations: 172 kB / 0.8398 GB, free: 12.02 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02119/1.135, allocations: 5.971 MB / 0.8456 GB, free: 6.035 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007547/1.143, allocations: 2.129 MB / 0.8477 GB, free: 3.902 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2491/1.392, allocations: 24.78 MB / 0.8719 GB, free: 148.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007291/1.399, allocations: 0.5621 MB / 0.8724 GB, free: 148.3 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001387/1.401, allocations: 0.5163 MB / 0.8729 GB, free: 148.3 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 789 * Number of states: 0 () * Number of discrete variables: 45 (fixedFrame4.color_x[3],fixedFrame4.color_x[2],fixedFrame4.color_x[1],b3.color[3],b3.color[2],b3.color[1],universalSpherical.cylinderColor[3],universalSpherical.cylinderColor[2],universalSpherical.cylinderColor[1],universalSpherical.sphereColor[3],universalSpherical.sphereColor[2],universalSpherical.sphereColor[1],universalSpherical.rodColor[3],universalSpherical.rodColor[2],universalSpherical.rodColor[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 (1099): * Single equations (assignments): 1091 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 42} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005483/1.406, allocations: 3.099 MB / 0.8759 GB, free: 148.1 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009797/1.407, allocations: 0.4909 MB / 0.8764 GB, free: 148.1 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02739/1.435, allocations: 13.02 MB / 0.8891 GB, free: 144.3 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.018e-05/1.435, allocations: 56.45 kB / 0.8892 GB, free: 144.3 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.746e-05/1.435, allocations: 9.781 kB / 0.8892 GB, free: 144.3 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.191e-05/1.435, allocations: 17.58 kB / 0.8892 GB, free: 144.3 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04595/1.481, allocations: 24.74 MB / 0.9134 GB, free: 134.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.061e-05/1.481, allocations: 5.375 kB / 0.9134 GB, free: 134.8 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002936/1.484, allocations: 0.586 MB / 0.9139 GB, free: 134.7 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01752/1.501, allocations: 5.005 MB / 0.9188 GB, free: 134 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006557/1.502, allocations: 55.62 kB / 0.9189 GB, free: 134 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02181/1.524, allocations: 19.97 MB / 0.9384 GB, free: 122.8 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.724e-06/1.524, allocations: 14.56 kB / 0.9384 GB, free: 122.8 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03027/1.554, allocations: 17.58 MB / 0.9556 GB, free: 108.1 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003205/1.557, allocations: 1.26 MB / 0.9568 GB, free: 106.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009341/1.558, allocations: 63.23 kB / 0.9569 GB, free: 106.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002665/1.561, allocations: 261.2 kB / 0.9571 GB, free: 106.6 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006783/1.562, allocations: 195.6 kB / 0.9573 GB, free: 106.4 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000259/1.562, allocations: 87.27 kB / 0.9574 GB, free: 106.3 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.004347/1.566, allocations: 3.387 MB / 0.9607 GB, free: 102.9 MB / 0.5105 GB Notification: Performance of sort global known variables: time 3.81e-07/1.566, allocations: 0 / 0.9607 GB, free: 102.9 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.006372/1.573, allocations: 1.766 MB / 0.9624 GB, free: 101.2 MB / 0.5105 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 (257): * Single equations (assignments): 249 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005774/1.573, allocations: 202.5 kB / 0.9626 GB, free: 101 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01355/1.587, allocations: 10.96 MB / 0.9733 GB, free: 90.08 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.039e-05/1.587, allocations: 0 / 0.9733 GB, free: 90.08 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.00486/1.592, allocations: 4.122 MB / 0.9773 GB, free: 85.94 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007315/1.599, allocations: 0.5929 MB / 0.9779 GB, free: 85.38 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02668/1.626, allocations: 19.28 MB / 0.9967 GB, free: 66.12 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004644/1.631, allocations: 4.605 MB / 1.001 GB, free: 61.48 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00234/1.633, allocations: 419.4 kB / 1.002 GB, free: 61.08 MB / 0.5105 GB Notification: Performance of SimCode: time 1.142e-06/1.633, allocations: 0 / 1.002 GB, free: 61.08 MB / 0.5105 GB Notification: Performance of Templates: time 0.3453/1.978, allocations: 149 MB / 1.147 GB, free: 87 MB / 0.5105 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/FourbarVariants/UniversalSpherical/UniversalSpherical.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches