Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/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 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical") translateModel(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009315/0.0009313, allocations: 88.19 kB / 15.7 MB, free: 460 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001308/0.001308, allocations: 175.8 kB / 16.58 MB, free: 6.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.884/1.884, allocations: 205.4 MB / 222.8 MB, free: 5.648 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4314/0.4314, allocations: 43.58 MB / 314.6 MB, free: 8.777 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00053/0.00053, allocations: 18.97 kB / 383.9 MB, free: 8.012 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1451/0.1456, allocations: 58.88 MB / 442.8 MB, free: 13.02 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical): time 0.358/0.5036, allocations: 42.62 MB / 485.4 MB, free: 24.83 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02675/0.5304, allocations: 9.595 MB / 495 MB, free: 18.33 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01325/0.5437, allocations: 200.3 kB / 495.2 MB, free: 18.3 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008375/0.5521, allocations: 2.187 MB / 497.4 MB, free: 17.52 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02203/0.5742, allocations: 6.606 MB / 0.4922 GB, free: 14.76 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004458/0.5787, allocations: 0.7807 MB / 0.493 GB, free: 14.47 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.04795/0.6266, allocations: 35.12 MB / 0.5273 GB, free: 9.699 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008708/0.6354, allocations: 4.273 MB / 0.5314 GB, free: 5.418 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004479/0.6399, allocations: 1.444 MB / 0.5329 GB, free: 3.969 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004948/0.6449, allocations: 2.411 MB / 0.5352 GB, free: 1.551 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001547/0.6465, allocations: 179.9 kB / 0.5354 GB, free: 1.375 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003605/0.6501, allocations: 1.077 MB / 0.5364 GB, free: 304 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003059/0.6532, allocations: 1.952 MB / 0.5383 GB, free: 14.34 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001625/0.6548, allocations: 0.8856 MB / 0.5392 GB, free: 13.45 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007113/0.662, allocations: 6.028 MB / 0.5451 GB, free: 7.402 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.073e-06/0.662, allocations: 0 / 0.5451 GB, free: 7.402 MB / 414.1 MB Notification: Performance of FrontEnd: time 4.428e-06/0.662, allocations: 0 / 0.5451 GB, free: 7.402 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0002443/0.6623, allocations: 3.938 kB / 0.5451 GB, free: 7.398 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1538 * Number of variables: 1538 Notification: Performance of Generate backend data structure: time 0.01068/0.6729, allocations: 4.669 MB / 0.5496 GB, free: 2.656 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.861e-05/0.673, allocations: 8.562 kB / 0.5497 GB, free: 2.648 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01019/0.6832, allocations: 2.521 MB / 0.5521 GB, free: 120 kB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008166/0.6914, allocations: 3.41 MB / 0.5554 GB, free: 12.65 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001952/0.6917, allocations: 242.1 kB / 0.5557 GB, free: 12.41 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001134/0.6928, allocations: 335.7 kB / 0.556 GB, free: 12.09 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02223/0.715, allocations: 10.88 MB / 0.5666 GB, free: 476 kB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001705/0.7152, allocations: 47.59 kB / 0.5667 GB, free: 428 kB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004665/0.7157, allocations: 159.8 kB / 0.5668 GB, free: 268 kB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003042/0.7188, allocations: 1.994 MB / 0.5688 GB, free: 14.27 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02089/0.7397, allocations: 9.436 MB / 0.578 GB, free: 4.809 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05797/0.7977, allocations: 41.22 MB / 0.6182 GB, free: 10.4 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01081/0.8086, allocations: 4.283 MB / 0.6224 GB, free: 5.973 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003157/0.8117, allocations: 1.916 MB / 0.6243 GB, free: 4.051 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3144/1.126, allocations: 7.622 MB / 0.6317 GB, free: 141.5 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.546e-05/1.126, allocations: 54.83 kB / 0.6318 GB, free: 141.5 MB / 494.1 MB Notification: Performance of pre-optimization done (n=180): time 5.17e-06/1.126, allocations: 0 / 0.6318 GB, free: 141.5 MB / 494.1 MB Notification: Performance of matching and sorting (n=236): time 0.1463/1.273, allocations: 41.46 MB / 0.6723 GB, free: 133.6 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001047/1.273, allocations: 207.5 kB / 0.6725 GB, free: 133.3 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008707/1.281, allocations: 4.31 MB / 0.6767 GB, free: 131.1 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008529/1.282, allocations: 57.33 kB / 0.6767 GB, free: 131 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002627/1.285, allocations: 3.174 MB / 0.6798 GB, free: 128.2 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001874/1.287, allocations: 0.8787 MB / 0.6807 GB, free: 127.5 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005356/1.287, allocations: 134 kB / 0.6808 GB, free: 127.4 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0004145/1.288, allocations: 0.5772 MB / 0.6814 GB, free: 126.9 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006402/1.294, allocations: 3.604 MB / 0.6849 GB, free: 124.9 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0084/1.303, allocations: 7.271 MB / 0.692 GB, free: 115.8 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009058/1.312, allocations: 4.962 MB / 0.6968 GB, free: 110.9 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000163/1.312, allocations: 36 kB / 0.6969 GB, free: 110.8 MB / 494.1 MB Notification: Performance of matching and sorting (n=856) (initialization): time 0.04332/1.355, allocations: 16.17 MB / 0.7127 GB, free: 94.64 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002873/1.356, allocations: 60 kB / 0.7127 GB, free: 94.58 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004127/1.356, allocations: 132 kB / 0.7129 GB, free: 94.45 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02005/1.376, allocations: 6.269 MB / 0.719 GB, free: 88.17 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005393/1.382, allocations: 1.497 MB / 0.7204 GB, free: 86.67 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03123/1.413, allocations: 26.16 MB / 0.746 GB, free: 60.25 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00854/1.421, allocations: 411.4 kB / 0.7464 GB, free: 59.85 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001652/1.423, allocations: 388 kB / 0.7467 GB, free: 59.47 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 582 * Number of states: 0 () * Number of discrete variables: 42 (b3.color[3],b3.color[2],b3.color[1],sphericalSpherical.massColor[3],sphericalSpherical.massColor[2],sphericalSpherical.massColor[1],sphericalSpherical.sphereColor[3],sphericalSpherical.sphereColor[2],sphericalSpherical.sphereColor[1],sphericalSpherical.rodColor[3],sphericalSpherical.rodColor[2],sphericalSpherical.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 (779): * Single equations (assignments): 774 * Array equations: 3 * 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 {(3,100.0%) 51} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007175/1.43, allocations: 2.218 MB / 0.7489 GB, free: 57.24 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001791/1.432, allocations: 406.2 kB / 0.7493 GB, free: 56.84 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02579/1.458, allocations: 11.3 MB / 0.7603 GB, free: 45.51 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.078e-05/1.458, allocations: 26.66 kB / 0.7604 GB, free: 45.49 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.895e-05/1.458, allocations: 12 kB / 0.7604 GB, free: 45.48 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.843e-05/1.458, allocations: 11.95 kB / 0.7604 GB, free: 45.46 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04707/1.505, allocations: 20.75 MB / 0.7806 GB, free: 24.25 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.656e-05/1.505, allocations: 12.69 kB / 0.7807 GB, free: 24.24 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00318/1.509, allocations: 387.4 kB / 0.781 GB, free: 23.86 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02701/1.536, allocations: 5.344 MB / 0.7862 GB, free: 18.51 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008584/1.537, allocations: 40 kB / 0.7863 GB, free: 18.47 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03305/1.57, allocations: 21.2 MB / 0.807 GB, free: 13 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.461e-05/1.57, allocations: 11.94 kB / 0.807 GB, free: 12.98 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3532/1.923, allocations: 14.6 MB / 0.8213 GB, free: 142.9 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003494/1.927, allocations: 0.9907 MB / 0.8222 GB, free: 142.8 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001329/1.928, allocations: 46.38 kB / 0.8223 GB, free: 142.8 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002646/1.931, allocations: 179.3 kB / 0.8224 GB, free: 142.8 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006656/1.931, allocations: 153.3 kB / 0.8226 GB, free: 142.8 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002073/1.931, allocations: 66.98 kB / 0.8227 GB, free: 142.8 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.004349/1.936, allocations: 2.703 MB / 0.8253 GB, free: 142.6 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.1e-07/1.936, allocations: 0 / 0.8253 GB, free: 142.6 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.007971/1.944, allocations: 1.367 MB / 0.8266 GB, free: 142.6 MB / 0.4981 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 (167): * Single equations (assignments): 162 * Array equations: 3 * 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 {(3,100.0%) 45} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006745/1.944, allocations: 187.7 kB / 0.8268 GB, free: 142.5 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.01301/1.957, allocations: 8.28 MB / 0.8349 GB, free: 139.3 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.595e-05/1.958, allocations: 0 / 0.8349 GB, free: 139.3 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.005685/1.963, allocations: 3.215 MB / 0.838 GB, free: 137.9 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004111/1.967, allocations: 489.9 kB / 0.8385 GB, free: 137.7 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02903/1.996, allocations: 13.62 MB / 0.8518 GB, free: 131 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006145/2.003, allocations: 3.519 MB / 0.8552 GB, free: 129.7 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.006684/2.009, allocations: 1.956 MB / 0.8571 GB, free: 129.6 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001215/2.011, allocations: 276.3 kB / 0.8574 GB, free: 129.6 MB / 0.4981 GB Notification: Performance of SimCode: time 2.024e-06/2.011, allocations: 0 / 0.8574 GB, free: 129.6 MB / 0.4981 GB Notification: Performance of Templates: time 0.1043/2.115, allocations: 65.09 MB / 0.921 GB, free: 78.52 MB / 0.4981 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.sim & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/FourbarVariants/SphericalSpherical/SphericalSpherical.csv","../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches