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.002247/0.002253, allocations: 183.1 kB / 16.4 MB, free: 5.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.032/2.032, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.001146/0.001145, allocations: 97.47 kB / 270.9 MB, free: 8.375 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.5194/0.5194, allocations: 43.56 MB / 362.7 MB, free: 52.17 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006815/0.0006817, allocations: 12 kB / 431.4 MB, free: 6.184 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1389/0.1396, allocations: 58.85 MB / 490.2 MB, free: 11.25 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical): time 0.3915/0.5312, allocations: 45.76 MB / 0.5234 GB, free: 18.04 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0301/0.5614, allocations: 11.09 MB / 0.5342 GB, free: 10.53 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0116/0.573, allocations: 226.5 kB / 0.5345 GB, free: 10.5 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008444/0.5815, allocations: 2.277 MB / 0.5367 GB, free: 9.754 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02647/0.608, allocations: 6.691 MB / 0.5432 GB, free: 6.598 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004696/0.6128, allocations: 0.8472 MB / 0.544 GB, free: 6.285 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.07329/0.6861, allocations: 28.07 MB / 0.5715 GB, free: 7.363 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01154/0.6977, allocations: 5.1 MB / 0.5764 GB, free: 2.234 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004433/0.7022, allocations: 1.565 MB / 0.578 GB, free: 0.6641 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005476/0.7078, allocations: 2.278 MB / 0.5802 GB, free: 14.38 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001802/0.7096, allocations: 240 kB / 0.5804 GB, free: 14.14 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004467/0.7141, allocations: 1.088 MB / 0.5815 GB, free: 13.05 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004904/0.7191, allocations: 2.408 MB / 0.5838 GB, free: 10.64 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003144/0.7223, allocations: 1.201 MB / 0.585 GB, free: 9.43 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01413/0.7364, allocations: 8.117 MB / 0.5929 GB, free: 1.293 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.7365, allocations: 0 / 0.5929 GB, free: 1.293 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.487e-06/0.7365, allocations: 0 / 0.5929 GB, free: 1.293 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004122/0.737, allocations: 0 / 0.5929 GB, free: 1.293 MB / 410.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.02596/0.7629, allocations: 6.495 MB / 0.5993 GB, free: 10.72 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.107e-05/0.763, allocations: 8.562 kB / 0.5993 GB, free: 10.71 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1031/0.8661, allocations: 9.716 MB / 0.6088 GB, free: 0.9727 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01697/0.8831, allocations: 4.691 MB / 0.6133 GB, free: 12.22 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005214/0.8837, allocations: 316 kB / 0.6136 GB, free: 11.91 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002782/0.8865, allocations: 435.5 kB / 0.6141 GB, free: 11.48 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04678/0.9334, allocations: 15.76 MB / 0.6295 GB, free: 10.79 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004036/0.9338, allocations: 63.36 kB / 0.6295 GB, free: 10.73 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002565/0.9364, allocations: 203.8 kB / 0.6297 GB, free: 10.53 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00974/0.9462, allocations: 3.216 MB / 0.6329 GB, free: 7.312 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04685/0.9931, allocations: 14.08 MB / 0.6466 GB, free: 9.203 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4623/1.455, allocations: 57.56 MB / 0.7028 GB, free: 97.7 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02352/1.479, allocations: 6.6 MB / 0.7093 GB, free: 96.15 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03665/1.516, allocations: 14.55 MB / 0.7235 GB, free: 88.75 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.051e-05/1.516, allocations: 61.22 kB / 0.7235 GB, free: 88.7 MB / 490.7 MB Notification: Performance of pre-optimization done (n=289): time 7.565e-06/1.516, allocations: 0 / 0.7235 GB, free: 88.7 MB / 490.7 MB Notification: Performance of matching and sorting (n=339): time 0.2875/1.803, allocations: 42.99 MB / 0.7655 GB, free: 72.58 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.005e-05/1.804, allocations: 217.2 kB / 0.7657 GB, free: 72.33 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01103/1.815, allocations: 5.745 MB / 0.7713 GB, free: 66.61 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009626/1.816, allocations: 76.91 kB / 0.7714 GB, free: 66.53 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003444/1.819, allocations: 4.271 MB / 0.7756 GB, free: 62.26 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002077/1.821, allocations: 1.253 MB / 0.7768 GB, free: 61.02 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001077/1.822, allocations: 168 kB / 0.777 GB, free: 60.86 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0005327/1.823, allocations: 0.6867 MB / 0.7776 GB, free: 60.16 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01067/1.834, allocations: 4.608 MB / 0.7821 GB, free: 55.54 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01381/1.847, allocations: 9.548 MB / 0.7915 GB, free: 43.55 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01417/1.862, allocations: 6.495 MB / 0.7978 GB, free: 37.03 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001379/1.862, allocations: 48 kB / 0.7978 GB, free: 36.98 MB / 490.7 MB Notification: Performance of matching and sorting (n=1149) (initialization): time 0.0812/1.943, allocations: 18.79 MB / 0.8162 GB, free: 18.15 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001265/1.943, allocations: 83.95 kB / 0.8163 GB, free: 18.07 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002275/1.943, allocations: 172 kB / 0.8164 GB, free: 17.9 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04228/1.986, allocations: 5.832 MB / 0.8221 GB, free: 12.05 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01348/1.999, allocations: 2.063 MB / 0.8241 GB, free: 9.988 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05959/2.059, allocations: 24.93 MB / 0.8485 GB, free: 0.7852 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0115/2.07, allocations: 0.5575 MB / 0.849 GB, free: 236 kB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002257/2.073, allocations: 0.5 MB / 0.8495 GB, free: 15.73 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 (1058): * Single equations (assignments): 1050 * 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.009636/2.082, allocations: 3.091 MB / 0.8525 GB, free: 12.62 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001788/2.084, allocations: 0.5052 MB / 0.853 GB, free: 12.11 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4136/2.498, allocations: 12.68 MB / 0.8654 GB, free: 149.1 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001494/2.498, allocations: 54.14 kB / 0.8655 GB, free: 149.1 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.784e-05/2.498, allocations: 9.156 kB / 0.8655 GB, free: 149.1 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.874e-05/2.498, allocations: 17.61 kB / 0.8655 GB, free: 149.1 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09256/2.591, allocations: 24.45 MB / 0.8894 GB, free: 142.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.169e-05/2.591, allocations: 9.953 kB / 0.8894 GB, free: 142.6 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00582/2.597, allocations: 0.5767 MB / 0.8899 GB, free: 142.5 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03818/2.635, allocations: 4.842 MB / 0.8947 GB, free: 141.8 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009457/2.636, allocations: 61.97 kB / 0.8947 GB, free: 141.8 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04739/2.683, allocations: 20.18 MB / 0.9144 GB, free: 132.1 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.399e-05/2.683, allocations: 6.906 kB / 0.9145 GB, free: 132.1 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06587/2.749, allocations: 17.83 MB / 0.9319 GB, free: 124.5 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00488/2.754, allocations: 1.253 MB / 0.9331 GB, free: 124 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001964/2.756, allocations: 58.8 kB / 0.9331 GB, free: 124 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006744/2.763, allocations: 260.8 kB / 0.9334 GB, free: 123.8 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001683/2.765, allocations: 191.9 kB / 0.9336 GB, free: 123.7 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005761/2.765, allocations: 87.53 kB / 0.9337 GB, free: 123.7 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.008955/2.774, allocations: 3.611 MB / 0.9372 GB, free: 121.9 MB / 0.5105 GB Notification: Performance of sort global known variables: time 9.82e-07/2.774, allocations: 2.875 kB / 0.9372 GB, free: 121.9 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01099/2.785, allocations: 1.732 MB / 0.9389 GB, free: 121.7 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 (254): * Single equations (assignments): 246 * 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.001474/2.787, allocations: 224.4 kB / 0.9391 GB, free: 121.6 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.02451/2.812, allocations: 10.62 MB / 0.9495 GB, free: 111.6 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.064e-05/2.812, allocations: 0 / 0.9495 GB, free: 111.6 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.009903/2.822, allocations: 4.049 MB / 0.9534 GB, free: 107.6 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005359/2.827, allocations: 0.5767 MB / 0.954 GB, free: 107 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0425/2.87, allocations: 19.12 MB / 0.9727 GB, free: 87.92 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00944/2.879, allocations: 4.773 MB / 0.9773 GB, free: 83.11 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00333/2.882, allocations: 419.4 kB / 0.9777 GB, free: 82.71 MB / 0.5105 GB Notification: Performance of SimCode: time 1.232e-06/2.882, allocations: 0 / 0.9777 GB, free: 82.71 MB / 0.5105 GB Notification: Performance of Templates: time 0.6248/3.507, allocations: 143.7 MB / 1.118 GB, free: 105 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/jenkins1/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