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.001266/0.001266, allocations: 109.6 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001312/0.001312, allocations: 208 kB / 19.25 MB, free: 3.898 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.442/1.442, allocations: 227.4 MB / 247.5 MB, free: 10.57 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2276/0.2276, allocations: 46.12 MB / 344.8 MB, free: 11.54 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002222/0.002222, allocations: 76.38 kB / 418.3 MB, free: 19.69 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1227/0.1249, allocations: 62.45 MB / 480.8 MB, free: 5.223 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical): time 0.01727/0.1422, allocations: 14.99 MB / 495.8 MB, free: 6.16 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0107/0.153, allocations: 4.826 MB / 0.4888 GB, free: 1.324 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002469/0.1555, allocations: 91.75 kB / 0.4889 GB, free: 1.234 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006684/0.1622, allocations: 3.161 MB / 0.492 GB, free: 14.06 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007265/0.1695, allocations: 2.51 MB / 0.4945 GB, free: 11.54 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002648/0.1722, allocations: 0.9866 MB / 0.4954 GB, free: 10.55 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01209/0.1843, allocations: 7.045 MB / 0.5023 GB, free: 3.496 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2209/0.4053, allocations: 4.365 MB / 0.5066 GB, free: 14.54 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004765/0.4101, allocations: 2.214 MB / 0.5087 GB, free: 14.43 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006433/0.4166, allocations: 3.247 MB / 0.5119 GB, free: 14.1 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002465/0.4191, allocations: 485.7 kB / 0.5124 GB, free: 14.1 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004578/0.4237, allocations: 1.477 MB / 0.5138 GB, free: 14.1 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005084/0.4288, allocations: 2.837 MB / 0.5166 GB, free: 13.81 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006761/0.4356, allocations: 3.22 MB / 0.5197 GB, free: 12.65 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0134/0.449, allocations: 10 MB / 0.5295 GB, free: 9.23 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.203e-06/0.449, allocations: 0.5625 kB / 0.5295 GB, free: 9.23 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.449, allocations: 1.375 kB / 0.5295 GB, free: 9.23 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004059/0.4494, allocations: 0.9688 kB / 0.5295 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.02115/0.4706, allocations: 7.281 MB / 0.5366 GB, free: 4.531 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.089e-05/0.4707, allocations: 8.844 kB / 0.5366 GB, free: 4.531 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01619/0.4869, allocations: 3.926 MB / 0.5405 GB, free: 2.52 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009358/0.4963, allocations: 4.066 MB / 0.5444 GB, free: 264 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002452/0.4965, allocations: 316 kB / 0.5447 GB, free: 168 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002119/0.4987, allocations: 438.7 kB / 0.5451 GB, free: 68 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03045/0.5291, allocations: 15.73 MB / 0.5605 GB, free: 0.5352 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001774/0.5294, allocations: 61.58 kB / 0.5606 GB, free: 0.5 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007989/0.5302, allocations: 202.4 kB / 0.5608 GB, free: 368 kB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005615/0.5358, allocations: 3.212 MB / 0.5639 GB, free: 13.19 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03068/0.5665, allocations: 14.18 MB / 0.5777 GB, free: 15.24 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08546/0.652, allocations: 57.76 MB / 0.6341 GB, free: 4.723 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01646/0.6685, allocations: 6.6 MB / 0.6406 GB, free: 13.89 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006298/0.6749, allocations: 3.757 MB / 0.6443 GB, free: 10.12 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02607/0.701, allocations: 14.77 MB / 0.6587 GB, free: 10.92 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.933e-05/0.7011, allocations: 79.31 kB / 0.6588 GB, free: 10.84 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=292): time 5.911e-06/0.7011, allocations: 0 / 0.6588 GB, free: 10.84 MB / 0.4981 GB Notification: Performance of matching and sorting (n=342): time 0.1687/0.8698, allocations: 42.48 MB / 0.7002 GB, free: 436 kB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002852/0.8701, allocations: 212.2 kB / 0.7004 GB, free: 180 kB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01113/0.8813, allocations: 5.458 MB / 0.7058 GB, free: 10.73 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.001041/0.8824, allocations: 73.22 kB / 0.7058 GB, free: 10.66 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.004993/0.8874, allocations: 4.342 MB / 0.7101 GB, free: 6.316 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.00257/0.89, allocations: 1.271 MB / 0.7113 GB, free: 5.055 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004464/0.8944, allocations: 1.851 MB / 0.7131 GB, free: 3.191 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001736/0.8946, allocations: 309.1 kB / 0.7134 GB, free: 2.887 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2695/1.164, allocations: 4.833 MB / 0.7181 GB, free: 191.3 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01116/1.175, allocations: 9.827 MB / 0.7277 GB, free: 183.6 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01772/1.193, allocations: 15.63 MB / 0.743 GB, free: 172.1 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002629/1.193, allocations: 46.94 kB / 0.743 GB, free: 172.1 MB / 0.545 GB Notification: Performance of matching and sorting (n=1190) (initialization): time 0.04461/1.238, allocations: 19.62 MB / 0.7622 GB, free: 165.9 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001144/1.238, allocations: 83.84 kB / 0.7623 GB, free: 165.8 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000215/1.238, allocations: 173.3 kB / 0.7625 GB, free: 165.6 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02232/1.261, allocations: 5.944 MB / 0.7683 GB, free: 162.1 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007471/1.268, allocations: 2.127 MB / 0.7703 GB, free: 160.2 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02734/1.296, allocations: 26.14 MB / 0.7959 GB, free: 134.1 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008901/1.305, allocations: 0.5612 MB / 0.7964 GB, free: 133.6 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002197/1.307, allocations: 0.5171 MB / 0.7969 GB, free: 133.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.006919/1.314, allocations: 3.093 MB / 0.7999 GB, free: 130 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001192/1.315, allocations: 498.6 kB / 0.8004 GB, free: 129.8 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02962/1.345, allocations: 13.02 MB / 0.8131 GB, free: 116.7 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.578e-05/1.345, allocations: 57 kB / 0.8132 GB, free: 116.7 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.744e-05/1.345, allocations: 12 kB / 0.8132 GB, free: 116.6 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.175e-05/1.345, allocations: 19.22 kB / 0.8132 GB, free: 116.6 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04612/1.391, allocations: 24.69 MB / 0.8373 GB, free: 91.56 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.056e-05/1.391, allocations: 4 kB / 0.8373 GB, free: 91.55 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003079/1.394, allocations: 0.5862 MB / 0.8379 GB, free: 90.97 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01905/1.413, allocations: 4.974 MB / 0.8427 GB, free: 85.98 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007922/1.414, allocations: 55.98 kB / 0.8428 GB, free: 85.93 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02224/1.436, allocations: 21.34 MB / 0.8636 GB, free: 64.39 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.841e-06/1.436, allocations: 7.938 kB / 0.8637 GB, free: 64.38 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03309/1.469, allocations: 17.58 MB / 0.8808 GB, free: 46.73 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001719/1.471, allocations: 0.5336 MB / 0.8813 GB, free: 46.17 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001554/1.473, allocations: 52 kB / 0.8814 GB, free: 46.12 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003406/1.476, allocations: 270.8 kB / 0.8816 GB, free: 45.86 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008277/1.477, allocations: 196.4 kB / 0.8818 GB, free: 45.67 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000279/1.477, allocations: 87.98 kB / 0.8819 GB, free: 45.58 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.005134/1.482, allocations: 3.397 MB / 0.8852 GB, free: 42.21 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.282e-06/1.482, allocations: 0 / 0.8852 GB, free: 42.21 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.00884/1.491, allocations: 1.745 MB / 0.8869 GB, free: 40.47 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.0008834/1.492, allocations: 200.6 kB / 0.8871 GB, free: 40.27 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.02348/1.516, allocations: 15.92 MB / 0.9027 GB, free: 24.38 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.246e-05/1.516, allocations: 4 kB / 0.9027 GB, free: 24.38 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.005906/1.522, allocations: 4.14 MB / 0.9067 GB, free: 20.23 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006173/1.528, allocations: 0.6133 MB / 0.9073 GB, free: 19.63 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2559/1.784, allocations: 16.84 MB / 0.9238 GB, free: 178.6 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006972/1.791, allocations: 4.599 MB / 0.9283 GB, free: 177.8 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002184/1.793, allocations: 414.5 kB / 0.9287 GB, free: 177.8 MB / 0.545 GB Notification: Performance of SimCode: time 8.62e-07/1.793, allocations: 0 / 0.9287 GB, free: 177.8 MB / 0.545 GB Notification: Performance of Templates: time 0.1761/1.969, allocations: 149.7 MB / 1.075 GB, free: 47.61 MB / 0.545 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/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