Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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 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.UniversalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical") translateModel(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_3.2.3_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.00166/0.00166, allocations: 111.1 kB / 16.41 MB, free: 6.484 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.001835/0.001835, allocations: 189.5 kB / 17.34 MB, free: 5.766 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.633/1.633, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2326/0.2326, allocations: 43.53 MB / 314.1 MB, free: 468 kB / 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.001411/0.001411, allocations: 63.91 kB / 441.8 MB, free: 5.684 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1701/0.1715, allocations: 57.79 MB / 499.6 MB, free: 11.82 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical): time 0.01777/0.1894, allocations: 15.1 MB / 0.5026 GB, free: 12.65 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01298/0.2024, allocations: 4.831 MB / 0.5073 GB, free: 7.809 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004705/0.2071, allocations: 95.69 kB / 0.5074 GB, free: 7.715 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007388/0.2146, allocations: 3.161 MB / 0.5105 GB, free: 4.543 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009071/0.2237, allocations: 2.638 MB / 0.5131 GB, free: 1.895 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003033/0.2268, allocations: 0.9866 MB / 0.514 GB, free: 0.9062 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01408/0.2409, allocations: 6.647 MB / 0.5205 GB, free: 10.25 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009877/0.2508, allocations: 4.385 MB / 0.5248 GB, free: 5.789 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006513/0.2574, allocations: 2.246 MB / 0.527 GB, free: 3.535 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006935/0.2643, allocations: 3.267 MB / 0.5302 GB, free: 264 kB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.3428/0.6071, allocations: 484.7 kB / 0.5307 GB, free: 11.52 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005714/0.6129, allocations: 1.483 MB / 0.5321 GB, free: 11.52 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005089/0.618, allocations: 2.904 MB / 0.535 GB, free: 11.52 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01098/0.629, allocations: 3.26 MB / 0.5381 GB, free: 10.43 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02021/0.6493, allocations: 10.46 MB / 0.5483 GB, free: 8.895 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.624e-06/0.6493, allocations: 1.469 kB / 0.5483 GB, free: 8.895 MB / 414.1 MB Notification: Performance of FrontEnd: time 3.857e-06/0.6493, allocations: 0 / 0.5483 GB, free: 8.895 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0006351/0.65, allocations: 4.844 kB / 0.5484 GB, free: 8.895 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.03771/0.6877, allocations: 7.324 MB / 0.5555 GB, free: 6.195 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.559e-05/0.6878, allocations: 13.33 kB / 0.5555 GB, free: 6.191 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01889/0.7067, allocations: 3.928 MB / 0.5594 GB, free: 5.711 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01414/0.7209, allocations: 4.289 MB / 0.5635 GB, free: 3.465 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004605/0.7214, allocations: 317.3 kB / 0.5638 GB, free: 3.371 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003059/0.7245, allocations: 436.3 kB / 0.5643 GB, free: 3.273 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03531/0.7598, allocations: 15.73 MB / 0.5796 GB, free: 9.59 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002292/0.7601, allocations: 63.73 kB / 0.5797 GB, free: 9.555 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008059/0.7609, allocations: 205.2 kB / 0.5799 GB, free: 9.414 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00564/0.7665, allocations: 3.216 MB / 0.583 GB, free: 6.238 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03388/0.8004, allocations: 14.16 MB / 0.5968 GB, free: 8.301 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09888/0.8994, allocations: 57.51 MB / 0.653 GB, free: 14.04 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01563/0.9151, allocations: 6.598 MB / 0.6595 GB, free: 7.203 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005961/0.9211, allocations: 3.759 MB / 0.6631 GB, free: 3.434 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02844/0.9495, allocations: 14.77 MB / 0.6776 GB, free: 4.223 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.417e-05/0.9497, allocations: 71.41 kB / 0.6776 GB, free: 4.148 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=292): time 8.315e-06/0.9497, allocations: 0 / 0.6776 GB, free: 4.148 MB / 0.5137 GB Notification: Performance of matching and sorting (n=342): time 0.1461/1.096, allocations: 42.55 MB / 0.7192 GB, free: 9.664 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001341/1.096, allocations: 213.8 kB / 0.7194 GB, free: 9.414 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01038/1.106, allocations: 5.498 MB / 0.7247 GB, free: 3.93 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.001479/1.108, allocations: 73.7 kB / 0.7248 GB, free: 3.852 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.004089/1.112, allocations: 4.34 MB / 0.7291 GB, free: 15.51 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.002849/1.115, allocations: 1.265 MB / 0.7303 GB, free: 14.26 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003845/1.119, allocations: 1.863 MB / 0.7321 GB, free: 12.38 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001412/1.119, allocations: 305.1 kB / 0.7324 GB, free: 12.08 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008155/1.127, allocations: 4.839 MB / 0.7371 GB, free: 7.234 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01338/1.141, allocations: 9.817 MB / 0.7467 GB, free: 11.06 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.4186/1.559, allocations: 15.63 MB / 0.762 GB, free: 197.5 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002166/1.559, allocations: 49.78 kB / 0.762 GB, free: 197.5 MB / 0.5919 GB Notification: Performance of matching and sorting (n=1190) (initialization): time 0.05415/1.614, allocations: 19.61 MB / 0.7812 GB, free: 193.4 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001361/1.614, allocations: 77 kB / 0.7812 GB, free: 193.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003144/1.614, allocations: 171.8 kB / 0.7814 GB, free: 193.4 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02168/1.636, allocations: 5.947 MB / 0.7872 GB, free: 192.5 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008492/1.644, allocations: 2.122 MB / 0.7893 GB, free: 192.3 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02971/1.674, allocations: 26.16 MB / 0.8148 GB, free: 171.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01273/1.687, allocations: 0.5664 MB / 0.8154 GB, free: 170.8 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004031/1.691, allocations: 0.5039 MB / 0.8159 GB, free: 170.3 MB / 0.5919 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.01079/1.702, allocations: 3.106 MB / 0.8189 GB, free: 167.3 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001382/1.703, allocations: 497.5 kB / 0.8194 GB, free: 167.1 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02811/1.731, allocations: 13.01 MB / 0.8321 GB, free: 154 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001016/1.731, allocations: 55.98 kB / 0.8321 GB, free: 154 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.215e-05/1.731, allocations: 8 kB / 0.8321 GB, free: 153.9 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.142e-05/1.732, allocations: 11.95 kB / 0.8322 GB, free: 153.9 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04704/1.779, allocations: 24.63 MB / 0.8562 GB, free: 128.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.282e-05/1.779, allocations: 4.594 kB / 0.8562 GB, free: 128.9 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003608/1.782, allocations: 0.585 MB / 0.8568 GB, free: 128.3 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01709/1.799, allocations: 4.969 MB / 0.8616 GB, free: 123.4 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001096/1.801, allocations: 52.86 kB / 0.8617 GB, free: 123.3 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0226/1.823, allocations: 21.37 MB / 0.8826 GB, free: 101.7 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.282e-06/1.823, allocations: 12 kB / 0.8826 GB, free: 101.7 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03207/1.855, allocations: 17.58 MB / 0.8997 GB, free: 84.05 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004615/1.86, allocations: 1.252 MB / 0.901 GB, free: 82.77 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001485/1.861, allocations: 59.98 kB / 0.901 GB, free: 82.71 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002983/1.864, allocations: 269 kB / 0.9013 GB, free: 82.45 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008716/1.865, allocations: 196.4 kB / 0.9015 GB, free: 82.26 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003049/1.866, allocations: 85.78 kB / 0.9015 GB, free: 82.18 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.005467/1.871, allocations: 3.414 MB / 0.9049 GB, free: 78.78 MB / 0.5919 GB Notification: Performance of sort global known variables: time 2.11e-07/1.871, allocations: 4 kB / 0.9049 GB, free: 78.78 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.009045/1.88, allocations: 1.769 MB / 0.9066 GB, free: 77.01 MB / 0.5919 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.0006637/1.881, allocations: 194.2 kB / 0.9068 GB, free: 76.82 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.01488/1.896, allocations: 11.05 MB / 0.9176 GB, free: 65.78 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 1.258e-05/1.896, allocations: 0 / 0.9176 GB, free: 65.78 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.005067/1.901, allocations: 4.137 MB / 0.9216 GB, free: 61.62 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004372/1.905, allocations: 0.6123 MB / 0.9222 GB, free: 61.03 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02954/1.935, allocations: 16.11 MB / 0.938 GB, free: 44.83 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006702/1.942, allocations: 4.633 MB / 0.9425 GB, free: 40.17 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.007147/1.949, allocations: 2.978 MB / 0.9454 GB, free: 37.18 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001449/1.95, allocations: 359.4 kB / 0.9457 GB, free: 36.83 MB / 0.5919 GB Notification: Performance of SimCode: time 1.132e-06/1.95, allocations: 0 / 0.9457 GB, free: 36.83 MB / 0.5919 GB Notification: Performance of Templates: time 0.4629/2.413, allocations: 77.21 MB / 1.021 GB, free: 177.9 MB / 0.5919 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.sim & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/FourbarVariants/UniversalSpherical/UniversalSpherical.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches