Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_trunk_cpp_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_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001046/0.001046, allocations: 193.5 kB / 17.05 MB, free: 5.102 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.242/1.242, allocations: 226.6 MB / 244.3 MB, free: 8.207 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007558/0.0007561, allocations: 100.2 kB / 296.4 MB, free: 6.988 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002176/0.0002177, allocations: 4 kB / 356.2 MB, free: 11.19 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2115/0.2118, allocations: 51.28 MB / 407.5 MB, free: 27.85 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.03358/0.2454, allocations: 48.4 MB / 455.9 MB, free: 11.3 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.02112/0.2666, allocations: 10.67 MB / 466.6 MB, free: 0.6094 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006565/0.2732, allocations: 227.4 kB / 466.8 MB, free: 396 kB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006458/0.2797, allocations: 2.512 MB / 469.3 MB, free: 13.86 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0194/0.2991, allocations: 7.583 MB / 476.9 MB, free: 6.254 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003298/0.3024, allocations: 0.8465 MB / 477.7 MB, free: 5.406 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.2624/0.5648, allocations: 62.95 MB / 0.528 GB, free: 36.11 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005596/0.5705, allocations: 5.019 MB / 0.5329 GB, free: 33.06 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002563/0.5731, allocations: 1.888 MB / 0.5348 GB, free: 31.77 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003022/0.5761, allocations: 3.116 MB / 0.5378 GB, free: 29.52 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006437/0.5768, allocations: 237.9 kB / 0.538 GB, free: 29.29 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001911/0.5787, allocations: 1.109 MB / 0.5391 GB, free: 28.41 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001669/0.5804, allocations: 2.574 MB / 0.5416 GB, free: 26.57 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001002/0.5814, allocations: 1.192 MB / 0.5428 GB, free: 26.17 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005285/0.5867, allocations: 7.94 MB / 0.5505 GB, free: 19.27 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.062e-06/0.5867, allocations: 0 / 0.5505 GB, free: 19.27 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.765e-06/0.5867, allocations: 4 kB / 0.5505 GB, free: 19.27 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002163/0.5869, allocations: 0 / 0.5505 GB, free: 19.27 MB / 378.7 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.01123/0.5982, allocations: 6.145 MB / 0.5565 GB, free: 13.55 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.908e-05/0.5982, allocations: 8.031 kB / 0.5565 GB, free: 13.55 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01378/0.612, allocations: 4.033 MB / 0.5605 GB, free: 9.648 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007574/0.6196, allocations: 3.982 MB / 0.5644 GB, free: 6.734 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001751/0.6198, allocations: 320.7 kB / 0.5647 GB, free: 6.559 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001016/0.6208, allocations: 424.1 kB / 0.5651 GB, free: 6.289 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02188/0.6427, allocations: 15.71 MB / 0.5804 GB, free: 10.17 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001398/0.6429, allocations: 55.16 kB / 0.5805 GB, free: 10.14 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005396/0.6434, allocations: 210.1 kB / 0.5807 GB, free: 10.08 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004501/0.6479, allocations: 3.215 MB / 0.5838 GB, free: 7.434 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02524/0.6732, allocations: 14.09 MB / 0.5976 GB, free: 13.64 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07829/0.7515, allocations: 57.76 MB / 0.654 GB, free: 3.805 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01467/0.7663, allocations: 6.554 MB / 0.6604 GB, free: 13.02 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005583/0.7719, allocations: 3.672 MB / 0.664 GB, free: 9.332 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2223/0.9942, allocations: 14.64 MB / 0.6783 GB, free: 172.7 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.415e-05/0.9943, allocations: 67.22 kB / 0.6783 GB, free: 172.6 MB / 474.7 MB Notification: Performance of pre-optimization done (n=289): time 7.083e-06/0.9944, allocations: 0 / 0.6783 GB, free: 172.6 MB / 474.7 MB Notification: Performance of matching and sorting (n=339): time 0.1188/1.113, allocations: 42.58 MB / 0.7199 GB, free: 145.1 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.804e-05/1.113, allocations: 213.9 kB / 0.7201 GB, free: 144.9 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005311/1.119, allocations: 5.448 MB / 0.7254 GB, free: 139.5 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005322/1.119, allocations: 70.88 kB / 0.7255 GB, free: 139.4 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001526/1.121, allocations: 4.359 MB / 0.7298 GB, free: 135.1 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009189/1.122, allocations: 1.259 MB / 0.731 GB, free: 133.8 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003998/1.122, allocations: 183.1 kB / 0.7312 GB, free: 133.6 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002858/1.122, allocations: 0.6943 MB / 0.7319 GB, free: 132.9 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004939/1.127, allocations: 4.769 MB / 0.7365 GB, free: 128.1 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00631/1.134, allocations: 9.771 MB / 0.746 GB, free: 115.9 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006861/1.14, allocations: 6.668 MB / 0.7526 GB, free: 109.3 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.258e-05/1.141, allocations: 48 kB / 0.7526 GB, free: 109.2 MB / 474.7 MB Notification: Performance of matching and sorting (n=1189) (initialization): time 0.03426/1.175, allocations: 19.51 MB / 0.7717 GB, free: 89.66 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.14e-05/1.175, allocations: 84.89 kB / 0.7717 GB, free: 89.58 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001452/1.175, allocations: 176.1 kB / 0.7719 GB, free: 89.41 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01941/1.194, allocations: 5.991 MB / 0.7778 GB, free: 83.41 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006687/1.201, allocations: 2.113 MB / 0.7798 GB, free: 81.29 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02611/1.227, allocations: 24.76 MB / 0.804 GB, free: 56.24 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006747/1.234, allocations: 0.5617 MB / 0.8045 GB, free: 55.68 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00108/1.235, allocations: 0.5114 MB / 0.805 GB, free: 55.17 MB / 474.7 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 (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 42} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004163/1.239, allocations: 3.099 MB / 0.8081 GB, free: 52.05 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008043/1.24, allocations: 0.4898 MB / 0.8086 GB, free: 51.56 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02571/1.266, allocations: 12.94 MB / 0.8212 GB, free: 38.55 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.604e-05/1.266, allocations: 61.95 kB / 0.8212 GB, free: 38.5 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.501e-05/1.266, allocations: 8 kB / 0.8213 GB, free: 38.49 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.817e-05/1.266, allocations: 11.95 kB / 0.8213 GB, free: 38.48 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2111/1.477, allocations: 24.62 MB / 0.8453 GB, free: 155.8 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.401e-05/1.477, allocations: 9.062 kB / 0.8453 GB, free: 155.8 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002771/1.48, allocations: 0.5741 MB / 0.8459 GB, free: 155.8 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01666/1.497, allocations: 5.002 MB / 0.8508 GB, free: 155 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005899/1.497, allocations: 61.17 kB / 0.8508 GB, free: 155 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02085/1.518, allocations: 19.98 MB / 0.8703 GB, free: 145.4 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.603e-06/1.518, allocations: 12.03 kB / 0.8703 GB, free: 145.4 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02918/1.547, allocations: 17.43 MB / 0.8874 GB, free: 130.6 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001193/1.549, allocations: 0.5481 MB / 0.8879 GB, free: 130.3 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007944/1.549, allocations: 52.94 kB / 0.888 GB, free: 130.3 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002579/1.552, allocations: 264.3 kB / 0.8882 GB, free: 130 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004953/1.553, allocations: 197.4 kB / 0.8884 GB, free: 129.9 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000239/1.553, allocations: 80.7 kB / 0.8885 GB, free: 129.8 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.003816/1.557, allocations: 3.377 MB / 0.8918 GB, free: 126.4 MB / 474.7 MB Notification: Performance of sort global known variables: time 2.5e-07/1.557, allocations: 0 / 0.8918 GB, free: 126.4 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.0055/1.562, allocations: 1.757 MB / 0.8935 GB, free: 124.7 MB / 474.7 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 (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005196/1.563, allocations: 212.2 kB / 0.8937 GB, free: 124.5 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01174/1.574, allocations: 10.88 MB / 0.9043 GB, free: 113.7 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 5.099e-06/1.574, allocations: 0 / 0.9043 GB, free: 113.7 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004262/1.579, allocations: 4.091 MB / 0.9083 GB, free: 109.6 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003159/1.582, allocations: 0.601 MB / 0.9089 GB, free: 109 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02232/1.604, allocations: 19.18 MB / 0.9276 GB, free: 89.95 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003757/1.608, allocations: 4.595 MB / 0.9321 GB, free: 85.31 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002002/1.61, allocations: 415.4 kB / 0.9325 GB, free: 84.91 MB / 474.7 MB Notification: Performance of SimCode: time 9.52e-07/1.61, allocations: 0 / 0.9325 GB, free: 84.91 MB / 474.7 MB Notification: Performance of Templates: time 0.3098/1.92, allocations: 148.7 MB / 1.078 GB, free: 99.38 MB / 474.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.makefile (rm -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & ./Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2 --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar2/Fourbar2.csv","../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches