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.001551/0.001551, allocations: 114.1 kB / 17.28 MB, free: 6.219 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.001798/0.001798, allocations: 189.3 kB / 18.2 MB, free: 5.297 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.602/1.602, allocations: 205.1 MB / 224.1 MB, free: 12.44 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.001662/0.001662, allocations: 47.92 kB / 280.2 MB, free: 3.496 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1272/0.1289, allocations: 46.63 MB / 326.8 MB, free: 4.805 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.2657/0.3947, allocations: 53.46 MB / 380.2 MB, free: 8.984 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02567/0.4204, allocations: 11.11 MB / 391.4 MB, free: 8.461 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01158/0.432, allocations: 235.9 kB / 391.6 MB, free: 8.457 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006213/0.4383, allocations: 3.035 MB / 394.6 MB, free: 7.777 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007208/0.4455, allocations: 2.386 MB / 397 MB, free: 6.992 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00268/0.4482, allocations: 0.9439 MB / 398 MB, free: 6.664 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.009422/0.4577, allocations: 6.882 MB / 404.8 MB, free: 4.164 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006368/0.4641, allocations: 4.561 MB / 409.4 MB, free: 1.559 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004537/0.4686, allocations: 2.287 MB / 411.7 MB, free: 420 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00569/0.4744, allocations: 3.594 MB / 415.3 MB, free: 14.54 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002676/0.4771, allocations: 484.3 kB / 415.7 MB, free: 14.54 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005907/0.483, allocations: 1.506 MB / 417.3 MB, free: 13.19 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00446/0.4875, allocations: 2.908 MB / 420.2 MB, free: 10.29 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005497/0.493, allocations: 3.282 MB / 423.4 MB, free: 7 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01328/0.5063, allocations: 10.14 MB / 433.6 MB, free: 13.09 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.618e-06/0.5064, allocations: 4 kB / 433.6 MB, free: 13.09 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.264e-06/0.5064, allocations: 3.938 kB / 433.6 MB, free: 13.09 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.000381/0.5068, allocations: 0 / 433.6 MB, free: 13.09 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.01701/0.5238, allocations: 7.293 MB / 440.9 MB, free: 5.871 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.331e-05/0.5239, allocations: 8.031 kB / 440.9 MB, free: 5.863 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01581/0.5397, allocations: 3.941 MB / 444.8 MB, free: 1.91 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009562/0.5493, allocations: 4.205 MB / 449 MB, free: 13.69 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003054/0.5496, allocations: 316.1 kB / 449.3 MB, free: 13.43 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002048/0.5517, allocations: 430.4 kB / 449.8 MB, free: 13.07 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02789/0.5796, allocations: 15.72 MB / 465.5 MB, free: 12.6 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001719/0.5798, allocations: 71.36 kB / 465.6 MB, free: 12.53 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00072/0.5805, allocations: 209.1 kB / 465.8 MB, free: 12.38 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004918/0.5854, allocations: 3.213 MB / 469 MB, free: 9.18 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02735/0.6128, allocations: 14.12 MB / 483.1 MB, free: 11.04 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07803/0.6909, allocations: 57.77 MB / 0.5282 GB, free: 20 kB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01419/0.7051, allocations: 6.568 MB / 0.5346 GB, free: 9.207 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005085/0.7103, allocations: 3.688 MB / 0.5382 GB, free: 5.508 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1961/0.9064, allocations: 14.63 MB / 0.5525 GB, free: 174.7 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.679e-05/0.9065, allocations: 64.98 kB / 0.5526 GB, free: 174.6 MB / 462.1 MB Notification: Performance of pre-optimization done (n=289): time 6.713e-06/0.9065, allocations: 0 / 0.5526 GB, free: 174.6 MB / 462.1 MB Notification: Performance of matching and sorting (n=339): time 0.1306/1.037, allocations: 42.4 MB / 0.594 GB, free: 148.2 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.571e-05/1.037, allocations: 214 kB / 0.5942 GB, free: 147.9 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006417/1.044, allocations: 5.502 MB / 0.5995 GB, free: 142.4 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000795/1.044, allocations: 73.7 kB / 0.5996 GB, free: 142.3 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00178/1.046, allocations: 4.355 MB / 0.6039 GB, free: 138 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001438/1.048, allocations: 1.254 MB / 0.6051 GB, free: 136.8 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00233/1.05, allocations: 1.856 MB / 0.6069 GB, free: 134.9 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 5.928e-05/1.05, allocations: 305.1 kB / 0.6072 GB, free: 134.6 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005393/1.056, allocations: 4.804 MB / 0.6119 GB, free: 129.8 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007626/1.063, allocations: 9.807 MB / 0.6215 GB, free: 117.5 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01425/1.077, allocations: 15.56 MB / 0.6367 GB, free: 99.48 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001382/1.078, allocations: 52 kB / 0.6367 GB, free: 99.43 MB / 462.1 MB Notification: Performance of matching and sorting (n=1189) (initialization): time 0.03803/1.116, allocations: 19.57 MB / 0.6558 GB, free: 79.82 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.617e-05/1.116, allocations: 80 kB / 0.6559 GB, free: 79.74 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001484/1.116, allocations: 172 kB / 0.6561 GB, free: 79.57 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02032/1.136, allocations: 5.941 MB / 0.6619 GB, free: 73.62 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007096/1.143, allocations: 2.113 MB / 0.6639 GB, free: 71.5 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02628/1.17, allocations: 26.15 MB / 0.6895 GB, free: 45.07 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008915/1.179, allocations: 0.5655 MB / 0.69 GB, free: 44.5 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001959/1.181, allocations: 0.5117 MB / 0.6905 GB, free: 43.99 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.006264/1.187, allocations: 3.091 MB / 0.6935 GB, free: 40.88 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001538/1.189, allocations: 0.4937 MB / 0.694 GB, free: 40.38 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02754/1.216, allocations: 12.93 MB / 0.7067 GB, free: 27.38 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.311e-05/1.216, allocations: 59.61 kB / 0.7067 GB, free: 27.32 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.814e-05/1.216, allocations: 12 kB / 0.7067 GB, free: 27.31 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.325e-05/1.216, allocations: 15.94 kB / 0.7067 GB, free: 27.3 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2764/1.493, allocations: 24.57 MB / 0.7307 GB, free: 153.7 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.767e-05/1.493, allocations: 7.719 kB / 0.7307 GB, free: 153.7 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003322/1.496, allocations: 0.5781 MB / 0.7313 GB, free: 153.7 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0179/1.514, allocations: 4.969 MB / 0.7361 GB, free: 153 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007662/1.515, allocations: 60.7 kB / 0.7362 GB, free: 152.9 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02408/1.539, allocations: 21.35 MB / 0.7571 GB, free: 141.7 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.646e-06/1.539, allocations: 7.844 kB / 0.7571 GB, free: 141.7 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03234/1.571, allocations: 17.46 MB / 0.7741 GB, free: 125.3 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003507/1.575, allocations: 1.249 MB / 0.7753 GB, free: 124.3 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001768/1.577, allocations: 52 kB / 0.7754 GB, free: 124.2 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004052/1.581, allocations: 259.6 kB / 0.7756 GB, free: 124 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009294/1.582, allocations: 201 kB / 0.7758 GB, free: 123.8 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003185/1.582, allocations: 87.91 kB / 0.7759 GB, free: 123.7 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00506/1.587, allocations: 3.418 MB / 0.7792 GB, free: 120.3 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.81e-07/1.587, allocations: 4.656 kB / 0.7792 GB, free: 120.3 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.008298/1.596, allocations: 1.757 MB / 0.781 GB, free: 118.5 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.0008181/1.596, allocations: 204.8 kB / 0.7812 GB, free: 118.3 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.02223/1.619, allocations: 15.73 MB / 0.7965 GB, free: 102.7 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.279e-05/1.619, allocations: 4 kB / 0.7965 GB, free: 102.7 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005322/1.624, allocations: 4.108 MB / 0.8005 GB, free: 98.61 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004427/1.628, allocations: 0.6128 MB / 0.8011 GB, free: 98.02 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02622/1.655, allocations: 19.25 MB / 0.8199 GB, free: 78.89 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004384/1.659, allocations: 4.626 MB / 0.8245 GB, free: 74.23 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.006704/1.666, allocations: 2.966 MB / 0.8274 GB, free: 71.26 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001381/1.667, allocations: 351.4 kB / 0.8277 GB, free: 70.91 MB / 462.1 MB Notification: Performance of SimCode: time 1.032e-06/1.667, allocations: 0 / 0.8277 GB, free: 70.91 MB / 462.1 MB Notification: Performance of Templates: time 0.287/1.954, allocations: 81.14 MB / 0.9069 GB, free: 146.8 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