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.001507/0.001507, allocations: 117.8 kB / 17.79 MB, free: 5.305 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001814/0.001814, allocations: 199.8 kB / 18.73 MB, free: 4.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.396/1.396, allocations: 227.4 MB / 246.9 MB, free: 10.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001185/0.001185, allocations: 59.91 kB / 358.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3018/0.303, allocations: 50.54 MB / 408.8 MB, free: 1.551 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic): time 0.01483/0.3178, allocations: 13.45 MB / 422.2 MB, free: 4.039 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00979/0.3276, allocations: 4.871 MB / 427.1 MB, free: 15.16 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002241/0.3299, allocations: 87.75 kB / 427.2 MB, free: 15.07 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007586/0.3376, allocations: 4.171 MB / 431.3 MB, free: 10.89 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005385/0.343, allocations: 2.113 MB / 433.4 MB, free: 8.766 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002519/0.3455, allocations: 1.104 MB / 434.5 MB, free: 7.66 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.008105/0.3536, allocations: 6.06 MB / 440.6 MB, free: 1.59 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00691/0.3605, allocations: 5.289 MB / 445.9 MB, free: 12.23 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003766/0.3643, allocations: 2.158 MB / 448.1 MB, free: 10.07 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004283/0.3686, allocations: 2.87 MB / 450.9 MB, free: 7.191 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001407/0.3701, allocations: 0.4922 MB / 451.4 MB, free: 6.699 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003476/0.3735, allocations: 1.623 MB / 453 MB, free: 5.074 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003372/0.3769, allocations: 2.588 MB / 455.6 MB, free: 2.48 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004949/0.3819, allocations: 2.953 MB / 458.6 MB, free: 15.51 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01038/0.3923, allocations: 9.622 MB / 468.2 MB, free: 5.859 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.843e-06/0.3923, allocations: 0 / 468.2 MB, free: 5.859 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.3923, allocations: 0 / 468.2 MB, free: 5.859 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002009/0.3925, allocations: 4 kB / 468.2 MB, free: 5.855 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.01368/0.4062, allocations: 6.189 MB / 474.4 MB, free: 15.59 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.32e-05/0.4063, allocations: 8.031 kB / 474.4 MB, free: 15.58 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001496/0.4078, allocations: 0.9286 MB / 475.3 MB, free: 14.64 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03956/0.4474, allocations: 6.02 MB / 481.4 MB, free: 8.602 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01114/0.4585, allocations: 4.241 MB / 485.6 MB, free: 4.301 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000255/0.4588, allocations: 316.1 kB / 485.9 MB, free: 3.988 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001265/0.4601, allocations: 439.6 kB / 486.3 MB, free: 3.559 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02252/0.4826, allocations: 12.32 MB / 498.6 MB, free: 6.5 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000185/0.4829, allocations: 51.44 kB / 498.7 MB, free: 6.449 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00063/0.4835, allocations: 195.8 kB / 498.9 MB, free: 6.258 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003229/0.4868, allocations: 2.023 MB / 0.4892 GB, free: 4.23 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02135/0.5081, allocations: 10.36 MB / 0.4993 GB, free: 9.852 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2868/0.795, allocations: 43.89 MB / 0.5422 GB, free: 112 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01155/0.8066, allocations: 4.826 MB / 0.5469 GB, free: 111.3 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002256/0.8089, allocations: 1.963 MB / 0.5488 GB, free: 111.3 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01036/0.8192, allocations: 7.082 MB / 0.5557 GB, free: 108 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.714e-05/0.8193, allocations: 54.31 kB / 0.5558 GB, free: 108 MB / 462.1 MB Notification: Performance of pre-optimization done (n=179): time 4.118e-06/0.8193, allocations: 0 / 0.5558 GB, free: 108 MB / 462.1 MB Notification: Performance of matching and sorting (n=223): time 0.05785/0.8772, allocations: 18.99 MB / 0.5743 GB, free: 95.64 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.596e-05/0.8773, allocations: 209.9 kB / 0.5745 GB, free: 95.39 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004794/0.8821, allocations: 4.476 MB / 0.5789 GB, free: 90.89 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002627/0.8823, allocations: 61.7 kB / 0.5789 GB, free: 90.83 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001459/0.8838, allocations: 3.558 MB / 0.5824 GB, free: 87.27 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005662/0.8844, allocations: 0.8347 MB / 0.5832 GB, free: 86.44 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00126/0.8856, allocations: 1.269 MB / 0.5845 GB, free: 85.16 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 5.146e-05/0.8857, allocations: 305.1 kB / 0.5847 GB, free: 84.86 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002506/0.8882, allocations: 2.234 MB / 0.5869 GB, free: 82.62 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003656/0.8919, allocations: 5.981 MB / 0.5928 GB, free: 74.85 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007109/0.899, allocations: 8.915 MB / 0.6015 GB, free: 64.17 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.821e-05/0.8991, allocations: 36 kB / 0.6015 GB, free: 64.14 MB / 462.1 MB Notification: Performance of matching and sorting (n=830) (initialization): time 0.01282/0.9119, allocations: 9.059 MB / 0.6104 GB, free: 55.07 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.213e-05/0.912, allocations: 60 kB / 0.6104 GB, free: 55.01 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.219e-05/0.9121, allocations: 132 kB / 0.6105 GB, free: 54.88 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003301/0.9154, allocations: 1.204 MB / 0.6117 GB, free: 53.67 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003671/0.9191, allocations: 1.415 MB / 0.6131 GB, free: 52.25 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008951/0.9281, allocations: 8.006 MB / 0.6209 GB, free: 44.12 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004456/0.9325, allocations: 343.5 kB / 0.6212 GB, free: 43.78 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005748/0.9331, allocations: 379.6 kB / 0.6216 GB, free: 43.41 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.003034/0.9362, allocations: 2.485 MB / 0.624 GB, free: 40.92 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006139/0.9368, allocations: 402.8 kB / 0.6244 GB, free: 40.52 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006517/0.9433, allocations: 3.896 MB / 0.6282 GB, free: 36.61 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.865e-05/0.9434, allocations: 26.3 kB / 0.6282 GB, free: 36.59 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.105e-05/0.9434, allocations: 8 kB / 0.6283 GB, free: 36.58 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.631e-05/0.9434, allocations: 7.969 kB / 0.6283 GB, free: 36.57 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01606/0.9595, allocations: 9.946 MB / 0.638 GB, free: 26.52 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.369e-05/0.9595, allocations: 4 kB / 0.638 GB, free: 26.52 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001375/0.9609, allocations: 335.5 kB / 0.6383 GB, free: 26.19 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003089/0.964, allocations: 0.9845 MB / 0.6393 GB, free: 25.2 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001603/0.9642, allocations: 47.81 kB / 0.6393 GB, free: 25.16 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007759/0.9719, allocations: 6.683 MB / 0.6458 GB, free: 18.33 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.819e-06/0.972, allocations: 7.938 kB / 0.6458 GB, free: 18.32 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008974/0.9809, allocations: 6.617 MB / 0.6523 GB, free: 11.63 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001101/0.9821, allocations: 459.5 kB / 0.6527 GB, free: 11.16 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004048/0.9825, allocations: 40 kB / 0.6528 GB, free: 11.12 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001498/0.984, allocations: 111.9 kB / 0.6529 GB, free: 11.01 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002906/0.9843, allocations: 141 kB / 0.653 GB, free: 10.87 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000138/0.9844, allocations: 63.75 kB / 0.6531 GB, free: 10.81 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00338/0.9878, allocations: 2.825 MB / 0.6558 GB, free: 7.984 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.9878, allocations: 4 kB / 0.6558 GB, free: 7.98 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004318/0.9921, allocations: 1.154 MB / 0.657 GB, free: 6.832 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.009349/1.002, allocations: 7.328 MB / 0.6641 GB, free: 15.42 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.008342/1.01, allocations: 5.531 MB / 0.6695 GB, free: 9.91 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.975e-06/1.01, allocations: 4.312 kB / 0.6695 GB, free: 9.906 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002542/1.012, allocations: 1.852 MB / 0.6713 GB, free: 8.039 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003098/1.016, allocations: 0.567 MB / 0.6719 GB, free: 7.477 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07921/1.095, allocations: 51.28 MB / 0.722 GB, free: 14.27 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005689/1.101, allocations: 3.871 MB / 0.7258 GB, free: 10.36 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.004659/1.105, allocations: 1.938 MB / 0.7276 GB, free: 8.414 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003156/1.108, allocations: 2.292 MB / 0.7299 GB, free: 6.121 MB / 0.5294 GB Notification: Performance of SimCode: time 8.71e-07/1.108, allocations: 0 / 0.7299 GB, free: 6.121 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3455/1.454, allocations: 84.87 MB / 0.8128 GB, free: 123.4 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 26.65/28.11, allocations: 7.609 kB / 0.8128 GB, free: 123.4 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.0.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