Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.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.SphericalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical") translateModel(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00118/0.00118, allocations: 105.6 kB / 17.32 MB, free: 5.98 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001298/0.001298, allocations: 209.8 kB / 18.26 MB, free: 5.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.385/1.385, allocations: 227.4 MB / 246.4 MB, free: 9.086 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2328/0.2328, allocations: 46.11 MB / 343.8 MB, free: 11.53 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00137/0.00137, allocations: 75.88 kB / 417 MB, free: 20.05 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1332/0.1346, allocations: 62.44 MB / 479.5 MB, free: 5.602 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical): time 0.2827/0.4174, allocations: 46.69 MB / 0.5138 GB, free: 10.28 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02521/0.4426, allocations: 9.916 MB / 0.5235 GB, free: 8.102 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01253/0.4552, allocations: 202.5 kB / 0.5237 GB, free: 8.07 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006055/0.4613, allocations: 2.62 MB / 0.5263 GB, free: 7.309 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006861/0.4682, allocations: 1.85 MB / 0.5281 GB, free: 6.695 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002569/0.4708, allocations: 0.859 MB / 0.5289 GB, free: 6.395 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.009316/0.4801, allocations: 6.049 MB / 0.5348 GB, free: 4.426 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006196/0.4864, allocations: 3.553 MB / 0.5383 GB, free: 2.371 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003361/0.4898, allocations: 1.755 MB / 0.54 GB, free: 1.484 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003696/0.4935, allocations: 2.789 MB / 0.5427 GB, free: 12 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007869/0.4943, allocations: 385.1 kB / 0.5431 GB, free: 12 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002809/0.4971, allocations: 1.407 MB / 0.5445 GB, free: 15.53 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0025/0.4996, allocations: 2.2 MB / 0.5466 GB, free: 13.89 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003862/0.5035, allocations: 2.449 MB / 0.549 GB, free: 11.44 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01132/0.5148, allocations: 7.655 MB / 0.5565 GB, free: 3.961 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.462e-06/0.5149, allocations: 0 / 0.5565 GB, free: 3.961 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.814e-06/0.5149, allocations: 0 / 0.5565 GB, free: 3.961 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002241/0.5151, allocations: 0 / 0.5565 GB, free: 3.961 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.01192/0.5271, allocations: 5.493 MB / 0.5619 GB, free: 14.5 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.646e-05/0.5271, allocations: 8.031 kB / 0.5619 GB, free: 14.49 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01079/0.5379, allocations: 2.473 MB / 0.5643 GB, free: 12.01 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007459/0.5454, allocations: 3.302 MB / 0.5675 GB, free: 8.684 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001867/0.5456, allocations: 243.5 kB / 0.5677 GB, free: 8.48 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001097/0.5467, allocations: 331 kB / 0.568 GB, free: 8.195 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02172/0.5685, allocations: 10.88 MB / 0.5787 GB, free: 12.68 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002837/0.5688, allocations: 51.53 kB / 0.5787 GB, free: 12.63 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001594/0.5704, allocations: 156.3 kB / 0.5789 GB, free: 12.52 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003861/0.5743, allocations: 1.999 MB / 0.5808 GB, free: 10.53 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02223/0.5965, allocations: 9.443 MB / 0.59 GB, free: 1.066 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06388/0.6605, allocations: 41.22 MB / 0.6303 GB, free: 6.82 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01247/0.673, allocations: 4.261 MB / 0.6345 GB, free: 2.426 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003276/0.6763, allocations: 1.935 MB / 0.6364 GB, free: 492 kB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01441/0.6908, allocations: 7.62 MB / 0.6438 GB, free: 8.527 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.682e-05/0.6909, allocations: 51.5 kB / 0.6438 GB, free: 8.465 MB / 494.1 MB Notification: Performance of pre-optimization done (n=180): time 6.823e-06/0.6909, allocations: 0 / 0.6438 GB, free: 8.465 MB / 494.1 MB Notification: Performance of matching and sorting (n=236): time 0.1662/0.8571, allocations: 40.92 MB / 0.6838 GB, free: 15.54 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001375/0.8573, allocations: 201.9 kB / 0.684 GB, free: 15.29 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009977/0.8673, allocations: 4.301 MB / 0.6882 GB, free: 10.96 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0008804/0.8682, allocations: 61.7 kB / 0.6883 GB, free: 10.9 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002978/0.8712, allocations: 3.169 MB / 0.6914 GB, free: 7.734 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001601/0.8728, allocations: 0.8817 MB / 0.6922 GB, free: 6.859 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003494/0.8763, allocations: 1.355 MB / 0.6935 GB, free: 5.496 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 9.794e-05/0.8764, allocations: 301.1 kB / 0.6938 GB, free: 5.199 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005064/0.8815, allocations: 3.624 MB / 0.6974 GB, free: 1.57 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008947/0.8905, allocations: 7.299 MB / 0.7045 GB, free: 8.469 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.2621/1.153, allocations: 11.62 MB / 0.7158 GB, free: 188 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000114/1.153, allocations: 37.44 kB / 0.7159 GB, free: 188 MB / 0.545 GB Notification: Performance of matching and sorting (n=856) (initialization): time 0.03903/1.192, allocations: 16.2 MB / 0.7317 GB, free: 183.7 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 7.018e-05/1.192, allocations: 66.84 kB / 0.7318 GB, free: 183.7 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001049/1.192, allocations: 125.7 kB / 0.7319 GB, free: 183.7 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02154/1.214, allocations: 6.233 MB / 0.738 GB, free: 182.7 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005328/1.219, allocations: 1.494 MB / 0.7394 GB, free: 182.3 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02985/1.249, allocations: 27.62 MB / 0.7664 GB, free: 161.3 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005496/1.254, allocations: 412.4 kB / 0.7668 GB, free: 160.9 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006007/1.255, allocations: 388 kB / 0.7672 GB, free: 160.5 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 582 * 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 (779): * Single equations (assignments): 774 * Array equations: 3 * 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 {(3,51,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00296/1.258, allocations: 2.219 MB / 0.7693 GB, free: 158.4 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006675/1.259, allocations: 393.8 kB / 0.7697 GB, free: 158.2 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02485/1.283, allocations: 11.29 MB / 0.7807 GB, free: 146.9 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.108e-05/1.284, allocations: 27.83 kB / 0.7808 GB, free: 146.8 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.628e-05/1.284, allocations: 12 kB / 0.7808 GB, free: 146.8 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.217e-05/1.284, allocations: 15.95 kB / 0.7808 GB, free: 146.8 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03612/1.32, allocations: 20.69 MB / 0.801 GB, free: 125.8 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.015e-05/1.32, allocations: 8 kB / 0.801 GB, free: 125.8 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002064/1.322, allocations: 385.1 kB / 0.8014 GB, free: 125.4 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01821/1.34, allocations: 5.313 MB / 0.8066 GB, free: 120.1 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005135/1.341, allocations: 40 kB / 0.8066 GB, free: 120 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02463/1.365, allocations: 22.72 MB / 0.8288 GB, free: 97.11 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.245e-06/1.365, allocations: 5.406 kB / 0.8288 GB, free: 97.11 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02811/1.393, allocations: 14.61 MB / 0.843 GB, free: 82.42 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001198/1.395, allocations: 451.8 kB / 0.8435 GB, free: 81.96 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008967/1.396, allocations: 40 kB / 0.8435 GB, free: 81.92 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002352/1.398, allocations: 179.7 kB / 0.8437 GB, free: 81.74 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007036/1.399, allocations: 161 kB / 0.8438 GB, free: 81.58 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002176/1.399, allocations: 62.5 kB / 0.8439 GB, free: 81.52 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003574/1.403, allocations: 2.705 MB / 0.8465 GB, free: 78.81 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.462e-06/1.403, allocations: 0 / 0.8465 GB, free: 78.81 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.006018/1.409, allocations: 1.355 MB / 0.8479 GB, free: 77.46 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 (167): * Single equations (assignments): 162 * Array equations: 3 * 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 {(3,45,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0006389/1.409, allocations: 188.9 kB / 0.848 GB, free: 77.28 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01375/1.423, allocations: 9.727 MB / 0.8575 GB, free: 67.59 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.138e-05/1.423, allocations: 384 / 0.8575 GB, free: 67.59 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004112/1.427, allocations: 3.209 MB / 0.8607 GB, free: 64.37 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003476/1.431, allocations: 0.5061 MB / 0.8612 GB, free: 63.88 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01945/1.45, allocations: 14.04 MB / 0.8749 GB, free: 49.75 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003428/1.454, allocations: 3.503 MB / 0.8783 GB, free: 46.22 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004873/1.458, allocations: 1.96 MB / 0.8802 GB, free: 44.25 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001117/1.46, allocations: 263.4 kB / 0.8805 GB, free: 44 MB / 0.545 GB Notification: Performance of SimCode: time 4.027e-06/1.46, allocations: 0 / 0.8805 GB, free: 44 MB / 0.545 GB Notification: Performance of Templates: time 0.3628/1.822, allocations: 69.99 MB / 0.9488 GB, free: 171.5 MB / 0.545 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/FourbarVariants/SphericalSpherical/SphericalSpherical.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches