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.001385/0.001385, allocations: 102.9 kB / 17.16 MB, free: 6.316 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.001422/0.001422, allocations: 190 kB / 18.07 MB, free: 5.414 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.433/1.433, allocations: 205.1 MB / 223.9 MB, free: 12.47 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.002044/0.002044, allocations: 51.94 kB / 280 MB, free: 3.578 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1093/0.1113, allocations: 46.62 MB / 326.6 MB, free: 4.895 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.2485/0.3598, allocations: 53.47 MB / 380.1 MB, free: 8.949 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.027/0.3869, allocations: 11.21 MB / 391.3 MB, free: 8.379 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01518/0.4021, allocations: 231 kB / 391.5 MB, free: 8.379 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00681/0.409, allocations: 3.138 MB / 394.6 MB, free: 7.645 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008433/0.4175, allocations: 2.407 MB / 397 MB, free: 6.855 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003743/0.4212, allocations: 0.9201 MB / 398 MB, free: 6.543 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01292/0.4342, allocations: 9.429 MB / 407.4 MB, free: 2.758 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007303/0.4415, allocations: 4.261 MB / 411.7 MB, free: 468 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005295/0.4468, allocations: 1.98 MB / 413.6 MB, free: 15.48 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006148/0.453, allocations: 3.432 MB / 417.1 MB, free: 13.07 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002237/0.4553, allocations: 332 kB / 417.4 MB, free: 12.74 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005129/0.4604, allocations: 1.421 MB / 418.8 MB, free: 11.38 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005305/0.4658, allocations: 2.758 MB / 421.6 MB, free: 8.625 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007711/0.4735, allocations: 3.119 MB / 424.7 MB, free: 5.5 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01604/0.4896, allocations: 9.941 MB / 434.6 MB, free: 11.79 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.095e-06/0.4896, allocations: 8 kB / 434.6 MB, free: 11.78 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.514e-06/0.4896, allocations: 0 / 434.6 MB, free: 11.78 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.000472/0.4901, allocations: 0 / 434.6 MB, free: 11.78 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.0243/0.5144, allocations: 7.294 MB / 441.9 MB, free: 4.562 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.591e-05/0.5145, allocations: 8.031 kB / 441.9 MB, free: 4.555 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0163/0.5308, allocations: 3.942 MB / 445.9 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01046/0.5413, allocations: 4.214 MB / 450.1 MB, free: 12.37 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004176/0.5418, allocations: 315.9 kB / 450.4 MB, free: 12.12 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00233/0.5441, allocations: 427.9 kB / 450.8 MB, free: 11.76 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03336/0.5775, allocations: 15.72 MB / 466.5 MB, free: 11.29 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002289/0.5778, allocations: 67.38 kB / 466.6 MB, free: 11.22 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009409/0.5787, allocations: 199.6 kB / 466.8 MB, free: 11.09 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004822/0.5836, allocations: 3.224 MB / 470 MB, free: 7.875 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03815/0.6218, allocations: 14.12 MB / 484.1 MB, free: 9.73 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1237/0.7455, allocations: 57.77 MB / 0.5292 GB, free: 14.71 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02355/0.7691, allocations: 6.568 MB / 0.5356 GB, free: 7.895 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008873/0.7781, allocations: 3.683 MB / 0.5392 GB, free: 4.199 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.216/0.9941, allocations: 14.65 MB / 0.5535 GB, free: 174.4 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.768e-05/0.9942, allocations: 61.22 kB / 0.5536 GB, free: 174.4 MB / 462.1 MB Notification: Performance of pre-optimization done (n=289): time 6.111e-06/0.9942, allocations: 0.5312 kB / 0.5536 GB, free: 174.4 MB / 462.1 MB Notification: Performance of matching and sorting (n=339): time 0.1343/1.129, allocations: 42.39 MB / 0.595 GB, free: 146.9 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.018e-05/1.129, allocations: 213.9 kB / 0.5952 GB, free: 146.7 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006466/1.135, allocations: 5.502 MB / 0.6006 GB, free: 141.2 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006433/1.136, allocations: 73.7 kB / 0.6006 GB, free: 141.1 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001629/1.137, allocations: 4.347 MB / 0.6049 GB, free: 136.8 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009311/1.138, allocations: 1.258 MB / 0.6061 GB, free: 135.5 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002054/1.14, allocations: 1.856 MB / 0.6079 GB, free: 133.6 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 5.484e-05/1.14, allocations: 305.1 kB / 0.6082 GB, free: 133.3 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00513/1.146, allocations: 4.808 MB / 0.6129 GB, free: 128.5 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008076/1.154, allocations: 9.795 MB / 0.6225 GB, free: 116.3 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01469/1.168, allocations: 15.58 MB / 0.6377 GB, free: 98.23 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001468/1.169, allocations: 55.94 kB / 0.6377 GB, free: 98.18 MB / 462.1 MB Notification: Performance of matching and sorting (n=1189) (initialization): time 0.03945/1.208, allocations: 19.57 MB / 0.6569 GB, free: 78.57 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000235/1.208, allocations: 80 kB / 0.6569 GB, free: 78.49 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003053/1.209, allocations: 172 kB / 0.6571 GB, free: 78.32 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02035/1.229, allocations: 5.937 MB / 0.6629 GB, free: 72.38 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008077/1.237, allocations: 2.113 MB / 0.665 GB, free: 70.26 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02937/1.267, allocations: 24.76 MB / 0.6891 GB, free: 45.23 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008068/1.275, allocations: 0.5575 MB / 0.6897 GB, free: 44.67 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001776/1.277, allocations: 0.5117 MB / 0.6902 GB, free: 44.16 MB / 462.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.005665/1.282, allocations: 3.104 MB / 0.6932 GB, free: 41.04 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001431/1.284, allocations: 497.5 kB / 0.6937 GB, free: 40.55 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02877/1.312, allocations: 12.93 MB / 0.7063 GB, free: 27.55 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.183e-05/1.313, allocations: 51.98 kB / 0.7064 GB, free: 27.5 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.168e-05/1.313, allocations: 16 kB / 0.7064 GB, free: 27.48 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.73e-05/1.313, allocations: 15.95 kB / 0.7064 GB, free: 27.46 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2603/1.573, allocations: 24.58 MB / 0.7304 GB, free: 153.9 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.762e-05/1.573, allocations: 7.844 kB / 0.7304 GB, free: 153.9 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003029/1.576, allocations: 0.5753 MB / 0.731 GB, free: 153.9 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01919/1.595, allocations: 4.971 MB / 0.7358 GB, free: 153.2 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001018/1.596, allocations: 51.78 kB / 0.7359 GB, free: 153.1 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02465/1.621, allocations: 19.99 MB / 0.7554 GB, free: 142.8 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.634e-06/1.621, allocations: 7.875 kB / 0.7554 GB, free: 142.8 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03322/1.654, allocations: 17.46 MB / 0.7724 GB, free: 126.7 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003369/1.658, allocations: 1.243 MB / 0.7737 GB, free: 125.7 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001937/1.66, allocations: 59.94 kB / 0.7737 GB, free: 125.7 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003629/1.663, allocations: 255.6 kB / 0.774 GB, free: 125.4 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009039/1.664, allocations: 206.2 kB / 0.7742 GB, free: 125.2 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002805/1.665, allocations: 84 kB / 0.7742 GB, free: 125.2 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.005181/1.67, allocations: 3.418 MB / 0.7776 GB, free: 121.8 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.61e-07/1.67, allocations: 0 / 0.7776 GB, free: 121.8 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.008656/1.678, allocations: 1.755 MB / 0.7793 GB, free: 120 MB / 462.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.0007439/1.679, allocations: 212.8 kB / 0.7795 GB, free: 119.8 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01449/1.694, allocations: 10.93 MB / 0.7902 GB, free: 109 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.457e-05/1.694, allocations: 4 kB / 0.7902 GB, free: 109 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005056/1.699, allocations: 4.103 MB / 0.7942 GB, free: 104.9 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004062/1.703, allocations: 0.593 MB / 0.7948 GB, free: 104.3 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02555/1.729, allocations: 19.24 MB / 0.8135 GB, free: 85.17 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004536/1.733, allocations: 4.629 MB / 0.8181 GB, free: 80.5 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.007228/1.74, allocations: 2.971 MB / 0.821 GB, free: 77.53 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001848/1.742, allocations: 359.4 kB / 0.8213 GB, free: 77.18 MB / 462.1 MB Notification: Performance of SimCode: time 1.913e-06/1.742, allocations: 0 / 0.8213 GB, free: 77.18 MB / 462.1 MB Notification: Performance of Templates: time 0.3336/2.076, allocations: 78.16 MB / 0.8976 GB, free: 143.1 MB / 462.1 MB 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar2/Fourbar2.csv","../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches