Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002404/0.002404, allocations: 180.9 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.077/2.077, allocations: 205.2 MB / 219.4 MB, free: 14.21 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0011/0.0011, allocations: 78.72 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.043e-05/3.062e-05, allocations: 4 kB / 321.5 MB, free: 17.84 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09581/0.09586, allocations: 47.58 MB / 369.1 MB, free: 2.199 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4538/0.5497, allocations: 103.4 MB / 472.4 MB, free: 6.121 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003105/0.5501, allocations: 89.62 kB / 472.5 MB, free: 6.074 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7545/1.305, allocations: 111.3 MB / 0.5701 GB, free: 91.86 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.894e-06/1.305, allocations: 0 / 0.5701 GB, free: 91.86 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003707/1.305, allocations: 113.4 kB / 0.5702 GB, free: 91.85 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1743 * Number of variables: 1743 Notification: Performance of Generate backend data structure: time 0.01973/1.325, allocations: 4.925 MB / 0.575 GB, free: 89.78 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.036e-05/1.325, allocations: 15.31 kB / 0.5751 GB, free: 89.77 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05124/1.376, allocations: 6.898 MB / 0.5818 GB, free: 89.41 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02498/1.401, allocations: 6.774 MB / 0.5884 GB, free: 87.09 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005585/1.402, allocations: 396.6 kB / 0.5888 GB, free: 86.93 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002789/1.405, allocations: 0.513 MB / 0.5893 GB, free: 86.78 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04072/1.445, allocations: 12.56 MB / 0.6016 GB, free: 79.32 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003783/1.446, allocations: 59.47 kB / 0.6016 GB, free: 79.26 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002442/1.448, allocations: 239 kB / 0.6018 GB, free: 79.05 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002254/1.45, allocations: 1.058 MB / 0.6029 GB, free: 78 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03378/1.484, allocations: 10.38 MB / 0.613 GB, free: 67.62 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07852/1.563, allocations: 50.23 MB / 0.6621 GB, free: 16.15 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02115/1.584, allocations: 4.768 MB / 0.6667 GB, free: 11.24 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003912/1.588, allocations: 1.878 MB / 0.6686 GB, free: 9.352 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01736/1.605, allocations: 7.036 MB / 0.6754 GB, free: 2.082 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.675e-05/1.606, allocations: 59.48 kB / 0.6755 GB, free: 2.016 MB / 410.7 MB Notification: Performance of pre-optimization done (n=179): time 6.051e-06/1.606, allocations: 4 kB / 0.6755 GB, free: 2.012 MB / 410.7 MB Notification: Performance of matching and sorting (n=224): time 0.1064/1.712, allocations: 17.12 MB / 0.6922 GB, free: 0.8594 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001251/1.712, allocations: 201.9 kB / 0.6924 GB, free: 0.6211 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.31/2.022, allocations: 3.908 MB / 0.6962 GB, free: 101.5 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005354/2.023, allocations: 60.83 kB / 0.6963 GB, free: 101.5 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003647/2.027, allocations: 3.448 MB / 0.6996 GB, free: 100.4 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001414/2.028, allocations: 0.8427 MB / 0.7005 GB, free: 99.96 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008543/2.029, allocations: 127.5 kB / 0.7006 GB, free: 99.96 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0008168/2.03, allocations: 0.5776 MB / 0.7012 GB, free: 99.63 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006794/2.037, allocations: 2.115 MB / 0.7032 GB, free: 99.62 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008921/2.046, allocations: 5.859 MB / 0.7089 GB, free: 94.8 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0093/2.055, allocations: 3.519 MB / 0.7124 GB, free: 94.77 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002652/2.055, allocations: 37.75 kB / 0.7124 GB, free: 94.77 MB / 426.7 MB Notification: Performance of matching and sorting (n=835) (initialization): time 0.02673/2.082, allocations: 8.535 MB / 0.7207 GB, free: 93.44 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001281/2.082, allocations: 62.38 kB / 0.7208 GB, free: 93.44 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002025/2.082, allocations: 130.4 kB / 0.7209 GB, free: 93.44 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005572/2.088, allocations: 1.033 MB / 0.7219 GB, free: 93.25 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008995/2.097, allocations: 1.425 MB / 0.7233 GB, free: 93.07 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01458/2.112, allocations: 6.873 MB / 0.73 GB, free: 89.43 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007641/2.119, allocations: 337 kB / 0.7304 GB, free: 89.31 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001552/2.121, allocations: 384.8 kB / 0.7307 GB, free: 89.26 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 603 * Number of states: 0 () * Number of discrete variables: 46 (jointSSP.prismatic.positiveBranch,b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],jointSSP.rod2Color[3],jointSSP.rod2Color[2],jointSSP.rod2Color[1],jointSSP.sphereColor[3],jointSSP.sphereColor[2],jointSSP.sphereColor[1],jointSSP.rod1Color[3],jointSSP.rod1Color[2],jointSSP.rod1Color[1],jointSSP.rod1.massColor[3],jointSSP.rod1.massColor[2],jointSSP.rod1.massColor[1],jointSSP.boxColor[3],jointSSP.boxColor[2],jointSSP.boxColor[1],b3.color[3],b3.color[2],b3.color[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[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],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (771): * Single equations (assignments): 767 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 40} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002381/2.123, allocations: 0.5956 MB / 0.7313 GB, free: 88.77 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001134/2.125, allocations: 410.6 kB / 0.7317 GB, free: 88.55 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01201/2.137, allocations: 3.606 MB / 0.7352 GB, free: 87.19 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.481e-05/2.137, allocations: 30.28 kB / 0.7353 GB, free: 87.19 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.759e-05/2.137, allocations: 11.3 kB / 0.7353 GB, free: 87.18 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.167e-05/2.137, allocations: 10.69 kB / 0.7353 GB, free: 87.18 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03055/2.167, allocations: 9.811 MB / 0.7449 GB, free: 83.34 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.875e-05/2.167, allocations: 7.562 kB / 0.7449 GB, free: 83.34 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003345/2.171, allocations: 357.6 kB / 0.7452 GB, free: 83.31 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005032/2.176, allocations: 0.7973 MB / 0.746 GB, free: 83.14 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004777/2.176, allocations: 39.59 kB / 0.746 GB, free: 83.12 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01225/2.189, allocations: 5.607 MB / 0.7515 GB, free: 80.05 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.034e-05/2.189, allocations: 11.84 kB / 0.7515 GB, free: 80.04 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01655/2.205, allocations: 6.946 MB / 0.7583 GB, free: 76.37 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00283/2.208, allocations: 0.7126 MB / 0.759 GB, free: 75.92 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001298/2.209, allocations: 42.48 kB / 0.759 GB, free: 75.89 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003569/2.213, allocations: 100.7 kB / 0.7591 GB, free: 75.87 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007202/2.214, allocations: 144.3 kB / 0.7593 GB, free: 75.84 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002278/2.214, allocations: 70.3 kB / 0.7593 GB, free: 75.82 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.006909/2.221, allocations: 2.748 MB / 0.762 GB, free: 74.84 MB / 426.7 MB Notification: Performance of sort global known variables: time 8.42e-07/2.221, allocations: 0 / 0.762 GB, free: 74.84 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00821/2.229, allocations: 1.183 MB / 0.7632 GB, free: 74.7 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 2 (j1.phi,j1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (176): * Single equations (assignments): 172 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 30} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001035/2.23, allocations: 224.7 kB / 0.7634 GB, free: 74.55 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01197/2.242, allocations: 5.32 MB / 0.7686 GB, free: 70.14 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.186e-05/2.242, allocations: 5.812 kB / 0.7686 GB, free: 70.14 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004129/2.247, allocations: 1.772 MB / 0.7703 GB, free: 68.5 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004743/2.251, allocations: 0.5179 MB / 0.7708 GB, free: 68.06 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02688/2.278, allocations: 9.596 MB / 0.7802 GB, free: 59.44 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008431/2.287, allocations: 3.991 MB / 0.7841 GB, free: 56.44 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001763/2.289, allocations: 321.6 kB / 0.7844 GB, free: 56.13 MB / 426.7 MB Notification: Performance of SimCode: time 1.522e-06/2.289, allocations: 0 / 0.7844 GB, free: 56.13 MB / 426.7 MB Notification: Performance of Templates: time 0.476/2.765, allocations: 86.9 MB / 0.8693 GB, free: 103.7 MB / 442.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar_analytic/Fourbar_analytic.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches