Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic,fileNamePrefix="Modelica_4_0_0_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.001282/0.001282, allocations: 105.7 kB / 16.51 MB, free: 6.707 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.001358/0.001358, allocations: 192.1 kB / 17.43 MB, free: 6.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.249/1.249, allocations: 222.9 MB / 241.1 MB, free: 15.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001084/0.001084, allocations: 41.67 kB / 300.1 MB, free: 6.117 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08464/0.08574, allocations: 49.45 MB / 349.5 MB, free: 4.66 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic): time 0.2081/0.2939, allocations: 55.42 MB / 404.9 MB, free: 9.562 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02523/0.3192, allocations: 11.92 MB / 416.8 MB, free: 0.8281 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009023/0.3282, allocations: 243.9 kB / 417.1 MB, free: 0.7891 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006567/0.3349, allocations: 4.198 MB / 421.3 MB, free: 12.97 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004311/0.3392, allocations: 2.024 MB / 423.3 MB, free: 10.94 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001897/0.3411, allocations: 1.004 MB / 424.3 MB, free: 9.938 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00833/0.3494, allocations: 8.691 MB / 433 MB, free: 1.234 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004843/0.3543, allocations: 5.225 MB / 438.2 MB, free: 11.97 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002203/0.3565, allocations: 1.9 MB / 440.1 MB, free: 10.07 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002976/0.3595, allocations: 3.038 MB / 443.2 MB, free: 7.02 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005875/0.3601, allocations: 344 kB / 443.5 MB, free: 6.684 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002353/0.3625, allocations: 1.568 MB / 445.1 MB, free: 5.113 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001964/0.3644, allocations: 2.443 MB / 447.5 MB, free: 2.664 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002746/0.3672, allocations: 2.801 MB / 450.3 MB, free: 15.84 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007927/0.3751, allocations: 9.319 MB / 459.6 MB, free: 6.5 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.3752, allocations: 0 / 459.6 MB, free: 6.5 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.3752, allocations: 0 / 459.6 MB, free: 6.5 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001399/0.3753, allocations: 0 / 459.6 MB, free: 6.5 MB / 366.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.01076/0.3861, allocations: 6.196 MB / 465.8 MB, free: 232 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.228e-05/0.3861, allocations: 12.03 kB / 465.8 MB, free: 220 kB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001153/0.3873, allocations: 0.9247 MB / 466.8 MB, free: 15.28 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0338/0.4211, allocations: 6.024 MB / 472.8 MB, free: 9.238 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008645/0.4298, allocations: 4.386 MB / 477.2 MB, free: 4.793 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002244/0.43, allocations: 304.3 kB / 477.5 MB, free: 4.492 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001104/0.4311, allocations: 447.6 kB / 477.9 MB, free: 4.055 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02016/0.4513, allocations: 12.3 MB / 490.2 MB, free: 7.012 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001184/0.4514, allocations: 55.44 kB / 490.3 MB, free: 6.957 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004327/0.4519, allocations: 195.8 kB / 490.5 MB, free: 6.766 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002669/0.4546, allocations: 2.031 MB / 492.5 MB, free: 4.73 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01763/0.4722, allocations: 10.35 MB / 0.4911 GB, free: 10.36 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2092/0.6814, allocations: 44.14 MB / 0.5342 GB, free: 140.5 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01166/0.6931, allocations: 4.799 MB / 0.5388 GB, free: 139.8 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002401/0.6955, allocations: 1.966 MB / 0.5408 GB, free: 139.8 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009062/0.7046, allocations: 6.994 MB / 0.5476 GB, free: 137.1 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.539e-05/0.7046, allocations: 57.56 kB / 0.5477 GB, free: 137 MB / 446.1 MB Notification: Performance of pre-optimization done (n=179): time 3.226e-06/0.7046, allocations: 0.8438 kB / 0.5477 GB, free: 137 MB / 446.1 MB Notification: Performance of matching and sorting (n=223): time 0.05237/0.757, allocations: 19.1 MB / 0.5663 GB, free: 130.4 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.577e-05/0.7571, allocations: 214.2 kB / 0.5665 GB, free: 130.2 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004037/0.7611, allocations: 4.48 MB / 0.5709 GB, free: 127.6 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001609/0.7613, allocations: 57.7 kB / 0.5709 GB, free: 127.6 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001202/0.7625, allocations: 3.569 MB / 0.5744 GB, free: 124 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004275/0.763, allocations: 0.832 MB / 0.5752 GB, free: 123.2 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001297/0.7643, allocations: 1.27 MB / 0.5765 GB, free: 121.9 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 6.652e-05/0.7643, allocations: 304.9 kB / 0.5768 GB, free: 121.6 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002453/0.7668, allocations: 2.222 MB / 0.5789 GB, free: 119.4 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003207/0.77, allocations: 5.978 MB / 0.5848 GB, free: 111.6 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006186/0.7762, allocations: 8.918 MB / 0.5935 GB, free: 100.9 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.785e-05/0.7763, allocations: 40 kB / 0.5935 GB, free: 100.9 MB / 446.1 MB Notification: Performance of matching and sorting (n=830) (initialization): time 0.01154/0.7878, allocations: 9.035 MB / 0.6023 GB, free: 91.86 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.506e-05/0.7879, allocations: 60.19 kB / 0.6024 GB, free: 91.8 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.251e-05/0.788, allocations: 136 kB / 0.6025 GB, free: 91.67 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00301/0.791, allocations: 1.199 MB / 0.6037 GB, free: 90.46 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003066/0.7941, allocations: 1.419 MB / 0.6051 GB, free: 89.05 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007951/0.802, allocations: 7.524 MB / 0.6124 GB, free: 81.39 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003343/0.8054, allocations: 347.2 kB / 0.6128 GB, free: 81.05 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003204/0.8057, allocations: 383.4 kB / 0.6131 GB, free: 80.68 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.002333/0.8081, allocations: 2.479 MB / 0.6155 GB, free: 78.2 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003974/0.8085, allocations: 406.8 kB / 0.6159 GB, free: 77.79 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005862/0.8143, allocations: 3.892 MB / 0.6197 GB, free: 73.89 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.884e-05/0.8144, allocations: 24 kB / 0.6198 GB, free: 73.86 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.538e-06/0.8144, allocations: 8 kB / 0.6198 GB, free: 73.86 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.37e-05/0.8144, allocations: 11.91 kB / 0.6198 GB, free: 73.84 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01323/0.8276, allocations: 10.18 MB / 0.6297 GB, free: 63.55 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.041e-05/0.8277, allocations: 8 kB / 0.6297 GB, free: 63.54 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001346/0.829, allocations: 352 kB / 0.6301 GB, free: 63.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002925/0.8319, allocations: 0.9892 MB / 0.631 GB, free: 62.21 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001487/0.8321, allocations: 45.31 kB / 0.6311 GB, free: 62.17 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006966/0.8391, allocations: 6.209 MB / 0.6371 GB, free: 55.82 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.471e-06/0.8391, allocations: 11.94 kB / 0.6371 GB, free: 55.81 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008477/0.8476, allocations: 6.627 MB / 0.6436 GB, free: 49.11 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001228/0.8489, allocations: 447.8 kB / 0.644 GB, free: 48.64 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004147/0.8493, allocations: 40 kB / 0.6441 GB, free: 48.61 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001438/0.8507, allocations: 111.6 kB / 0.6442 GB, free: 48.5 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003196/0.851, allocations: 144.9 kB / 0.6443 GB, free: 48.36 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001305/0.8512, allocations: 59.98 kB / 0.6444 GB, free: 48.3 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003042/0.8542, allocations: 2.832 MB / 0.6472 GB, free: 45.46 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.8542, allocations: 0 / 0.6472 GB, free: 45.46 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004454/0.8587, allocations: 1.176 MB / 0.6483 GB, free: 44.3 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.008657/0.8674, allocations: 7.344 MB / 0.6555 GB, free: 36.87 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007075/0.8745, allocations: 5.496 MB / 0.6608 GB, free: 31.39 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.432e-06/0.8745, allocations: 2.719 kB / 0.6608 GB, free: 31.39 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002004/0.8765, allocations: 1.836 MB / 0.6626 GB, free: 29.54 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002906/0.8794, allocations: 0.5377 MB / 0.6632 GB, free: 29.01 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2207/1.1, allocations: 61.78 MB / 0.7235 GB, free: 138.4 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003939/1.104, allocations: 3.871 MB / 0.7273 GB, free: 137 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.004473/1.109, allocations: 1.932 MB / 0.7292 GB, free: 136.8 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002199/1.111, allocations: 2.293 MB / 0.7314 GB, free: 134.9 MB / 462.1 MB Notification: Performance of SimCode: time 9.52e-07/1.111, allocations: 0 / 0.7314 GB, free: 134.9 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7518/1.863, allocations: 86.18 MB / 0.8156 GB, free: 58.43 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001483/1.863, allocations: 240.9 kB / 0.8158 GB, free: 58.17 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.194/6.057, allocations: 0 / 0.8158 GB, free: 58.17 MB / 462.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar_analytic/Fourbar_analytic.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches