Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.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.SphericalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical") translateModel(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009762/0.0009763, allocations: 96.28 kB / 15.69 MB, free: 480 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001018/0.001018, allocations: 178.7 kB / 16.57 MB, free: 6.387 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.478/1.478, allocations: 205.4 MB / 222.7 MB, free: 5.672 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3767/0.3767, allocations: 43.55 MB / 314.5 MB, free: 9.023 MB / 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.0005091/0.0005091, allocations: 16 kB / 383.9 MB, free: 8.258 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1335/0.1341, allocations: 58.85 MB / 442.7 MB, free: 13.3 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical): time 0.2735/0.4076, allocations: 40.24 MB / 483 MB, free: 26.44 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02392/0.4316, allocations: 9.992 MB / 493 MB, free: 19.67 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01199/0.4436, allocations: 205.2 kB / 493.2 MB, free: 19.64 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008906/0.4526, allocations: 1.974 MB / 495.1 MB, free: 18.98 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02077/0.4734, allocations: 5.845 MB / 0.4893 GB, free: 16.21 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00388/0.4773, allocations: 0.7615 MB / 0.49 GB, free: 15.92 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.04194/0.5192, allocations: 27.34 MB / 0.5167 GB, free: 4.461 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005861/0.5251, allocations: 4.229 MB / 0.5208 GB, free: 232 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002346/0.5275, allocations: 1.176 MB / 0.522 GB, free: 15.04 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001996/0.5295, allocations: 1.749 MB / 0.5237 GB, free: 13.29 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004526/0.53, allocations: 176 kB / 0.5238 GB, free: 13.11 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001911/0.5319, allocations: 1.053 MB / 0.5249 GB, free: 12.06 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001498/0.5334, allocations: 1.824 MB / 0.5267 GB, free: 10.23 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008376/0.5343, allocations: 0.8972 MB / 0.5275 GB, free: 9.328 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005807/0.5401, allocations: 6.149 MB / 0.5335 GB, free: 3.168 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.5401, allocations: 0 / 0.5335 GB, free: 3.168 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.5401, allocations: 0 / 0.5335 GB, free: 3.168 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0001982/0.5403, allocations: 0 / 0.5335 GB, free: 3.168 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1538 * Number of variables: 1538 Notification: Performance of Generate backend data structure: time 0.01143/0.5518, allocations: 4.891 MB / 0.5383 GB, free: 14.2 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.748e-05/0.5518, allocations: 8.562 kB / 0.5383 GB, free: 14.2 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04073/0.5926, allocations: 7.897 MB / 0.546 GB, free: 6.281 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009709/0.6023, allocations: 3.847 MB / 0.5498 GB, free: 2.379 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001944/0.6025, allocations: 246.1 kB / 0.55 GB, free: 2.137 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008315/0.6034, allocations: 335.6 kB / 0.5503 GB, free: 1.809 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01838/0.6218, allocations: 10.87 MB / 0.561 GB, free: 6.199 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000147/0.622, allocations: 51.58 kB / 0.561 GB, free: 6.148 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003875/0.6224, allocations: 155.8 kB / 0.5612 GB, free: 5.996 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003039/0.6254, allocations: 1.994 MB / 0.5631 GB, free: 4 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01909/0.6445, allocations: 9.342 MB / 0.5722 GB, free: 10.64 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05831/0.7029, allocations: 41.16 MB / 0.6124 GB, free: 292 kB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01089/0.7138, allocations: 4.256 MB / 0.6166 GB, free: 11.88 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01359/0.7275, allocations: 7.587 MB / 0.624 GB, free: 3.926 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001182/0.7276, allocations: 51.5 kB / 0.624 GB, free: 3.867 MB / 494.1 MB Notification: Performance of pre-optimization done (n=180): time 7.334e-06/0.7277, allocations: 0 / 0.624 GB, free: 3.867 MB / 494.1 MB Notification: Performance of matching and sorting (n=236): time 0.3943/1.122, allocations: 41.54 MB / 0.6646 GB, free: 137.1 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.689e-05/1.122, allocations: 202.9 kB / 0.6648 GB, free: 136.9 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007322/1.129, allocations: 4.583 MB / 0.6693 GB, free: 134.6 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008275/1.13, allocations: 60.92 kB / 0.6693 GB, free: 134.5 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002049/1.132, allocations: 3.216 MB / 0.6725 GB, free: 131.8 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001109/1.133, allocations: 0.8754 MB / 0.6733 GB, free: 131 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003322/1.134, allocations: 127 kB / 0.6735 GB, free: 130.9 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0002716/1.134, allocations: 0.5674 MB / 0.674 GB, free: 130.4 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004176/1.138, allocations: 3.466 MB / 0.6774 GB, free: 128.6 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005076/1.143, allocations: 7.059 MB / 0.6843 GB, free: 121.8 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005622/1.149, allocations: 4.812 MB / 0.689 GB, free: 118.8 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.518e-05/1.149, allocations: 36 kB / 0.689 GB, free: 118.8 MB / 494.1 MB Notification: Performance of matching and sorting (n=818) (initialization): time 0.03312/1.182, allocations: 15.67 MB / 0.7043 GB, free: 103.1 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.611e-05/1.182, allocations: 63.12 kB / 0.7044 GB, free: 103.1 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.921e-05/1.182, allocations: 129.4 kB / 0.7045 GB, free: 102.9 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02104/1.203, allocations: 6.112 MB / 0.7105 GB, free: 96.84 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004703/1.208, allocations: 1.431 MB / 0.7119 GB, free: 95.4 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02891/1.237, allocations: 26.39 MB / 0.7376 GB, free: 68.75 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006146/1.243, allocations: 403.3 kB / 0.738 GB, free: 68.36 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001161/1.245, allocations: 375.5 kB / 0.7384 GB, free: 68 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 576 * Number of states: 0 () * Number of discrete variables: 42 (b3.color[3],b3.color[2],b3.color[1],sphericalSpherical.massColor[3],sphericalSpherical.massColor[2],sphericalSpherical.massColor[1],sphericalSpherical.sphereColor[3],sphericalSpherical.sphereColor[2],sphericalSpherical.sphereColor[1],sphericalSpherical.rodColor[3],sphericalSpherical.rodColor[2],sphericalSpherical.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 (741): * Single equations (assignments): 736 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 51} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005395/1.25, allocations: 2.212 MB / 0.7405 GB, free: 65.77 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001606/1.252, allocations: 394.8 kB / 0.7409 GB, free: 65.38 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02707/1.279, allocations: 11.07 MB / 0.7517 GB, free: 54.27 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.398e-05/1.279, allocations: 28 kB / 0.7518 GB, free: 54.25 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.698e-05/1.279, allocations: 11.95 kB / 0.7518 GB, free: 54.23 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.827e-05/1.279, allocations: 11.95 kB / 0.7518 GB, free: 54.22 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04478/1.324, allocations: 20.6 MB / 0.7719 GB, free: 33.2 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.078e-05/1.324, allocations: 4 kB / 0.7719 GB, free: 33.19 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002048/1.326, allocations: 392 kB / 0.7723 GB, free: 32.81 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01905/1.345, allocations: 5.176 MB / 0.7773 GB, free: 27.62 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007245/1.346, allocations: 44 kB / 0.7774 GB, free: 27.58 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02385/1.369, allocations: 21.49 MB / 0.7984 GB, free: 5.82 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.352e-06/1.37, allocations: 7.938 kB / 0.7984 GB, free: 5.812 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2957/1.665, allocations: 14.91 MB / 0.8129 GB, free: 142.3 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003713/1.669, allocations: 0.9872 MB / 0.8139 GB, free: 142.2 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001445/1.67, allocations: 47.22 kB / 0.8139 GB, free: 142.2 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002647/1.673, allocations: 180.6 kB / 0.8141 GB, free: 142.2 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006884/1.674, allocations: 158.1 kB / 0.8143 GB, free: 142.2 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002254/1.674, allocations: 67.33 kB / 0.8143 GB, free: 142.2 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0046/1.679, allocations: 2.924 MB / 0.8172 GB, free: 142 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.51e-07/1.679, allocations: 0 / 0.8172 GB, free: 142 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.007014/1.686, allocations: 1.352 MB / 0.8185 GB, free: 142 MB / 0.4981 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 (167): * Single equations (assignments): 162 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 45} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006576/1.686, allocations: 200.2 kB / 0.8187 GB, free: 141.9 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.01174/1.698, allocations: 8.05 MB / 0.8266 GB, free: 140.7 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 9.448e-06/1.698, allocations: 0 / 0.8266 GB, free: 140.7 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.004224/1.702, allocations: 3.167 MB / 0.8296 GB, free: 139.3 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003921/1.706, allocations: 496 kB / 0.8301 GB, free: 139.1 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02837/1.735, allocations: 13.48 MB / 0.8433 GB, free: 132.5 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007843/1.743, allocations: 3.609 MB / 0.8468 GB, free: 131.2 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.007324/1.75, allocations: 1.974 MB / 0.8487 GB, free: 131.1 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00177/1.752, allocations: 275.8 kB / 0.849 GB, free: 131.1 MB / 0.4981 GB Notification: Performance of SimCode: time 1.072e-06/1.752, allocations: 0 / 0.849 GB, free: 131.1 MB / 0.4981 GB Notification: Performance of Templates: time 0.09508/1.847, allocations: 65.54 MB / 0.913 GB, free: 86.34 MB / 0.4981 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.makefile Environment - environmentSimulation: (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.sim & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/FourbarVariants/SphericalSpherical/SphericalSpherical.csv","../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches