Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001374/0.001374, allocations: 84.55 kB / 20.68 MB, free: 1.012 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001771/0.001771, allocations: 167.6 kB / 23.96 MB, free: 4.125 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.437/1.437, allocations: 177.1 MB / 204.3 MB, free: 9.176 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.753e-06/1.753e-06, allocations: 0 / 325.1 MB, free: 0.5469 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.368e-05/2.544e-05, allocations: 3.562 kB / 325.1 MB, free: 0.543 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.01638/0.0164, allocations: 13.04 MB / 338.1 MB, free: 7.59 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01198/0.02839, allocations: 4.635 MB / 342.7 MB, free: 3.434 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003128/0.03152, allocations: 107.5 kB / 342.9 MB, free: 3.328 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006699/0.03822, allocations: 3.239 MB / 346.1 MB, free: 76 kB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006862/0.04508, allocations: 2.679 MB / 348.8 MB, free: 13.38 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002277/0.04736, allocations: 1.095 MB / 349.9 MB, free: 12.29 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01017/0.05753, allocations: 7.802 MB / 357.7 MB, free: 4.469 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005251/0.06278, allocations: 4.097 MB / 361.8 MB, free: 316 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004928/0.0677, allocations: 3.379 MB / 365.1 MB, free: 12.92 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005349/0.07305, allocations: 3.577 MB / 368.7 MB, free: 9.336 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009269/0.07398, allocations: 496 kB / 369.2 MB, free: 8.852 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002969/0.07695, allocations: 1.467 MB / 370.7 MB, free: 7.383 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00315/0.0801, allocations: 3.042 MB / 373.7 MB, free: 4.332 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002754/0.08285, allocations: 1.861 MB / 375.6 MB, free: 2.465 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01529/0.09814, allocations: 10.52 MB / 386.1 MB, free: 7.914 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.776e-06/0.09815, allocations: 0 / 386.1 MB, free: 7.914 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.09815, allocations: 0 / 386.1 MB, free: 7.914 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0003473/0.09849, allocations: 0 / 386.1 MB, free: 7.914 MB / 350.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.01996/0.1185, allocations: 7.392 MB / 393.5 MB, free: 456 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.923e-05/0.1185, allocations: 12.03 kB / 393.5 MB, free: 444 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01791/0.1364, allocations: 4.079 MB / 397.6 MB, free: 12.34 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0105/0.1469, allocations: 4.039 MB / 401.6 MB, free: 8.246 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003603/0.1473, allocations: 320.4 kB / 401.9 MB, free: 7.93 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002234/0.1495, allocations: 436.2 kB / 402.4 MB, free: 7.504 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02913/0.1786, allocations: 15.8 MB / 418.1 MB, free: 6.762 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001644/0.1788, allocations: 67.45 kB / 418.2 MB, free: 6.695 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006447/0.1794, allocations: 207.7 kB / 418.4 MB, free: 6.492 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005533/0.185, allocations: 3.219 MB / 421.6 MB, free: 3.27 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0297/0.2147, allocations: 14.12 MB / 435.8 MB, free: 5.129 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2582/0.4729, allocations: 53.77 MB / 489.5 MB, free: 88.4 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01345/0.4863, allocations: 5.532 MB / 495.1 MB, free: 87.94 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004065/0.4904, allocations: 3.341 MB / 498.4 MB, free: 86.71 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01717/0.5076, allocations: 12.25 MB / 0.4987 GB, free: 82.18 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.557e-05/0.5076, allocations: 63.39 kB / 0.4987 GB, free: 82.12 MB / 430.1 MB Notification: Performance of pre-optimization done (n=289): time 6.321e-06/0.5076, allocations: 1.438 kB / 0.4987 GB, free: 82.12 MB / 430.1 MB Notification: Performance of matching and sorting (n=339): time 0.1439/0.6515, allocations: 43.5 MB / 0.5412 GB, free: 44.79 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.998e-05/0.6516, allocations: 210 kB / 0.5414 GB, free: 44.54 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005603/0.6572, allocations: 5.376 MB / 0.5467 GB, free: 39.38 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007051/0.6579, allocations: 77.27 kB / 0.5467 GB, free: 39.3 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001765/0.6597, allocations: 4.512 MB / 0.5511 GB, free: 34.95 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001169/0.6608, allocations: 1.294 MB / 0.5524 GB, free: 33.68 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00212/0.663, allocations: 1.837 MB / 0.5542 GB, free: 31.83 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 4.295e-05/0.663, allocations: 305.1 kB / 0.5545 GB, free: 31.53 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005099/0.6681, allocations: 4.796 MB / 0.5592 GB, free: 26.72 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006965/0.6751, allocations: 9.846 MB / 0.5688 GB, free: 14.49 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01453/0.6896, allocations: 15.57 MB / 0.584 GB, free: 12.53 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001204/0.6897, allocations: 48 kB / 0.584 GB, free: 12.48 MB / 446.1 MB Notification: Performance of matching and sorting (n=1185) (initialization): time 0.04839/0.7381, allocations: 19.48 MB / 0.6031 GB, free: 8.949 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001216/0.7382, allocations: 80 kB / 0.6031 GB, free: 8.871 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000196/0.7384, allocations: 172 kB / 0.6033 GB, free: 8.703 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02651/0.7649, allocations: 5.937 MB / 0.6091 GB, free: 2.754 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007867/0.7728, allocations: 2.105 MB / 0.6112 GB, free: 0.6445 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03824/0.8111, allocations: 25.73 MB / 0.6363 GB, free: 6.707 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007892/0.8189, allocations: 0.6125 MB / 0.6369 GB, free: 6.094 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001556/0.8205, allocations: 0.5116 MB / 0.6374 GB, free: 5.586 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 791 * Number of states: 0 () * Number of discrete variables: 45 (fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.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 (1094): * Single equations (assignments): 1086 * 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.00573/0.8262, allocations: 3.091 MB / 0.6404 GB, free: 2.48 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001258/0.8275, allocations: 480.8 kB / 0.6409 GB, free: 2.008 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2256/1.053, allocations: 12.86 MB / 0.6534 GB, free: 169.6 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000104/1.053, allocations: 56.14 kB / 0.6535 GB, free: 169.6 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.223e-05/1.053, allocations: 8.906 kB / 0.6535 GB, free: 169.6 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.371e-05/1.053, allocations: 16.72 kB / 0.6535 GB, free: 169.6 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04834/1.102, allocations: 22.3 MB / 0.6753 GB, free: 159.7 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.948e-05/1.102, allocations: 7.844 kB / 0.6753 GB, free: 159.7 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003807/1.106, allocations: 0.5755 MB / 0.6759 GB, free: 159.6 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02023/1.126, allocations: 4.975 MB / 0.6807 GB, free: 155.7 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007851/1.127, allocations: 52 kB / 0.6808 GB, free: 155.7 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02273/1.149, allocations: 20.94 MB / 0.7012 GB, free: 134.6 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.178e-06/1.149, allocations: 4 kB / 0.7012 GB, free: 134.6 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03395/1.183, allocations: 17.4 MB / 0.7182 GB, free: 117.4 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002036/1.185, allocations: 476.4 kB / 0.7187 GB, free: 117.2 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001166/1.186, allocations: 52 kB / 0.7187 GB, free: 117.1 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003299/1.19, allocations: 311.5 kB / 0.719 GB, free: 116.8 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008555/1.191, allocations: 205.4 kB / 0.7192 GB, free: 116.6 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002769/1.191, allocations: 84 kB / 0.7193 GB, free: 116.5 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003689/1.195, allocations: 3.133 MB / 0.7223 GB, free: 113.4 MB / 494.1 MB Notification: Performance of sort global known variables: time 1e-07/1.195, allocations: 0.5625 kB / 0.7223 GB, free: 113.4 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.007241/1.202, allocations: 1.866 MB / 0.7242 GB, free: 111.5 MB / 494.1 MB 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 (254): * Single equations (assignments): 246 * 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.0007179/1.203, allocations: 229.1 kB / 0.7244 GB, free: 111.3 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01355/1.216, allocations: 10.47 MB / 0.7346 GB, free: 100.9 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.086e-05/1.216, allocations: 3.094 kB / 0.7346 GB, free: 100.9 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005024/1.221, allocations: 3.796 MB / 0.7383 GB, free: 97.13 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003812/1.225, allocations: 0.5202 MB / 0.7388 GB, free: 96.63 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02122/1.246, allocations: 16.2 MB / 0.7546 GB, free: 80.39 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004352/1.25, allocations: 4.117 MB / 0.7587 GB, free: 76.24 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.005866/1.256, allocations: 2.92 MB / 0.7615 GB, free: 73.31 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001475/1.258, allocations: 340.4 kB / 0.7618 GB, free: 72.98 MB / 494.1 MB Notification: Performance of SimCode: time 1.293e-06/1.258, allocations: 0 / 0.7618 GB, free: 72.98 MB / 494.1 MB Notification: Performance of Templates: time 0.2824/1.54, allocations: 73.78 MB / 0.8339 GB, free: 159.3 MB / 494.1 MB " [Timeout remaining time 658] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar2/Fourbar2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 7.8769218027591705]