Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.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: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001173/0.001173, allocations: 112.2 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.001272/0.001272, allocations: 189.3 kB / 18.2 MB, free: 5.301 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.344/1.344, allocations: 205.1 MB / 224 MB, free: 12.45 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.001189/0.001189, allocations: 56.14 kB / 280.3 MB, free: 3.406 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09763/0.09883, allocations: 46.63 MB / 326.9 MB, free: 4.711 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic): time 0.2149/0.3138, allocations: 55.46 MB / 382.3 MB, free: 9.043 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02466/0.3385, allocations: 11.81 MB / 394.1 MB, free: 8.082 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01406/0.3527, allocations: 241.7 kB / 394.4 MB, free: 8.082 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007523/0.3602, allocations: 4.062 MB / 398.4 MB, free: 6.949 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006572/0.3668, allocations: 1.995 MB / 400.4 MB, free: 6.289 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002846/0.3697, allocations: 1.038 MB / 401.5 MB, free: 5.898 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.007994/0.3777, allocations: 5.858 MB / 407.3 MB, free: 3.609 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005387/0.3831, allocations: 5.594 MB / 412.9 MB, free: 0.5195 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003508/0.3866, allocations: 2.22 MB / 415.1 MB, free: 15.41 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004194/0.3908, allocations: 3.176 MB / 418.3 MB, free: 13.63 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001269/0.3921, allocations: 0.4922 MB / 418.8 MB, free: 13.14 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003726/0.3959, allocations: 1.643 MB / 420.5 MB, free: 11.55 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002588/0.3985, allocations: 2.613 MB / 423.1 MB, free: 8.945 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003595/0.4021, allocations: 2.993 MB / 426.1 MB, free: 5.949 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01083/0.4129, allocations: 9.515 MB / 435.6 MB, free: 12.64 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.715e-06/0.413, allocations: 4 kB / 435.6 MB, free: 12.63 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.413, allocations: 3.938 kB / 435.6 MB, free: 12.63 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002594/0.4132, allocations: 0 / 435.6 MB, free: 12.63 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: 1743 * Number of variables: 1743 Notification: Performance of Generate backend data structure: time 0.01411/0.4273, allocations: 6.219 MB / 441.8 MB, free: 6.438 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.157e-05/0.4274, allocations: 16.02 kB / 441.8 MB, free: 6.422 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002004/0.4294, allocations: 0.9207 MB / 442.7 MB, free: 5.523 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0364/0.4658, allocations: 6.026 MB / 448.8 MB, free: 15.48 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008976/0.4748, allocations: 4.711 MB / 453.5 MB, free: 10.78 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000214/0.4751, allocations: 308.6 kB / 453.8 MB, free: 10.51 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00111/0.4762, allocations: 440.6 kB / 454.2 MB, free: 10.11 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02042/0.4966, allocations: 12.32 MB / 466.5 MB, free: 13.16 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001348/0.4968, allocations: 47.58 kB / 466.6 MB, free: 13.11 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000463/0.4973, allocations: 189.3 kB / 466.8 MB, free: 12.96 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002854/0.5001, allocations: 2.034 MB / 468.8 MB, free: 10.93 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02101/0.5211, allocations: 10.35 MB / 479.1 MB, free: 0.5703 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05301/0.5742, allocations: 44.18 MB / 0.5111 GB, free: 3.359 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01226/0.5865, allocations: 4.807 MB / 0.5158 GB, free: 14.41 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002422/0.589, allocations: 1.963 MB / 0.5177 GB, free: 12.44 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009827/0.5988, allocations: 7.001 MB / 0.5245 GB, free: 5.207 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.097e-05/0.5989, allocations: 59.5 kB / 0.5246 GB, free: 5.137 MB / 446.1 MB Notification: Performance of pre-optimization done (n=179): time 4.138e-06/0.5989, allocations: 0 / 0.5246 GB, free: 5.137 MB / 446.1 MB Notification: Performance of matching and sorting (n=223): time 0.1948/0.7937, allocations: 19.2 MB / 0.5433 GB, free: 162.4 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.604e-05/0.7938, allocations: 209.1 kB / 0.5435 GB, free: 162.2 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004882/0.7987, allocations: 4.523 MB / 0.5479 GB, free: 160.6 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002655/0.799, allocations: 60.84 kB / 0.548 GB, free: 160.5 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001423/0.8004, allocations: 3.563 MB / 0.5515 GB, free: 157.8 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005231/0.8009, allocations: 0.8321 MB / 0.5523 GB, free: 157.2 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001157/0.8021, allocations: 1.278 MB / 0.5535 GB, free: 156.5 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.029e-05/0.8021, allocations: 301.1 kB / 0.5538 GB, free: 156.2 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002353/0.8045, allocations: 2.236 MB / 0.556 GB, free: 155.5 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003523/0.808, allocations: 5.972 MB / 0.5618 GB, free: 149.5 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006474/0.8145, allocations: 8.91 MB / 0.5705 GB, free: 140 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.051e-05/0.8146, allocations: 36 kB / 0.5706 GB, free: 139.9 MB / 446.1 MB Notification: Performance of matching and sorting (n=830) (initialization): time 0.0118/0.8264, allocations: 9.053 MB / 0.5794 GB, free: 130.9 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.675e-05/0.8265, allocations: 60 kB / 0.5795 GB, free: 130.8 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.49e-05/0.8266, allocations: 132 kB / 0.5796 GB, free: 130.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003142/0.8297, allocations: 1.207 MB / 0.5808 GB, free: 129.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003434/0.8332, allocations: 1.411 MB / 0.5822 GB, free: 128.1 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008574/0.8417, allocations: 8.041 MB / 0.59 GB, free: 119.9 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004712/0.8465, allocations: 339.5 kB / 0.5903 GB, free: 119.6 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005482/0.847, allocations: 387.5 kB / 0.5907 GB, free: 119.2 MB / 446.1 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,40,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003042/0.8501, allocations: 2.486 MB / 0.5931 GB, free: 116.7 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006046/0.8507, allocations: 406.7 kB / 0.5935 GB, free: 116.3 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006093/0.8568, allocations: 3.889 MB / 0.5973 GB, free: 112.4 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.298e-05/0.8568, allocations: 24 kB / 0.5973 GB, free: 112.4 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.197e-05/0.8569, allocations: 12 kB / 0.5973 GB, free: 112.3 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.626e-05/0.8569, allocations: 7.969 kB / 0.5974 GB, free: 112.3 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01418/0.8711, allocations: 10.2 MB / 0.6073 GB, free: 102 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.239e-05/0.8711, allocations: 8 kB / 0.6073 GB, free: 102 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00134/0.8725, allocations: 343.5 kB / 0.6077 GB, free: 101.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002842/0.8753, allocations: 0.984 MB / 0.6086 GB, free: 100.7 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001413/0.8755, allocations: 47.88 kB / 0.6087 GB, free: 100.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00725/0.8827, allocations: 6.665 MB / 0.6152 GB, free: 93.86 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.558e-06/0.8827, allocations: 8 kB / 0.6152 GB, free: 93.85 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008386/0.8911, allocations: 6.618 MB / 0.6216 GB, free: 87.14 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001551/0.8927, allocations: 0.7256 MB / 0.6223 GB, free: 86.4 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000433/0.8931, allocations: 49.86 kB / 0.6224 GB, free: 86.36 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00143/0.8946, allocations: 103.9 kB / 0.6225 GB, free: 86.25 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003102/0.8949, allocations: 145.1 kB / 0.6226 GB, free: 86.11 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001246/0.895, allocations: 60 kB / 0.6227 GB, free: 86.05 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003744/0.8988, allocations: 2.856 MB / 0.6255 GB, free: 83.2 MB / 446.1 MB Notification: Performance of sort global known variables: time 5.01e-07/0.8988, allocations: 0 / 0.6255 GB, free: 83.2 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004926/0.9037, allocations: 1.18 MB / 0.6266 GB, free: 82.02 MB / 446.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 (173): * Single equations (assignments): 169 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,30,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.009615/0.9133, allocations: 7.339 MB / 0.6338 GB, free: 74.61 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01075/0.9241, allocations: 6.611 MB / 0.6403 GB, free: 68.04 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.079e-05/0.9242, allocations: 3.984 kB / 0.6403 GB, free: 68.03 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00218/0.9264, allocations: 1.83 MB / 0.642 GB, free: 66.19 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004429/0.9308, allocations: 0.5609 MB / 0.6426 GB, free: 65.64 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2813/1.212, allocations: 62.12 MB / 0.7033 GB, free: 149.8 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006154/1.218, allocations: 3.881 MB / 0.7071 GB, free: 149 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004998/1.223, allocations: 1.929 MB / 0.7089 GB, free: 148.9 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002951/1.226, allocations: 2.293 MB / 0.7112 GB, free: 148.5 MB / 446.1 MB Notification: Performance of SimCode: time 3.286e-06/1.226, allocations: 0 / 0.7112 GB, free: 148.5 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.226/3.453, allocations: 88.13 MB / 0.7972 GB, free: 73.84 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001473/3.453, allocations: 234.5 kB / 0.7975 GB, free: 73.59 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.485/7.938, allocations: 0 / 0.7975 GB, free: 73.59 MB / 446.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_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_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches