Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.UniversalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical") translateModel(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001374/0.001374, allocations: 106.3 kB / 17.98 MB, free: 5.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001259/0.001259, allocations: 193.3 kB / 18.91 MB, free: 4.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.332/1.332, allocations: 222.9 MB / 242.6 MB, free: 13.74 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2148/0.2148, allocations: 44.18 MB / 336.9 MB, free: 2.734 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001209/0.001209, allocations: 61.34 kB / 408.5 MB, free: 27.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1058/0.107, allocations: 60.83 MB / 469.4 MB, free: 14.73 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical): time 0.2567/0.3637, allocations: 53.44 MB / 0.5106 GB, free: 10.27 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02291/0.3867, allocations: 11.11 MB / 0.5214 GB, free: 8.645 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01088/0.3976, allocations: 230.1 kB / 0.5216 GB, free: 8.609 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006305/0.4039, allocations: 3.03 MB / 0.5246 GB, free: 7.727 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007062/0.4111, allocations: 2.379 MB / 0.5269 GB, free: 6.945 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002366/0.4135, allocations: 0.9388 MB / 0.5278 GB, free: 6.621 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.009097/0.4226, allocations: 7.374 MB / 0.535 GB, free: 3.66 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005441/0.428, allocations: 4.589 MB / 0.5395 GB, free: 1.039 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00368/0.4317, allocations: 2.268 MB / 0.5417 GB, free: 15.91 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00492/0.4367, allocations: 3.592 MB / 0.5452 GB, free: 14.04 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00161/0.4383, allocations: 485.2 kB / 0.5457 GB, free: 13.66 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003781/0.4421, allocations: 1.523 MB / 0.5472 GB, free: 12.2 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003672/0.4458, allocations: 2.907 MB / 0.55 GB, free: 9.293 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005078/0.4509, allocations: 3.281 MB / 0.5532 GB, free: 6.004 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009238/0.4601, allocations: 8.237 MB / 0.5613 GB, free: 14 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.263e-06/0.4602, allocations: 0 / 0.5613 GB, free: 14 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.4602, allocations: 0 / 0.5613 GB, free: 14 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0003024/0.4605, allocations: 0 / 0.5613 GB, free: 14 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: 2242 * Number of variables: 2242 Notification: Performance of Generate backend data structure: time 0.01723/0.4777, allocations: 7.33 MB / 0.5684 GB, free: 6.742 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.602e-05/0.4778, allocations: 8.031 kB / 0.5684 GB, free: 6.734 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01549/0.4933, allocations: 3.923 MB / 0.5723 GB, free: 2.801 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008943/0.5023, allocations: 4.114 MB / 0.5763 GB, free: 14.67 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002606/0.5026, allocations: 320.2 kB / 0.5766 GB, free: 14.41 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001463/0.5041, allocations: 434.8 kB / 0.577 GB, free: 14.04 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02681/0.5309, allocations: 15.73 MB / 0.5924 GB, free: 13.55 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001553/0.5311, allocations: 55.44 kB / 0.5924 GB, free: 13.5 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006559/0.5317, allocations: 212.9 kB / 0.5926 GB, free: 13.35 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004796/0.5365, allocations: 3.217 MB / 0.5958 GB, free: 10.15 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02643/0.563, allocations: 14.16 MB / 0.6096 GB, free: 11.96 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07787/0.6409, allocations: 57.78 MB / 0.666 GB, free: 0.9297 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01401/0.655, allocations: 6.6 MB / 0.6725 GB, free: 10.09 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005201/0.6602, allocations: 3.743 MB / 0.6761 GB, free: 6.328 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02352/0.6838, allocations: 14.78 MB / 0.6906 GB, free: 7.098 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.486e-05/0.6839, allocations: 64.48 kB / 0.6906 GB, free: 7.027 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=292): time 5.992e-06/0.6839, allocations: 0 / 0.6906 GB, free: 7.027 MB / 0.5294 GB Notification: Performance of matching and sorting (n=342): time 0.3696/1.054, allocations: 42.49 MB / 0.7321 GB, free: 197.1 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.504e-05/1.054, allocations: 213.5 kB / 0.7323 GB, free: 196.9 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008016/1.062, allocations: 5.467 MB / 0.7377 GB, free: 195 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0009804/1.063, allocations: 72.3 kB / 0.7377 GB, free: 194.9 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.002806/1.066, allocations: 4.354 MB / 0.742 GB, free: 191.6 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.002052/1.068, allocations: 1.264 MB / 0.7432 GB, free: 190.6 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003988/1.072, allocations: 1.857 MB / 0.745 GB, free: 189.8 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 5.949e-05/1.072, allocations: 301.1 kB / 0.7453 GB, free: 189.5 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006872/1.079, allocations: 4.841 MB / 0.7501 GB, free: 187.7 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009011/1.088, allocations: 9.82 MB / 0.7596 GB, free: 178.6 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0154/1.103, allocations: 15.63 MB / 0.7749 GB, free: 161.6 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001616/1.103, allocations: 48 kB / 0.7749 GB, free: 161.6 MB / 0.545 GB Notification: Performance of matching and sorting (n=1190) (initialization): time 0.04207/1.145, allocations: 19.61 MB / 0.7941 GB, free: 141.9 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.000105/1.145, allocations: 80 kB / 0.7942 GB, free: 141.9 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001852/1.146, allocations: 172 kB / 0.7943 GB, free: 141.7 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02035/1.166, allocations: 5.946 MB / 0.8002 GB, free: 135.7 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007064/1.173, allocations: 2.129 MB / 0.8022 GB, free: 133.6 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0294/1.203, allocations: 26.16 MB / 0.8278 GB, free: 107.2 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008936/1.212, allocations: 0.5569 MB / 0.8283 GB, free: 106.6 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001752/1.213, allocations: 0.5117 MB / 0.8288 GB, free: 106.1 MB / 0.545 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 (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,42,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.006102/1.22, allocations: 3.103 MB / 0.8319 GB, free: 103 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001585/1.221, allocations: 0.4897 MB / 0.8323 GB, free: 102.5 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03665/1.258, allocations: 13.01 MB / 0.845 GB, free: 89.41 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.082e-05/1.258, allocations: 55.98 kB / 0.8451 GB, free: 89.35 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.192e-05/1.258, allocations: 8 kB / 0.8451 GB, free: 89.34 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.241e-05/1.258, allocations: 11.95 kB / 0.8451 GB, free: 89.33 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04813/1.306, allocations: 24.68 MB / 0.8692 GB, free: 64.2 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.104e-05/1.306, allocations: 8 kB / 0.8692 GB, free: 64.19 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003114/1.309, allocations: 0.5841 MB / 0.8698 GB, free: 63.61 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01802/1.327, allocations: 4.966 MB / 0.8746 GB, free: 58.63 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008976/1.328, allocations: 67.92 kB / 0.8747 GB, free: 58.57 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02258/1.351, allocations: 21.34 MB / 0.8956 GB, free: 36.94 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.099e-06/1.351, allocations: 4 kB / 0.8956 GB, free: 36.94 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2585/1.609, allocations: 17.59 MB / 0.9127 GB, free: 185.7 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00172/1.611, allocations: 0.5287 MB / 0.9132 GB, free: 185.6 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001739/1.613, allocations: 60.45 kB / 0.9133 GB, free: 185.6 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004309/1.617, allocations: 258.1 kB / 0.9136 GB, free: 185.6 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001394/1.619, allocations: 200.9 kB / 0.9137 GB, free: 185.6 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003988/1.619, allocations: 89.36 kB / 0.9138 GB, free: 185.6 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.007843/1.627, allocations: 3.397 MB / 0.9171 GB, free: 185.4 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.032e-06/1.627, allocations: 0 / 0.9171 GB, free: 185.4 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.01245/1.64, allocations: 1.768 MB / 0.9189 GB, free: 185.4 MB / 0.545 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 (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,38,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00117/1.641, allocations: 201.6 kB / 0.9191 GB, free: 185.3 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.02635/1.667, allocations: 15.92 MB / 0.9346 GB, free: 181.7 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.135e-05/1.667, allocations: 0 / 0.9346 GB, free: 181.7 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.005588/1.673, allocations: 4.136 MB / 0.9387 GB, free: 180 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004621/1.677, allocations: 0.6119 MB / 0.9393 GB, free: 179.7 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02501/1.702, allocations: 19.84 MB / 0.9586 GB, free: 166.1 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004494/1.707, allocations: 4.598 MB / 0.9631 GB, free: 162.6 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002031/1.709, allocations: 418.3 kB / 0.9635 GB, free: 162.2 MB / 0.545 GB Notification: Performance of SimCode: time 1.242e-06/1.709, allocations: 0 / 0.9635 GB, free: 162.2 MB / 0.545 GB Notification: Performance of Templates: time 0.4046/2.114, allocations: 149.9 MB / 1.11 GB, free: 179.2 MB / 0.545 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/FourbarVariants/UniversalSpherical/UniversalSpherical.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches