Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical") translateModel(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001569/0.001569, allocations: 117.6 kB / 17.79 MB, free: 5.125 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001874/0.001874, allocations: 200.7 kB / 18.74 MB, free: 4.184 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.617/1.617, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.229/0.229, allocations: 46.11 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001618/0.001618, allocations: 72.11 kB / 481.3 MB, free: 4.102 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4414/0.443, allocations: 62.44 MB / 0.531 GB, free: 13.62 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical): time 0.01579/0.4589, allocations: 15 MB / 0.5456 GB, free: 1.832 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0128/0.4717, allocations: 4.823 MB / 0.5503 GB, free: 13.87 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003518/0.4753, allocations: 91.75 kB / 0.5504 GB, free: 13.78 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006891/0.4823, allocations: 3.157 MB / 0.5535 GB, free: 10.61 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01026/0.4926, allocations: 2.517 MB / 0.556 GB, free: 8.082 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003248/0.4958, allocations: 0.9749 MB / 0.5569 GB, free: 7.105 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01172/0.5076, allocations: 7.046 MB / 0.5638 GB, free: 48 kB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008009/0.5156, allocations: 4.376 MB / 0.5681 GB, free: 11.61 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0052/0.5209, allocations: 2.219 MB / 0.5702 GB, free: 9.379 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005883/0.5268, allocations: 3.236 MB / 0.5734 GB, free: 6.133 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002053/0.5289, allocations: 484 kB / 0.5739 GB, free: 5.66 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004134/0.5331, allocations: 1.479 MB / 0.5753 GB, free: 4.18 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003963/0.5371, allocations: 2.84 MB / 0.5781 GB, free: 1.332 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006461/0.5436, allocations: 3.223 MB / 0.5812 GB, free: 14.09 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01718/0.5608, allocations: 10.42 MB / 0.5914 GB, free: 3.629 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.016e-05/0.5609, allocations: 0 / 0.5914 GB, free: 3.629 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.715e-06/0.5609, allocations: 0 / 0.5914 GB, free: 3.629 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0005235/0.5614, allocations: 0 / 0.5914 GB, free: 3.629 MB / 446.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.02332/0.5847, allocations: 7.444 MB / 0.5987 GB, free: 12.09 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.91e-05/0.5848, allocations: 8.031 kB / 0.5987 GB, free: 12.08 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01755/0.6024, allocations: 3.97 MB / 0.6026 GB, free: 8.098 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009805/0.6122, allocations: 4.151 MB / 0.6066 GB, free: 3.887 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003281/0.6126, allocations: 316.4 kB / 0.6069 GB, free: 3.574 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002367/0.615, allocations: 435.6 kB / 0.6073 GB, free: 3.148 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03187/0.6469, allocations: 15.73 MB / 0.6227 GB, free: 2.488 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002538/0.6472, allocations: 67.45 kB / 0.6228 GB, free: 2.422 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001456/0.6486, allocations: 203.8 kB / 0.623 GB, free: 2.223 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00499/0.6536, allocations: 3.216 MB / 0.6261 GB, free: 15 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.027/0.6807, allocations: 14.16 MB / 0.6399 GB, free: 0.8086 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07892/0.7596, allocations: 57.6 MB / 0.6962 GB, free: 5.648 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01466/0.7743, allocations: 6.609 MB / 0.7026 GB, free: 14.78 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005536/0.7799, allocations: 3.743 MB / 0.7063 GB, free: 11.02 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.418/1.198, allocations: 14.78 MB / 0.7207 GB, free: 160.4 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.585e-05/1.198, allocations: 71.5 kB / 0.7208 GB, free: 160.4 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=292): time 1.401e-05/1.198, allocations: 0 / 0.7208 GB, free: 160.4 MB / 0.5606 GB Notification: Performance of matching and sorting (n=342): time 0.1412/1.339, allocations: 42.81 MB / 0.7626 GB, free: 134.2 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.396e-05/1.34, allocations: 221.9 kB / 0.7628 GB, free: 134 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007295/1.347, allocations: 5.468 MB / 0.7681 GB, free: 128.6 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0009965/1.348, allocations: 73.7 kB / 0.7682 GB, free: 128.6 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.002419/1.35, allocations: 4.524 MB / 0.7726 GB, free: 124.5 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001643/1.352, allocations: 1.317 MB / 0.7739 GB, free: 123.2 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00251/1.354, allocations: 1.873 MB / 0.7758 GB, free: 121.3 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 6.964e-05/1.355, allocations: 301.1 kB / 0.776 GB, free: 121 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005498/1.36, allocations: 4.839 MB / 0.7808 GB, free: 116.1 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007431/1.367, allocations: 9.825 MB / 0.7904 GB, free: 103.9 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01466/1.382, allocations: 15.62 MB / 0.8056 GB, free: 85.79 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001222/1.382, allocations: 48 kB / 0.8057 GB, free: 85.75 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1190) (initialization): time 0.04216/1.424, allocations: 19.64 MB / 0.8248 GB, free: 66.06 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001151/1.425, allocations: 80 kB / 0.8249 GB, free: 65.98 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001846/1.425, allocations: 172 kB / 0.8251 GB, free: 65.81 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02224/1.447, allocations: 5.946 MB / 0.8309 GB, free: 59.86 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007101/1.454, allocations: 2.125 MB / 0.833 GB, free: 57.73 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02811/1.482, allocations: 26.18 MB / 0.8585 GB, free: 31.27 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007763/1.49, allocations: 0.5618 MB / 0.8591 GB, free: 30.7 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001423/1.492, allocations: 0.507 MB / 0.8596 GB, free: 30.2 MB / 0.5606 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.004829/1.496, allocations: 3.094 MB / 0.8626 GB, free: 27.09 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009945/1.497, allocations: 0.5122 MB / 0.8631 GB, free: 26.58 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02941/1.527, allocations: 13.02 MB / 0.8758 GB, free: 13.49 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001068/1.527, allocations: 55.98 kB / 0.8759 GB, free: 13.43 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.253e-05/1.527, allocations: 12 kB / 0.8759 GB, free: 13.42 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.401e-05/1.527, allocations: 15.94 kB / 0.8759 GB, free: 13.41 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05226/1.579, allocations: 24.61 MB / 0.8999 GB, free: 4.301 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.665e-05/1.579, allocations: 4 kB / 0.8999 GB, free: 4.297 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00349/1.583, allocations: 0.5811 MB / 0.9005 GB, free: 3.715 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02031/1.603, allocations: 4.966 MB / 0.9053 GB, free: 14.74 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008638/1.604, allocations: 63.66 kB / 0.9054 GB, free: 14.68 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02851/1.633, allocations: 21.35 MB / 0.9263 GB, free: 9.047 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.144e-06/1.633, allocations: 7.938 kB / 0.9263 GB, free: 9.039 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04075/1.673, allocations: 17.61 MB / 0.9435 GB, free: 7.266 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001762/1.675, allocations: 0.56 MB / 0.944 GB, free: 6.684 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001457/1.677, allocations: 55.98 kB / 0.9441 GB, free: 6.629 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003417/1.68, allocations: 263.6 kB / 0.9443 GB, free: 6.371 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008541/1.681, allocations: 195.5 kB / 0.9445 GB, free: 6.184 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003014/1.681, allocations: 91.41 kB / 0.9446 GB, free: 6.098 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.00688/1.688, allocations: 3.394 MB / 0.9479 GB, free: 2.723 MB / 0.6231 GB Notification: Performance of sort global known variables: time 3.71e-07/1.688, allocations: 0 / 0.9479 GB, free: 2.723 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.3392/2.027, allocations: 1.736 MB / 0.9496 GB, free: 207.2 MB / 0.6231 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.001059/2.029, allocations: 214.5 kB / 0.9498 GB, free: 207.1 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.01791/2.046, allocations: 11.05 MB / 0.9606 GB, free: 204.8 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 1.372e-05/2.047, allocations: 3.594 kB / 0.9606 GB, free: 204.8 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.005715/2.052, allocations: 4.13 MB / 0.9646 GB, free: 203 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004009/2.056, allocations: 0.6155 MB / 0.9652 GB, free: 202.7 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02711/2.083, allocations: 16.28 MB / 0.9811 GB, free: 195.9 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005163/2.089, allocations: 4.618 MB / 0.9856 GB, free: 192.9 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.005986/2.095, allocations: 2.977 MB / 0.9885 GB, free: 191.2 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001347/2.096, allocations: 355 kB / 0.9889 GB, free: 190.8 MB / 0.6231 GB Notification: Performance of SimCode: time 1.202e-06/2.096, allocations: 3.938 kB / 0.9889 GB, free: 190.8 MB / 0.6231 GB Notification: Performance of Templates: time 0.1069/2.203, allocations: 76.98 MB / 1.064 GB, free: 115.6 MB / 0.6231 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/FourbarVariants/UniversalSpherical/UniversalSpherical.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches