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.001505/0.001505, allocations: 115.9 kB / 18.41 MB, free: 4.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001662/0.001663, allocations: 207.5 kB / 19.36 MB, free: 3.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.382/1.382, allocations: 227.4 MB / 247.5 MB, free: 10.33 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2186/0.2186, allocations: 46.1 MB / 344.9 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001354/0.001354, allocations: 79.75 kB / 419 MB, free: 19.03 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1398/0.1411, allocations: 62.45 MB / 481.5 MB, free: 4.547 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical): time 0.02367/0.1649, allocations: 14.99 MB / 496.5 MB, free: 5.488 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0148/0.1797, allocations: 4.826 MB / 0.4895 GB, free: 0.6484 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003757/0.1835, allocations: 91.75 kB / 0.4896 GB, free: 0.5586 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008619/0.1922, allocations: 3.157 MB / 0.4927 GB, free: 13.39 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009902/0.2022, allocations: 2.521 MB / 0.4952 GB, free: 10.86 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00281/0.205, allocations: 0.9788 MB / 0.4961 GB, free: 9.883 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01093/0.216, allocations: 7.047 MB / 0.503 GB, free: 2.824 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2636/0.4797, allocations: 4.35 MB / 0.5072 GB, free: 14.96 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004717/0.4844, allocations: 2.224 MB / 0.5094 GB, free: 14.82 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00537/0.4899, allocations: 3.238 MB / 0.5126 GB, free: 14.5 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001952/0.4918, allocations: 486.3 kB / 0.513 GB, free: 14.5 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003408/0.4953, allocations: 1.476 MB / 0.5145 GB, free: 14.5 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003447/0.4987, allocations: 2.846 MB / 0.5173 GB, free: 14.2 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003818/0.5026, allocations: 3.221 MB / 0.5204 GB, free: 13.04 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01043/0.513, allocations: 10.37 MB / 0.5305 GB, free: 9.23 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.513, allocations: 0.6562 kB / 0.5305 GB, free: 9.23 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.993e-06/0.513, allocations: 1.375 kB / 0.5305 GB, free: 9.23 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003532/0.5134, allocations: 0.5938 kB / 0.5305 GB, free: 9.23 MB / 382.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.01572/0.5291, allocations: 7.271 MB / 0.5376 GB, free: 4.539 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.925e-05/0.5292, allocations: 9.625 kB / 0.5376 GB, free: 4.539 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01516/0.5444, allocations: 3.927 MB / 0.5415 GB, free: 2.531 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01159/0.556, allocations: 4.137 MB / 0.5455 GB, free: 236 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002017/0.5563, allocations: 323.8 kB / 0.5458 GB, free: 140 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001744/0.558, allocations: 431 kB / 0.5462 GB, free: 40 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02797/0.586, allocations: 15.74 MB / 0.5616 GB, free: 20 kB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002184/0.5863, allocations: 58.56 kB / 0.5617 GB, free: 15.98 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009845/0.5873, allocations: 204.5 kB / 0.5619 GB, free: 15.84 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004695/0.592, allocations: 3.215 MB / 0.565 GB, free: 12.68 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.028/0.62, allocations: 14.16 MB / 0.5788 GB, free: 14.73 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0797/0.6997, allocations: 57.49 MB / 0.635 GB, free: 4.477 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01395/0.7137, allocations: 6.599 MB / 0.6414 GB, free: 13.64 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00557/0.7193, allocations: 3.747 MB / 0.6451 GB, free: 9.879 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02525/0.7446, allocations: 14.78 MB / 0.6595 GB, free: 10.66 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.329e-05/0.7447, allocations: 59.75 kB / 0.6596 GB, free: 10.6 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=292): time 8.025e-06/0.7447, allocations: 0 / 0.6596 GB, free: 10.6 MB / 0.4981 GB Notification: Performance of matching and sorting (n=342): time 0.1418/0.8865, allocations: 42.48 MB / 0.7011 GB, free: 192 kB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001548/0.8867, allocations: 212.2 kB / 0.7013 GB, free: 15.94 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009422/0.8961, allocations: 5.454 MB / 0.7066 GB, free: 10.5 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.001006/0.8972, allocations: 77.7 kB / 0.7067 GB, free: 10.41 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.003498/0.9007, allocations: 4.35 MB / 0.7109 GB, free: 6.07 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.002224/0.9029, allocations: 1.265 MB / 0.7121 GB, free: 4.816 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003587/0.9065, allocations: 1.85 MB / 0.7139 GB, free: 2.953 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001393/0.9067, allocations: 313 kB / 0.7142 GB, free: 2.645 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2975/1.204, allocations: 4.833 MB / 0.719 GB, free: 174.3 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0149/1.219, allocations: 9.826 MB / 0.7286 GB, free: 168 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01969/1.239, allocations: 15.63 MB / 0.7438 GB, free: 158.3 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003069/1.239, allocations: 47.56 kB / 0.7439 GB, free: 158.3 MB / 0.545 GB Notification: Performance of matching and sorting (n=1190) (initialization): time 0.04677/1.286, allocations: 19.62 MB / 0.763 GB, free: 152.7 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001457/1.286, allocations: 78.5 kB / 0.7631 GB, free: 152.7 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002343/1.286, allocations: 175.1 kB / 0.7633 GB, free: 152.7 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02062/1.307, allocations: 5.947 MB / 0.7691 GB, free: 149.1 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007438/1.315, allocations: 2.125 MB / 0.7711 GB, free: 147 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0277/1.342, allocations: 26.15 MB / 0.7967 GB, free: 120.7 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009316/1.352, allocations: 0.5551 MB / 0.7972 GB, free: 120.1 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002047/1.354, allocations: 0.5156 MB / 0.7977 GB, free: 119.6 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.006745/1.361, allocations: 3.103 MB / 0.8008 GB, free: 116.6 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001229/1.362, allocations: 0.4901 MB / 0.8012 GB, free: 116.4 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02702/1.389, allocations: 13.01 MB / 0.8139 GB, free: 103.3 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.278e-05/1.389, allocations: 54.64 kB / 0.814 GB, free: 103.2 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.09e-05/1.389, allocations: 8 kB / 0.814 GB, free: 103.2 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.341e-05/1.389, allocations: 15.89 kB / 0.814 GB, free: 103.2 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04685/1.436, allocations: 24.63 MB / 0.8381 GB, free: 78.2 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.658e-05/1.436, allocations: 4 kB / 0.8381 GB, free: 78.19 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003117/1.439, allocations: 0.5811 MB / 0.8386 GB, free: 77.61 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0171/1.456, allocations: 4.969 MB / 0.8435 GB, free: 72.63 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009078/1.457, allocations: 59.92 kB / 0.8435 GB, free: 72.57 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02268/1.48, allocations: 21.34 MB / 0.8644 GB, free: 51.04 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.206e-06/1.48, allocations: 7.938 kB / 0.8644 GB, free: 51.03 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03255/1.513, allocations: 17.58 MB / 0.8816 GB, free: 33.36 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001873/1.514, allocations: 0.5405 MB / 0.8821 GB, free: 32.8 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001448/1.516, allocations: 55.83 kB / 0.8821 GB, free: 32.75 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003013/1.519, allocations: 263.6 kB / 0.8824 GB, free: 32.49 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008838/1.52, allocations: 193.7 kB / 0.8826 GB, free: 32.3 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002998/1.52, allocations: 87.98 kB / 0.8827 GB, free: 32.22 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.005636/1.526, allocations: 3.394 MB / 0.886 GB, free: 28.84 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.1e-07/1.526, allocations: 0 / 0.886 GB, free: 28.84 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.009658/1.535, allocations: 1.743 MB / 0.8877 GB, free: 27.11 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.0008616/1.536, allocations: 209.1 kB / 0.8879 GB, free: 26.91 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01608/1.552, allocations: 11.04 MB / 0.8987 GB, free: 15.88 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.188e-05/1.552, allocations: 0 / 0.8987 GB, free: 15.88 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.00552/1.558, allocations: 4.133 MB / 0.9027 GB, free: 11.74 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00426/1.562, allocations: 0.6106 MB / 0.9033 GB, free: 11.15 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02856/1.591, allocations: 16.07 MB / 0.919 GB, free: 10.98 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2338/1.825, allocations: 4.611 MB / 0.9235 GB, free: 193.1 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.008047/1.833, allocations: 2.976 MB / 0.9264 GB, free: 193 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002162/1.835, allocations: 352.7 kB / 0.9267 GB, free: 193 MB / 0.5606 GB Notification: Performance of SimCode: time 8.81e-07/1.835, allocations: 0.5312 kB / 0.9267 GB, free: 193 MB / 0.5606 GB Notification: Performance of Templates: time 0.12/1.955, allocations: 73.97 MB / 0.999 GB, free: 142.8 MB / 0.5606 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 -s cvode -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/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_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches