Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.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.Fourbar2,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001423/0.001423, allocations: 102.4 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001355/0.001355, allocations: 216.5 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.421/1.421, allocations: 227.4 MB / 246.8 MB, free: 10.57 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001362/0.001362, allocations: 60.52 kB / 307.1 MB, free: 0.5039 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.107/0.1084, allocations: 50.53 MB / 357.6 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.2117/0.3201, allocations: 14.97 MB / 372.6 MB, free: 9.145 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01096/0.3311, allocations: 4.832 MB / 377.4 MB, free: 8.965 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003553/0.3347, allocations: 92.56 kB / 377.5 MB, free: 8.949 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007235/0.342, allocations: 3.154 MB / 380.6 MB, free: 8.105 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008604/0.3507, allocations: 2.515 MB / 383.1 MB, free: 7.219 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002927/0.3536, allocations: 0.9906 MB / 384.1 MB, free: 6.879 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01111/0.3648, allocations: 7.039 MB / 391.2 MB, free: 4.219 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007322/0.3721, allocations: 4.328 MB / 395.5 MB, free: 1.762 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005807/0.378, allocations: 2.216 MB / 397.7 MB, free: 0.6523 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005228/0.3832, allocations: 3.232 MB / 400.9 MB, free: 14.88 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00187/0.3851, allocations: 484 kB / 401.4 MB, free: 14.41 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004298/0.3894, allocations: 1.476 MB / 402.9 MB, free: 12.98 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004292/0.3937, allocations: 2.831 MB / 405.7 MB, free: 10.16 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006788/0.4006, allocations: 3.286 MB / 409 MB, free: 6.867 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01454/0.4151, allocations: 10.12 MB / 419.1 MB, free: 12.97 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.273e-06/0.4152, allocations: 0 / 419.1 MB, free: 12.97 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.086e-06/0.4152, allocations: 4 kB / 419.1 MB, free: 12.97 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0004458/0.4156, allocations: 0 / 419.1 MB, free: 12.97 MB / 334.1 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.02392/0.4396, allocations: 7.44 MB / 426.6 MB, free: 5.605 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.984e-05/0.4396, allocations: 8.031 kB / 426.6 MB, free: 5.598 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003241/0.4429, allocations: 1.138 MB / 427.7 MB, free: 4.5 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04556/0.4885, allocations: 7.511 MB / 435.2 MB, free: 12.97 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01203/0.5005, allocations: 4.572 MB / 439.8 MB, free: 8.387 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000426/0.501, allocations: 325.9 kB / 440.1 MB, free: 8.125 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002263/0.5033, allocations: 433.9 kB / 440.6 MB, free: 7.758 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03043/0.5337, allocations: 15.61 MB / 456.2 MB, free: 7.398 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003031/0.5341, allocations: 63.42 kB / 456.2 MB, free: 7.336 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001669/0.5358, allocations: 202 kB / 456.4 MB, free: 7.195 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005607/0.5414, allocations: 3.22 MB / 459.6 MB, free: 3.988 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02819/0.5696, allocations: 13.91 MB / 473.5 MB, free: 6.059 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07865/0.6483, allocations: 57.35 MB / 0.5185 GB, free: 11.2 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01364/0.662, allocations: 6.491 MB / 0.5248 GB, free: 4.453 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004899/0.6669, allocations: 3.578 MB / 0.5283 GB, free: 0.8594 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1979/0.8649, allocations: 14.31 MB / 0.5423 GB, free: 133.8 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.025e-05/0.8649, allocations: 60.89 kB / 0.5423 GB, free: 133.7 MB / 446.1 MB Notification: Performance of pre-optimization done (n=286): time 6.793e-06/0.865, allocations: 1.812 kB / 0.5423 GB, free: 133.7 MB / 446.1 MB Notification: Performance of matching and sorting (n=336): time 0.1381/1.003, allocations: 41.59 MB / 0.5829 GB, free: 109.7 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.481e-05/1.003, allocations: 221.8 kB / 0.5831 GB, free: 109.5 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00601/1.009, allocations: 5.483 MB / 0.5885 GB, free: 104 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007684/1.01, allocations: 77.14 kB / 0.5886 GB, free: 103.9 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001965/1.012, allocations: 4.415 MB / 0.5929 GB, free: 99.51 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00122/1.013, allocations: 1.244 MB / 0.5941 GB, free: 98.27 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002077/1.015, allocations: 1.779 MB / 0.5958 GB, free: 96.48 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.605e-05/1.015, allocations: 301.1 kB / 0.5961 GB, free: 96.19 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005001/1.02, allocations: 4.62 MB / 0.6006 GB, free: 91.56 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0065/1.027, allocations: 9.595 MB / 0.61 GB, free: 79.52 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01294/1.04, allocations: 15.26 MB / 0.6249 GB, free: 61.79 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001038/1.04, allocations: 52 kB / 0.625 GB, free: 61.74 MB / 446.1 MB Notification: Performance of matching and sorting (n=1148) (initialization): time 0.03955/1.079, allocations: 18.96 MB / 0.6435 GB, free: 42.73 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001019/1.08, allocations: 76 kB / 0.6435 GB, free: 42.66 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001874/1.08, allocations: 176 kB / 0.6437 GB, free: 42.48 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02235/1.102, allocations: 5.781 MB / 0.6494 GB, free: 36.7 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00681/1.109, allocations: 2.051 MB / 0.6514 GB, free: 34.64 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02746/1.137, allocations: 25.64 MB / 0.6764 GB, free: 8.711 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007396/1.144, allocations: 0.5459 MB / 0.6769 GB, free: 8.168 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001694/1.146, allocations: 0.5039 MB / 0.6774 GB, free: 7.664 MB / 446.1 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 (1057): * Single equations (assignments): 1049 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,42,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.006859/1.153, allocations: 3.097 MB / 0.6804 GB, free: 4.555 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001601/1.154, allocations: 0.4936 MB / 0.6809 GB, free: 4.055 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.224/1.378, allocations: 12.59 MB / 0.6932 GB, free: 137.5 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001439/1.378, allocations: 54.5 kB / 0.6933 GB, free: 137.5 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.158e-05/1.378, allocations: 8.812 kB / 0.6933 GB, free: 137.5 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.667e-05/1.378, allocations: 16.16 kB / 0.6933 GB, free: 137.5 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05311/1.432, allocations: 24.25 MB / 0.717 GB, free: 129.6 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.009e-05/1.432, allocations: 3.969 kB / 0.717 GB, free: 129.6 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003134/1.435, allocations: 0.5758 MB / 0.7176 GB, free: 129.5 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01847/1.453, allocations: 4.811 MB / 0.7223 GB, free: 128.8 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007855/1.454, allocations: 58.09 kB / 0.7223 GB, free: 128.8 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02216/1.476, allocations: 20.91 MB / 0.7427 GB, free: 116.8 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.39e-06/1.476, allocations: 13.53 kB / 0.7427 GB, free: 116.8 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03195/1.508, allocations: 16.98 MB / 0.7593 GB, free: 102 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001693/1.51, allocations: 0.5323 MB / 0.7598 GB, free: 101.8 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00085/1.511, allocations: 55.52 kB / 0.7599 GB, free: 101.7 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002754/1.514, allocations: 258.9 kB / 0.7601 GB, free: 101.5 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007277/1.514, allocations: 189.1 kB / 0.7603 GB, free: 101.3 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002536/1.515, allocations: 87.8 kB / 0.7604 GB, free: 101.2 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004347/1.519, allocations: 3.422 MB / 0.7638 GB, free: 97.8 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.51e-07/1.519, allocations: 0 / 0.7638 GB, free: 97.8 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.006976/1.526, allocations: 1.68 MB / 0.7654 GB, free: 96.13 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 (251): * Single equations (assignments): 243 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,38,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.03137/1.557, allocations: 17.67 MB / 0.7826 GB, free: 78.56 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.02166/1.579, allocations: 15.26 MB / 0.7975 GB, free: 63.39 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.147e-05/1.579, allocations: 0 / 0.7975 GB, free: 63.39 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004661/1.584, allocations: 4.009 MB / 0.8015 GB, free: 59.37 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003646/1.587, allocations: 0.6488 MB / 0.8021 GB, free: 58.75 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3742/1.962, allocations: 98.17 MB / 0.898 GB, free: 129.6 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005215/1.967, allocations: 4.622 MB / 0.9025 GB, free: 128 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.007075/1.974, allocations: 2.977 MB / 0.9054 GB, free: 127.9 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00433/1.978, allocations: 2.911 MB / 0.9082 GB, free: 125.5 MB / 478.1 MB Notification: Performance of SimCode: time 1.483e-06/1.978, allocations: 0 / 0.9082 GB, free: 125.5 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3904/2.369, allocations: 130.4 MB / 1.036 GB, free: 138.6 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.77/15.14, allocations: 5.406 kB / 1.036 GB, free: 138.6 MB / 478.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar2/Fourbar2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches