Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.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) 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(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00127/0.00127, allocations: 110.7 kB / 18.35 MB, free: 4.84 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.001085/0.001085, allocations: 184.2 kB / 19.29 MB, free: 3.918 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.458/1.458, allocations: 205.1 MB / 225.2 MB, free: 12.27 MB / 190.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.001361/0.001361, allocations: 51.94 kB / 329.1 MB, free: 3.355 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09484/0.09621, allocations: 46.62 MB / 375.8 MB, free: 4.629 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.2228/0.3191, allocations: 15.08 MB / 390.8 MB, free: 4.586 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01162/0.3307, allocations: 4.816 MB / 395.6 MB, free: 1.484 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00397/0.3347, allocations: 93.31 kB / 395.7 MB, free: 1.469 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006509/0.3413, allocations: 3.165 MB / 398.9 MB, free: 8 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008785/0.3501, allocations: 2.561 MB / 401.5 MB, free: 14.84 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003254/0.3534, allocations: 0.9915 MB / 402.5 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01264/0.3661, allocations: 6.636 MB / 409.1 MB, free: 11 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006599/0.3727, allocations: 4.367 MB / 413.5 MB, free: 8.445 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005413/0.3782, allocations: 2.237 MB / 415.7 MB, free: 7.18 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005604/0.3838, allocations: 3.244 MB / 418.9 MB, free: 4.316 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001839/0.3857, allocations: 484 kB / 419.4 MB, free: 3.844 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004016/0.3897, allocations: 1.486 MB / 420.9 MB, free: 2.355 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003705/0.3935, allocations: 2.868 MB / 423.8 MB, free: 15.48 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005234/0.3987, allocations: 3.254 MB / 427 MB, free: 12.21 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01273/0.4115, allocations: 10.44 MB / 437.5 MB, free: 1.73 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.312e-06/0.4115, allocations: 0 / 437.5 MB, free: 1.73 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.266e-06/0.4115, allocations: 0 / 437.5 MB, free: 1.73 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0003695/0.4119, allocations: 7.875 kB / 437.5 MB, free: 1.723 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.0187/0.4306, allocations: 7.292 MB / 444.8 MB, free: 10.35 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.006e-05/0.4307, allocations: 12.03 kB / 444.8 MB, free: 10.34 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01636/0.4471, allocations: 3.935 MB / 448.7 MB, free: 6.387 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009565/0.4567, allocations: 4.267 MB / 453 MB, free: 2.059 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002754/0.457, allocations: 320.6 kB / 453.3 MB, free: 1.742 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00198/0.459, allocations: 431.5 kB / 453.7 MB, free: 1.32 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02857/0.4875, allocations: 15.71 MB / 469.4 MB, free: 0.6758 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000207/0.4878, allocations: 59.52 kB / 469.5 MB, free: 0.6172 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001137/0.489, allocations: 203.8 kB / 469.7 MB, free: 428 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005006/0.494, allocations: 3.223 MB / 472.9 MB, free: 13.19 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02807/0.5221, allocations: 14.12 MB / 487 MB, free: 15.05 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08984/0.6119, allocations: 57.49 MB / 0.5318 GB, free: 3.973 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01508/0.6271, allocations: 6.561 MB / 0.5382 GB, free: 13.16 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005765/0.6329, allocations: 3.688 MB / 0.5418 GB, free: 9.457 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2809/0.9139, allocations: 14.63 MB / 0.5561 GB, free: 145.1 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.907e-05/0.914, allocations: 62.27 kB / 0.5561 GB, free: 145 MB / 478.1 MB Notification: Performance of pre-optimization done (n=289): time 6.261e-06/0.914, allocations: 3.844 kB / 0.5561 GB, free: 145 MB / 478.1 MB Notification: Performance of matching and sorting (n=339): time 0.1472/1.061, allocations: 42.39 MB / 0.5975 GB, free: 127.1 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.914e-05/1.061, allocations: 217.9 kB / 0.5977 GB, free: 126.9 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00703/1.068, allocations: 5.494 MB / 0.6031 GB, free: 121.4 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008953/1.069, allocations: 82.11 kB / 0.6032 GB, free: 121.3 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002262/1.072, allocations: 4.351 MB / 0.6074 GB, free: 116.9 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0017/1.073, allocations: 1.261 MB / 0.6086 GB, free: 115.7 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002685/1.076, allocations: 1.851 MB / 0.6105 GB, free: 113.8 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 6.543e-05/1.076, allocations: 313 kB / 0.6107 GB, free: 113.5 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005643/1.082, allocations: 4.8 MB / 0.6154 GB, free: 108.7 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008505/1.09, allocations: 9.808 MB / 0.625 GB, free: 96.46 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01518/1.105, allocations: 15.58 MB / 0.6402 GB, free: 78.42 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001532/1.106, allocations: 52.69 kB / 0.6403 GB, free: 78.37 MB / 478.1 MB Notification: Performance of matching and sorting (n=1189) (initialization): time 0.0415/1.147, allocations: 19.56 MB / 0.6594 GB, free: 58.77 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001038/1.147, allocations: 80 kB / 0.6595 GB, free: 58.69 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001832/1.147, allocations: 176 kB / 0.6596 GB, free: 58.52 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02157/1.169, allocations: 5.937 MB / 0.6654 GB, free: 52.57 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007467/1.177, allocations: 2.109 MB / 0.6675 GB, free: 50.46 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02823/1.205, allocations: 26.16 MB / 0.693 GB, free: 24.02 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008036/1.213, allocations: 0.5665 MB / 0.6936 GB, free: 23.45 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001849/1.215, allocations: 0.5117 MB / 0.6941 GB, free: 22.94 MB / 478.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 (1098): * Single equations (assignments): 1090 * 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.005913/1.221, allocations: 3.093 MB / 0.6971 GB, free: 19.83 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001249/1.222, allocations: 0.4937 MB / 0.6976 GB, free: 19.33 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03031/1.252, allocations: 12.93 MB / 0.7102 GB, free: 6.336 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.846e-05/1.252, allocations: 56 kB / 0.7103 GB, free: 6.281 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.86e-05/1.252, allocations: 12 kB / 0.7103 GB, free: 6.27 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.344e-05/1.253, allocations: 15.94 kB / 0.7103 GB, free: 6.254 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.278/1.531, allocations: 24.51 MB / 0.7342 GB, free: 143.6 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.329e-05/1.531, allocations: 5.062 kB / 0.7342 GB, free: 143.6 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00329/1.534, allocations: 0.5814 MB / 0.7348 GB, free: 143.6 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02106/1.555, allocations: 4.974 MB / 0.7397 GB, free: 143.6 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007383/1.556, allocations: 55.44 kB / 0.7397 GB, free: 143.6 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02721/1.583, allocations: 21.34 MB / 0.7605 GB, free: 134.5 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.167e-06/1.583, allocations: 15.72 kB / 0.7606 GB, free: 134.5 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03568/1.619, allocations: 17.46 MB / 0.7776 GB, free: 127.4 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003358/1.622, allocations: 1.244 MB / 0.7788 GB, free: 126.9 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001793/1.624, allocations: 53.44 kB / 0.7789 GB, free: 126.8 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004566/1.629, allocations: 262.8 kB / 0.7791 GB, free: 126.7 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001431/1.63, allocations: 200.3 kB / 0.7793 GB, free: 126.6 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007266/1.631, allocations: 78.44 kB / 0.7794 GB, free: 126.6 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.007572/1.638, allocations: 3.422 MB / 0.7827 GB, free: 124.9 MB / 494.1 MB Notification: Performance of sort global known variables: time 4.91e-07/1.638, allocations: 3.938 kB / 0.7827 GB, free: 124.9 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.009591/1.648, allocations: 1.765 MB / 0.7845 GB, free: 124.7 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.001292/1.649, allocations: 205.5 kB / 0.7847 GB, free: 124.5 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01738/1.667, allocations: 10.97 MB / 0.7954 GB, free: 114 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.28e-05/1.667, allocations: 0 / 0.7954 GB, free: 114 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006414/1.673, allocations: 4.107 MB / 0.7994 GB, free: 109.9 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008541/1.682, allocations: 0.6115 MB / 0.8 GB, free: 109.3 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03106/1.713, allocations: 16.65 MB / 0.8162 GB, free: 92.64 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007462/1.72, allocations: 4.6 MB / 0.8207 GB, free: 88.03 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00224/1.723, allocations: 411.4 kB / 0.8211 GB, free: 87.63 MB / 494.1 MB Notification: Performance of SimCode: time 1.883e-06/1.723, allocations: 4.766 kB / 0.8211 GB, free: 87.62 MB / 494.1 MB Notification: Performance of Templates: time 0.3946/2.117, allocations: 149.8 MB / 0.9674 GB, free: 133.3 MB / 0.4981 GB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar2/Fourbar2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches