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.002812/0.002818, allocations: 183.5 kB / 16.4 MB, free: 5.754 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.586/3.586, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.00182/0.00182, allocations: 100.4 kB / 270.9 MB, free: 8.383 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006289/0.0006291, allocations: 8 kB / 327 MB, free: 220 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5737/0.5744, allocations: 47.57 MB / 374.5 MB, free: 45.42 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic): time 0.1088/0.6833, allocations: 47.46 MB / 422 MB, free: 1.293 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.07482/0.7582, allocations: 11.76 MB / 433.8 MB, free: 5.5 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01994/0.7782, allocations: 239.4 kB / 434 MB, free: 5.266 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01667/0.795, allocations: 2.352 MB / 436.3 MB, free: 2.902 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.04773/0.8428, allocations: 6.787 MB / 443.1 MB, free: 12.09 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00783/0.8507, allocations: 0.8853 MB / 444 MB, free: 11.21 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.1052/0.9559, allocations: 27.5 MB / 471.5 MB, free: 15.68 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02349/0.9795, allocations: 6.537 MB / 478.1 MB, free: 9.074 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005695/0.9853, allocations: 1.339 MB / 479.4 MB, free: 7.73 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00634/0.9918, allocations: 1.768 MB / 481.2 MB, free: 5.957 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002054/0.9939, allocations: 184 kB / 481.3 MB, free: 5.777 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007647/1.002, allocations: 1.139 MB / 482.5 MB, free: 4.637 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004551/1.006, allocations: 2.038 MB / 484.5 MB, free: 2.594 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00279/1.009, allocations: 1.049 MB / 485.6 MB, free: 1.535 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01877/1.028, allocations: 7.564 MB / 493.1 MB, free: 9.953 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.234e-06/1.028, allocations: 0 / 493.1 MB, free: 9.953 MB / 378.7 MB Notification: Performance of FrontEnd: time 4.238e-06/1.028, allocations: 0 / 493.1 MB, free: 9.953 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.000404/1.028, allocations: 0 / 493.1 MB, free: 9.953 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: 1743 * Number of variables: 1743 Notification: Performance of Generate backend data structure: time 0.02925/1.058, allocations: 5.222 MB / 498.4 MB, free: 4.656 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.545e-05/1.058, allocations: 8.031 kB / 498.4 MB, free: 4.648 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.5503/1.608, allocations: 7.947 MB / 0.4944 GB, free: 109.7 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02333/1.632, allocations: 4.226 MB / 0.4986 GB, free: 107.4 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007403/1.632, allocations: 310 kB / 0.4989 GB, free: 107.3 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003386/1.636, allocations: 439.6 kB / 0.4993 GB, free: 107.2 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06609/1.702, allocations: 12.46 MB / 0.5115 GB, free: 97.77 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007019/1.703, allocations: 51.5 kB / 0.5115 GB, free: 97.71 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002837/1.706, allocations: 192.7 kB / 0.5117 GB, free: 97.56 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.008491/1.714, allocations: 2.031 MB / 0.5137 GB, free: 95.55 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05463/1.769, allocations: 10.53 MB / 0.524 GB, free: 85.04 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1178/1.887, allocations: 44.29 MB / 0.5672 GB, free: 39.78 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0354/1.922, allocations: 4.852 MB / 0.5719 GB, free: 34.78 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03575/1.958, allocations: 7.103 MB / 0.5789 GB, free: 27.45 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.124e-05/1.958, allocations: 47.55 kB / 0.5789 GB, free: 27.4 MB / 378.7 MB Notification: Performance of pre-optimization done (n=179): time 7.995e-06/1.958, allocations: 4 kB / 0.5789 GB, free: 27.39 MB / 378.7 MB Notification: Performance of matching and sorting (n=223): time 0.1722/2.13, allocations: 19.58 MB / 0.5981 GB, free: 7.707 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001238/2.131, allocations: 201.9 kB / 0.5982 GB, free: 7.465 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01565/2.146, allocations: 4.746 MB / 0.6029 GB, free: 2.707 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006781/2.147, allocations: 61.61 kB / 0.6029 GB, free: 2.645 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00471/2.152, allocations: 3.441 MB / 0.6063 GB, free: 15.2 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002076/2.154, allocations: 0.8324 MB / 0.6071 GB, free: 14.38 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001251/2.155, allocations: 128 kB / 0.6072 GB, free: 14.25 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.00105/2.156, allocations: 0.5794 MB / 0.6078 GB, free: 13.66 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009862/2.166, allocations: 2.203 MB / 0.61 GB, free: 11.45 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01503/2.181, allocations: 5.925 MB / 0.6157 GB, free: 3.672 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01377/2.195, allocations: 3.554 MB / 0.6192 GB, free: 120 kB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002001/2.196, allocations: 36 kB / 0.6192 GB, free: 84 kB / 394.7 MB Notification: Performance of matching and sorting (n=830) (initialization): time 0.04522/2.241, allocations: 8.83 MB / 0.6279 GB, free: 7.246 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002077/2.241, allocations: 63.98 kB / 0.6279 GB, free: 7.184 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004694/2.242, allocations: 136 kB / 0.6281 GB, free: 7.051 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01069/2.252, allocations: 1.222 MB / 0.6293 GB, free: 5.824 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01327/2.266, allocations: 1.415 MB / 0.6306 GB, free: 4.406 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03358/2.299, allocations: 7.755 MB / 0.6382 GB, free: 12.52 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01205/2.311, allocations: 335.5 kB / 0.6385 GB, free: 12.19 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002169/2.314, allocations: 384 kB / 0.6389 GB, free: 11.82 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 599 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (766): * Single equations (assignments): 762 * 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.01137/2.325, allocations: 2.486 MB / 0.6413 GB, free: 9.316 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001953/2.327, allocations: 414.6 kB / 0.6417 GB, free: 8.906 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02385/2.351, allocations: 3.877 MB / 0.6455 GB, free: 5.016 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.948e-05/2.351, allocations: 27.95 kB / 0.6455 GB, free: 4.988 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-05/2.351, allocations: 8 kB / 0.6455 GB, free: 4.98 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.951e-05/2.351, allocations: 7.969 kB / 0.6455 GB, free: 4.973 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.499/2.85, allocations: 10.2 MB / 0.6555 GB, free: 137.1 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.59e-05/2.851, allocations: 5.906 kB / 0.6555 GB, free: 137.1 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004371/2.855, allocations: 350.1 kB / 0.6558 GB, free: 137.1 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009084/2.864, allocations: 0.9892 MB / 0.6568 GB, free: 136.9 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007426/2.865, allocations: 39.59 kB / 0.6568 GB, free: 136.9 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02651/2.891, allocations: 6.425 MB / 0.6631 GB, free: 133.6 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.123e-05/2.892, allocations: 10.64 kB / 0.6631 GB, free: 133.6 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03129/2.923, allocations: 7.229 MB / 0.6702 GB, free: 130.2 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004362/2.927, allocations: 0.738 MB / 0.6709 GB, free: 130 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002252/2.93, allocations: 47.97 kB / 0.671 GB, free: 129.9 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005781/2.935, allocations: 104.4 kB / 0.6711 GB, free: 129.9 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001254/2.937, allocations: 139.4 kB / 0.6712 GB, free: 129.9 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006217/2.937, allocations: 68.42 kB / 0.6713 GB, free: 129.9 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.01199/2.95, allocations: 3.023 MB / 0.6742 GB, free: 128.8 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.242e-06/2.95, allocations: 0 / 0.6742 GB, free: 128.8 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.01352/2.963, allocations: 1.197 MB / 0.6754 GB, free: 128.7 MB / 426.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 (173): * Single equations (assignments): 169 * 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.001609/2.965, allocations: 225.3 kB / 0.6756 GB, free: 128.6 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01997/2.985, allocations: 5.481 MB / 0.6809 GB, free: 126.1 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.948e-05/2.985, allocations: 3.844 kB / 0.6809 GB, free: 126.1 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007038/2.992, allocations: 1.822 MB / 0.6827 GB, free: 124.5 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006863/2.999, allocations: 0.5099 MB / 0.6832 GB, free: 124 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04678/3.046, allocations: 13.56 MB / 0.6965 GB, free: 110.5 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01338/3.059, allocations: 3.984 MB / 0.7004 GB, free: 106.5 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002743/3.062, allocations: 319.4 kB / 0.7007 GB, free: 106.2 MB / 426.7 MB Notification: Performance of SimCode: time 2.825e-06/3.062, allocations: 5.969 kB / 0.7007 GB, free: 106.2 MB / 426.7 MB Notification: Performance of Templates: time 0.2567/3.319, allocations: 87.52 MB / 0.7861 GB, free: 18.5 MB / 426.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