Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.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) 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(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001007/0.001006, allocations: 99.92 kB / 17.01 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00165/0.001649, allocations: 194.7 kB / 17.91 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.352/1.352, allocations: 227.7 MB / 246.4 MB, free: 11.53 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002373/0.0002374, allocations: 11.98 kB / 307.1 MB, free: 1.16 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0975/0.09775, allocations: 51.52 MB / 358.6 MB, free: 13.64 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.2466/0.3444, allocations: 69.76 MB / 428.4 MB, free: 5.418 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.03708/0.3815, allocations: 14.98 MB / 443.4 MB, free: 6.395 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01092/0.3925, allocations: 351.1 kB / 443.7 MB, free: 6.051 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008797/0.4013, allocations: 3.62 MB / 447.3 MB, free: 2.414 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02492/0.4263, allocations: 10.59 MB / 457.9 MB, free: 7.785 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004249/0.4305, allocations: 1.225 MB / 459.1 MB, free: 6.559 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.3562/0.7867, allocations: 121 MB / 0.5666 GB, free: 80.33 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01164/0.7984, allocations: 10.2 MB / 0.5765 GB, free: 73.18 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003926/0.8023, allocations: 2.394 MB / 0.5789 GB, free: 71.55 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004478/0.8068, allocations: 3.632 MB / 0.5824 GB, free: 68.94 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007134/0.8076, allocations: 248 kB / 0.5827 GB, free: 68.7 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002258/0.8098, allocations: 1.295 MB / 0.5839 GB, free: 67.65 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00218/0.812, allocations: 3.203 MB / 0.587 GB, free: 65.29 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001257/0.8133, allocations: 1.435 MB / 0.5884 GB, free: 64.79 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006973/0.8203, allocations: 10.3 MB / 0.5985 GB, free: 55.86 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.134e-06/0.8203, allocations: 0 / 0.5985 GB, free: 55.86 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.8203, allocations: 4 kB / 0.5985 GB, free: 55.85 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0002502/0.8206, allocations: 0 / 0.5985 GB, free: 55.85 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2348 * Number of variables: 2348 Notification: Performance of Generate backend data structure: time 0.01517/0.8358, allocations: 7.399 MB / 0.6057 GB, free: 49.05 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.972e-05/0.8358, allocations: 8.031 kB / 0.6057 GB, free: 49.04 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03761/0.8735, allocations: 4.962 MB / 0.6106 GB, free: 44.22 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01229/0.8858, allocations: 6.152 MB / 0.6166 GB, free: 39.86 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002167/0.886, allocations: 436.4 kB / 0.617 GB, free: 39.62 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001144/0.8872, allocations: 0.577 MB / 0.6176 GB, free: 39.24 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02463/0.9118, allocations: 17.06 MB / 0.6342 GB, free: 26.14 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001769/0.912, allocations: 85.86 kB / 0.6343 GB, free: 26.09 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006282/0.9127, allocations: 266.6 kB / 0.6346 GB, free: 26.02 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003403/0.9161, allocations: 2.655 MB / 0.6372 GB, free: 23.83 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02582/0.9419, allocations: 14.78 MB / 0.6516 GB, free: 13.11 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.423/1.365, allocations: 64.48 MB / 0.7146 GB, free: 168.4 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02954/1.395, allocations: 8.82 MB / 0.7232 GB, free: 167.7 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005852/1.4, allocations: 5.058 MB / 0.7281 GB, free: 167.7 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02212/1.423, allocations: 18.63 MB / 0.7463 GB, free: 160 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.576e-05/1.423, allocations: 60 kB / 0.7464 GB, free: 160 MB / 494.1 MB Notification: Performance of pre-optimization done (n=281): time 5.39e-06/1.423, allocations: 0 / 0.7464 GB, free: 160 MB / 494.1 MB Notification: Performance of matching and sorting (n=374): time 0.2199/1.643, allocations: 75.09 MB / 0.8197 GB, free: 93.42 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001566/1.643, allocations: 380.6 kB / 0.8201 GB, free: 92.96 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01135/1.654, allocations: 6.326 MB / 0.8262 GB, free: 86.64 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001092/1.655, allocations: 81.7 kB / 0.8263 GB, free: 86.55 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00263/1.658, allocations: 4.749 MB / 0.831 GB, free: 81.82 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001669/1.66, allocations: 1.375 MB / 0.8323 GB, free: 80.46 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001112/1.661, allocations: 193.3 kB / 0.8325 GB, free: 80.27 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0005336/1.661, allocations: 0.7069 MB / 0.8332 GB, free: 79.56 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007244/1.668, allocations: 5.953 MB / 0.839 GB, free: 73.6 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009314/1.678, allocations: 10.98 MB / 0.8497 GB, free: 60.25 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009953/1.688, allocations: 7.895 MB / 0.8574 GB, free: 52.48 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000149/1.688, allocations: 52 kB / 0.8575 GB, free: 52.43 MB / 494.1 MB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.04236/1.73, allocations: 23.27 MB / 0.8802 GB, free: 29.11 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002027/1.731, allocations: 83.98 kB / 0.8803 GB, free: 29.03 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002596/1.731, allocations: 176.2 kB / 0.8804 GB, free: 28.86 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01984/1.751, allocations: 7.517 MB / 0.8878 GB, free: 21.33 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.2119/1.963, allocations: 2.181 MB / 0.8899 GB, free: 162.2 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05045/2.013, allocations: 35.57 MB / 0.9246 GB, free: 149.2 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009263/2.022, allocations: 0.7469 MB / 0.9254 GB, free: 149.1 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002259/2.025, allocations: 0.5284 MB / 0.9259 GB, free: 149 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 785 * Number of states: 0 () * Number of discrete variables: 51 (sensorJoint4.arrowColor[3],sensorJoint4.arrowColor[2],sensorJoint4.arrowColor[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],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],revolute4cut.cylinderColor[3],revolute4cut.cylinderColor[2],revolute4cut.cylinderColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1091): * Single equations (assignments): 1084 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(6,77.8%) 67,(2,100.0%) 18} * Non-linear torn systems: 1 {2 24} Notification: Performance of prepare postOptimizeDAE: time 0.008312/2.033, allocations: 3.435 MB / 0.9292 GB, free: 147.6 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001737/2.035, allocations: 0.5687 MB / 0.9298 GB, free: 147.6 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03165/2.066, allocations: 16.94 MB / 0.9463 GB, free: 140 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.982e-05/2.067, allocations: 60.5 kB / 0.9464 GB, free: 140 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.49e-05/2.067, allocations: 16 kB / 0.9464 GB, free: 140 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.235e-05/2.067, allocations: 15.94 kB / 0.9464 GB, free: 140 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05319/2.12, allocations: 32.14 MB / 0.9778 GB, free: 107.5 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.824e-05/2.12, allocations: 7.781 kB / 0.9778 GB, free: 107.5 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003054/2.123, allocations: 0.6045 MB / 0.9784 GB, free: 106.9 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01813/2.141, allocations: 7.148 MB / 0.9854 GB, free: 99.83 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009142/2.142, allocations: 65.08 kB / 0.9855 GB, free: 99.77 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04221/2.184, allocations: 33.87 MB / 1.019 GB, free: 65.78 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.991e-06/2.184, allocations: 0 / 1.019 GB, free: 65.78 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03776/2.222, allocations: 24.58 MB / 1.043 GB, free: 41.22 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001532/2.224, allocations: 0.6341 MB / 1.043 GB, free: 40.56 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00179/2.226, allocations: 64 kB / 1.043 GB, free: 40.5 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004333/2.23, allocations: 446.8 kB / 1.044 GB, free: 40.06 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001123/2.231, allocations: 254.4 kB / 1.044 GB, free: 39.82 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005501/2.232, allocations: 96 kB / 1.044 GB, free: 39.72 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.006585/2.238, allocations: 4.005 MB / 1.048 GB, free: 35.72 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.3e-07/2.238, allocations: 0 / 1.048 GB, free: 35.72 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.01178/2.25, allocations: 2.277 MB / 1.05 GB, free: 33.46 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 2 (revolute1.phi,revolute1.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 (243): * Single equations (assignments): 236 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(5,84.0%) 62,(2,100.0%) 15} * Non-linear torn systems: 1 {2 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.001245/2.251, allocations: 275.8 kB / 1.05 GB, free: 33.2 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.02157/2.273, allocations: 14.82 MB / 1.065 GB, free: 18.42 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 9.788e-06/2.273, allocations: 0 / 1.065 GB, free: 18.42 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.1853/2.458, allocations: 6.682 MB / 1.071 GB, free: 164 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006363/2.465, allocations: 0.834 MB / 1.072 GB, free: 164 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03239/2.497, allocations: 22.74 MB / 1.094 GB, free: 156.3 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005141/2.502, allocations: 5.265 MB / 1.1 GB, free: 154.5 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.006822/2.509, allocations: 3.018 MB / 1.102 GB, free: 154.4 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001668/2.511, allocations: 391.3 kB / 1.103 GB, free: 154.4 MB / 494.1 MB Notification: Performance of SimCode: time 1.021e-06/2.511, allocations: 0 / 1.103 GB, free: 154.4 MB / 494.1 MB Notification: Performance of Templates: time 0.1352/2.646, allocations: 103.9 MB / 1.204 GB, free: 59 MB / 494.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/PlanarFourbar/PlanarFourbar.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches