Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.SphericalAndUniversal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal") translateModel(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00123/0.00123, allocations: 108.2 kB / 18.39 MB, free: 4.629 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.001307/0.001307, allocations: 182.9 kB / 19.33 MB, free: 3.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.432/1.432, allocations: 222.9 MB / 243 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2333/0.2333, allocations: 44.18 MB / 337.4 MB, free: 2.699 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001283/0.001284, allocations: 67.08 kB / 409.9 MB, free: 26.53 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1242/0.1255, allocations: 60.82 MB / 470.7 MB, free: 13.65 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal): time 0.01298/0.1386, allocations: 13.4 MB / 484.1 MB, free: 188 kB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009948/0.1486, allocations: 4.801 MB / 488.9 MB, free: 11.37 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002994/0.1516, allocations: 95.69 kB / 489 MB, free: 11.27 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007118/0.1587, allocations: 3.738 MB / 492.7 MB, free: 7.523 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008216/0.1671, allocations: 2.182 MB / 494.9 MB, free: 5.336 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003249/0.1704, allocations: 1.072 MB / 496 MB, free: 4.262 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01049/0.1809, allocations: 6.52 MB / 0.4907 GB, free: 13.73 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00536/0.1863, allocations: 4.514 MB / 0.4951 GB, free: 9.145 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003362/0.1897, allocations: 2.025 MB / 0.4971 GB, free: 7.113 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003827/0.1935, allocations: 2.742 MB / 0.4998 GB, free: 4.363 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008755/0.1944, allocations: 428 kB / 0.5002 GB, free: 3.945 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002535/0.197, allocations: 1.459 MB / 0.5016 GB, free: 2.484 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002235/0.1992, allocations: 2.451 MB / 0.504 GB, free: 28 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.316/0.5152, allocations: 2.778 MB / 0.5067 GB, free: 20.22 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.015/0.5302, allocations: 8.807 MB / 0.5153 GB, free: 19.01 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.846e-06/0.5303, allocations: 0 / 0.5153 GB, free: 19.01 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.973e-06/0.5303, allocations: 1.062 kB / 0.5153 GB, free: 19.01 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004303/0.5307, allocations: 0 / 0.5153 GB, free: 19.01 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: 1729 * Number of variables: 1729 Notification: Performance of Generate backend data structure: time 0.02701/0.5578, allocations: 6.236 MB / 0.5214 GB, free: 16.66 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.908e-05/0.5578, allocations: 9.531 kB / 0.5214 GB, free: 16.66 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01295/0.5708, allocations: 2.531 MB / 0.5239 GB, free: 16.31 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01266/0.5835, allocations: 4.02 MB / 0.5278 GB, free: 15.23 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003563/0.5839, allocations: 285.3 kB / 0.5281 GB, free: 15.13 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002588/0.5865, allocations: 385.8 kB / 0.5285 GB, free: 15.03 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02778/0.6143, allocations: 12 MB / 0.5402 GB, free: 8.172 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000229/0.6146, allocations: 63.05 kB / 0.5402 GB, free: 8.156 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008047/0.6154, allocations: 180 kB / 0.5404 GB, free: 8.07 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00297/0.6184, allocations: 2.14 MB / 0.5425 GB, free: 7.273 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02158/0.64, allocations: 10.37 MB / 0.5526 GB, free: 14.26 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07615/0.7162, allocations: 47.28 MB / 0.5988 GB, free: 14.29 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01493/0.7312, allocations: 5.825 MB / 0.6045 GB, free: 8.328 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004113/0.7353, allocations: 2.976 MB / 0.6074 GB, free: 5.34 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01602/0.7514, allocations: 8.866 MB / 0.6161 GB, free: 12.37 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.862e-05/0.7515, allocations: 59.44 kB / 0.6161 GB, free: 12.31 MB / 462.1 MB Notification: Performance of pre-optimization done (n=206): time 5.891e-06/0.7515, allocations: 0 / 0.6161 GB, free: 12.31 MB / 462.1 MB Notification: Performance of matching and sorting (n=262): time 0.1222/0.8738, allocations: 34.92 MB / 0.6502 GB, free: 9.453 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001175/0.8739, allocations: 205.9 kB / 0.6504 GB, free: 9.211 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008558/0.8825, allocations: 4.761 MB / 0.6551 GB, free: 4.445 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000847/0.8834, allocations: 66.39 kB / 0.6551 GB, free: 4.375 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003023/0.8864, allocations: 3.545 MB / 0.6586 GB, free: 0.832 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001356/0.8878, allocations: 0.9749 MB / 0.6595 GB, free: 15.87 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002259/0.89, allocations: 1.42 MB / 0.6609 GB, free: 14.44 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.000111/0.8902, allocations: 311.7 kB / 0.6612 GB, free: 14.13 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004559/0.8947, allocations: 3.183 MB / 0.6643 GB, free: 10.95 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00727/0.902, allocations: 7.029 MB / 0.6712 GB, free: 2.09 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01402/0.9161, allocations: 10.96 MB / 0.6819 GB, free: 5.797 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001149/0.9162, allocations: 43.84 kB / 0.6819 GB, free: 5.758 MB / 0.5137 GB Notification: Performance of matching and sorting (n=914) (initialization): time 0.02833/0.9445, allocations: 13.74 MB / 0.6954 GB, free: 8.352 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 9.298e-05/0.9447, allocations: 68 kB / 0.6954 GB, free: 8.285 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001362/0.9448, allocations: 136 kB / 0.6956 GB, free: 8.152 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01246/0.9573, allocations: 4.389 MB / 0.6998 GB, free: 3.754 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00527/0.9626, allocations: 1.474 MB / 0.7013 GB, free: 2.277 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2851/1.248, allocations: 29.02 MB / 0.7296 GB, free: 172 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006292/1.254, allocations: 411.5 kB / 0.73 GB, free: 171.9 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001327/1.255, allocations: 412.4 kB / 0.7304 GB, free: 171.9 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 612 * Number of states: 0 () * Number of discrete variables: 42 (Universal1.cylinderColor[3],Universal1.cylinderColor[2],Universal1.cylinderColor[1],FixedTranslation1.color[3],FixedTranslation1.color[2],FixedTranslation1.color[1],spherical.sphereColor[3],spherical.sphereColor[2],spherical.sphereColor[1],b3.color[3],b3.color[2],b3.color[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 (798): * Single equations (assignments): 792 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(8,50,50.0%), (2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,21)} Notification: Performance of prepare postOptimizeDAE: time 0.005108/1.261, allocations: 2.468 MB / 0.7328 GB, free: 170.9 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001127/1.262, allocations: 439 kB / 0.7332 GB, free: 170.9 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0154/1.277, allocations: 8.478 MB / 0.7415 GB, free: 168.1 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.203e-05/1.277, allocations: 31.47 kB / 0.7415 GB, free: 168.1 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.75e-05/1.277, allocations: 11.91 kB / 0.7416 GB, free: 168.1 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.331e-05/1.277, allocations: 10.88 kB / 0.7416 GB, free: 168.1 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03389/1.311, allocations: 17.02 MB / 0.7582 GB, free: 151.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.047e-05/1.311, allocations: 8 kB / 0.7582 GB, free: 151.8 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001615/1.313, allocations: 295.5 kB / 0.7585 GB, free: 151.5 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0097/1.323, allocations: 3.967 MB / 0.7623 GB, free: 147.5 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000546/1.323, allocations: 51.98 kB / 0.7624 GB, free: 147.5 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03036/1.354, allocations: 27.74 MB / 0.7895 GB, free: 119.6 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.562e-06/1.354, allocations: 11.94 kB / 0.7895 GB, free: 119.6 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01928/1.373, allocations: 12.42 MB / 0.8016 GB, free: 107.2 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002067/1.375, allocations: 499.2 kB / 0.8021 GB, free: 106.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009645/1.376, allocations: 51.98 kB / 0.8022 GB, free: 106.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002165/1.378, allocations: 167.8 kB / 0.8023 GB, free: 106.4 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007778/1.379, allocations: 194 kB / 0.8025 GB, free: 106.2 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002184/1.379, allocations: 69.91 kB / 0.8026 GB, free: 106.2 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004766/1.384, allocations: 3.017 MB / 0.8055 GB, free: 103.2 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.61e-07/1.384, allocations: 0 / 0.8055 GB, free: 103.2 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.007627/1.392, allocations: 1.469 MB / 0.8069 GB, free: 101.7 MB / 0.5294 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 (158): * Single equations (assignments): 152 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(8,43,50.0%), (2,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,25)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006323/1.392, allocations: 189.1 kB / 0.8071 GB, free: 101.5 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01222/1.405, allocations: 8.471 MB / 0.8154 GB, free: 93.03 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.125e-05/1.405, allocations: 0 / 0.8154 GB, free: 93.03 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.00524/1.41, allocations: 3.537 MB / 0.8189 GB, free: 89.46 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004759/1.415, allocations: 0.5665 MB / 0.8194 GB, free: 88.9 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02349/1.438, allocations: 12.43 MB / 0.8315 GB, free: 76.39 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005117/1.443, allocations: 3.924 MB / 0.8354 GB, free: 72.43 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.004391/1.448, allocations: 1.999 MB / 0.8373 GB, free: 70.43 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008769/1.449, allocations: 287.4 kB / 0.8376 GB, free: 70.15 MB / 0.5294 GB Notification: Performance of SimCode: time 1.593e-06/1.449, allocations: 0 / 0.8376 GB, free: 70.15 MB / 0.5294 GB Notification: Performance of Templates: time 0.38/1.829, allocations: 66.78 MB / 0.9028 GB, free: 175.7 MB / 0.5294 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/FourbarVariants/SphericalAndUniversal/SphericalAndUniversal.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches