Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.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: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001241/0.001241, allocations: 122.8 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001226/0.001225, allocations: 201.2 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.395/1.395, allocations: 227.4 MB / 247 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001989/0.001989, allocations: 60.12 kB / 358.3 MB, free: 13.36 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2636/0.2656, allocations: 50.55 MB / 408.8 MB, free: 1.484 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic): time 0.01516/0.2808, allocations: 13.45 MB / 422.3 MB, free: 3.969 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0115/0.2924, allocations: 4.865 MB / 427.1 MB, free: 15.09 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002304/0.2947, allocations: 87.75 kB / 427.2 MB, free: 15 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00765/0.3024, allocations: 4.171 MB / 431.4 MB, free: 10.82 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005827/0.3083, allocations: 2.113 MB / 433.5 MB, free: 8.699 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002496/0.3108, allocations: 1.103 MB / 434.6 MB, free: 7.594 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.008482/0.3193, allocations: 6.063 MB / 440.7 MB, free: 1.523 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006212/0.3255, allocations: 5.293 MB / 446 MB, free: 12.16 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003489/0.329, allocations: 2.15 MB / 448.1 MB, free: 10.01 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004245/0.3333, allocations: 2.87 MB / 451 MB, free: 7.129 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001172/0.3345, allocations: 0.4922 MB / 451.5 MB, free: 6.637 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003072/0.3376, allocations: 1.611 MB / 453.1 MB, free: 5.023 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002598/0.3402, allocations: 2.556 MB / 455.7 MB, free: 2.461 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003493/0.3437, allocations: 2.953 MB / 458.6 MB, free: 15.49 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01149/0.3552, allocations: 9.644 MB / 468.3 MB, free: 5.812 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.546e-06/0.3552, allocations: 0 / 468.3 MB, free: 5.812 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.424e-06/0.3553, allocations: 0 / 468.3 MB, free: 5.812 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002744/0.3555, allocations: 0 / 468.3 MB, free: 5.812 MB / 382.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.01486/0.3704, allocations: 6.355 MB / 474.6 MB, free: 15.37 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.621e-05/0.3705, allocations: 8.031 kB / 474.6 MB, free: 15.36 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001947/0.3724, allocations: 0.9325 MB / 475.5 MB, free: 14.42 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03848/0.4109, allocations: 6.059 MB / 481.6 MB, free: 8.348 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009401/0.4203, allocations: 4.255 MB / 485.9 MB, free: 4.035 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002897/0.4207, allocations: 308.1 kB / 486.2 MB, free: 3.73 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001592/0.4223, allocations: 439.7 kB / 486.6 MB, free: 3.301 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02452/0.4468, allocations: 12.32 MB / 498.9 MB, free: 6.238 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001629/0.447, allocations: 55.52 kB / 499 MB, free: 6.184 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005524/0.4476, allocations: 191.9 kB / 499.2 MB, free: 5.996 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003275/0.4509, allocations: 2.027 MB / 0.4894 GB, free: 3.965 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02274/0.4736, allocations: 10.36 MB / 0.4996 GB, free: 9.59 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.289/0.7627, allocations: 43.99 MB / 0.5425 GB, free: 112 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01091/0.7737, allocations: 4.799 MB / 0.5472 GB, free: 111.3 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001992/0.7757, allocations: 1.977 MB / 0.5491 GB, free: 111.3 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008217/0.7839, allocations: 7.094 MB / 0.5561 GB, free: 108.1 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.818e-05/0.784, allocations: 57.59 kB / 0.5561 GB, free: 108 MB / 462.1 MB Notification: Performance of pre-optimization done (n=179): time 4.157e-06/0.784, allocations: 0 / 0.5561 GB, free: 108 MB / 462.1 MB Notification: Performance of matching and sorting (n=223): time 0.05458/0.8386, allocations: 19.26 MB / 0.5749 GB, free: 95.26 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.066e-05/0.8387, allocations: 205.9 kB / 0.5751 GB, free: 95.01 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004285/0.8429, allocations: 4.489 MB / 0.5795 GB, free: 90.59 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001835/0.8431, allocations: 65.53 kB / 0.5796 GB, free: 90.52 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001446/0.8446, allocations: 3.694 MB / 0.5832 GB, free: 87.11 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005388/0.8451, allocations: 0.8662 MB / 0.584 GB, free: 86.25 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001185/0.8463, allocations: 1.282 MB / 0.5853 GB, free: 84.96 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.861e-05/0.8464, allocations: 305.1 kB / 0.5856 GB, free: 84.66 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002405/0.8488, allocations: 2.234 MB / 0.5877 GB, free: 82.42 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003589/0.8524, allocations: 5.981 MB / 0.5936 GB, free: 74.65 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006732/0.8591, allocations: 8.926 MB / 0.6023 GB, free: 63.97 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.5e-05/0.8592, allocations: 40 kB / 0.6023 GB, free: 63.93 MB / 462.1 MB Notification: Performance of matching and sorting (n=830) (initialization): time 0.01204/0.8713, allocations: 9.068 MB / 0.6112 GB, free: 54.86 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.973e-05/0.8713, allocations: 60 kB / 0.6112 GB, free: 54.8 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.509e-05/0.8714, allocations: 136.8 kB / 0.6114 GB, free: 54.66 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003077/0.8745, allocations: 1.202 MB / 0.6126 GB, free: 53.46 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003416/0.878, allocations: 1.415 MB / 0.6139 GB, free: 52.04 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008506/0.8865, allocations: 8.008 MB / 0.6218 GB, free: 43.89 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003956/0.8904, allocations: 343.2 kB / 0.6221 GB, free: 43.56 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004486/0.8909, allocations: 383.1 kB / 0.6224 GB, free: 43.19 MB / 462.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.002801/0.8937, allocations: 2.484 MB / 0.6249 GB, free: 40.7 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006192/0.8943, allocations: 425.1 kB / 0.6253 GB, free: 40.28 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00632/0.9007, allocations: 3.896 MB / 0.6291 GB, free: 36.37 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.652e-05/0.9007, allocations: 28 kB / 0.6291 GB, free: 36.34 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.159e-05/0.9007, allocations: 4 kB / 0.6291 GB, free: 36.34 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.958e-05/0.9008, allocations: 19.45 kB / 0.6291 GB, free: 36.32 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0145/0.9153, allocations: 9.951 MB / 0.6389 GB, free: 26.27 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.455e-05/0.9153, allocations: 7.984 kB / 0.6389 GB, free: 26.26 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001302/0.9166, allocations: 332.1 kB / 0.6392 GB, free: 25.93 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002901/0.9195, allocations: 0.9801 MB / 0.6401 GB, free: 24.95 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000162/0.9197, allocations: 43.98 kB / 0.6402 GB, free: 24.91 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007321/0.927, allocations: 6.695 MB / 0.6467 GB, free: 18.07 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.481e-06/0.9271, allocations: 7.938 kB / 0.6467 GB, free: 18.07 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008649/0.9357, allocations: 6.629 MB / 0.6532 GB, free: 11.36 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009493/0.9367, allocations: 486.1 kB / 0.6537 GB, free: 10.86 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004232/0.9371, allocations: 36 kB / 0.6537 GB, free: 10.82 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001481/0.9386, allocations: 119.2 kB / 0.6538 GB, free: 10.71 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000316/0.9389, allocations: 145 kB / 0.6539 GB, free: 10.57 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001312/0.9391, allocations: 60 kB / 0.654 GB, free: 10.51 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003409/0.9425, allocations: 2.825 MB / 0.6568 GB, free: 7.684 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.9425, allocations: 0 / 0.6568 GB, free: 7.684 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004513/0.947, allocations: 1.156 MB / 0.6579 GB, free: 6.527 MB / 462.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.009512/0.9565, allocations: 7.335 MB / 0.6651 GB, free: 15.1 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.009622/0.9662, allocations: 5.548 MB / 0.6705 GB, free: 9.57 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 8.977e-06/0.9662, allocations: 0 / 0.6705 GB, free: 9.57 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00296/0.9692, allocations: 1.844 MB / 0.6723 GB, free: 7.711 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003281/0.9725, allocations: 0.579 MB / 0.6728 GB, free: 7.141 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07975/1.052, allocations: 51.48 MB / 0.7231 GB, free: 13.71 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005905/1.058, allocations: 3.871 MB / 0.7269 GB, free: 9.805 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.004709/1.063, allocations: 1.934 MB / 0.7288 GB, free: 7.863 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003132/1.066, allocations: 2.296 MB / 0.731 GB, free: 5.566 MB / 0.5294 GB Notification: Performance of SimCode: time 8.41e-07/1.066, allocations: 0 / 0.731 GB, free: 5.566 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3424/1.409, allocations: 83.7 MB / 0.8128 GB, free: 124 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 26.39/27.8, allocations: 7.438 kB / 0.8128 GB, free: 124 MB / 0.5294 GB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar_analytic/Fourbar_analytic.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches