Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.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.Fourbar1,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1",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.001196/0.001197, allocations: 102.5 kB / 17.73 MB, free: 5.371 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.001208/0.001208, allocations: 191 kB / 18.66 MB, free: 4.445 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.42/1.42, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.001411/0.001411, allocations: 51.92 kB / 328 MB, free: 3.812 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08985/0.09127, allocations: 46.62 MB / 374.6 MB, free: 5.086 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.2145/0.3058, allocations: 16.03 MB / 390.7 MB, free: 3.855 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01273/0.3186, allocations: 5.141 MB / 395.8 MB, free: 0.5391 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004706/0.3234, allocations: 113.3 kB / 395.9 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01052/0.334, allocations: 4.44 MB / 400.4 MB, free: 14.44 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009069/0.3431, allocations: 2.55 MB / 402.9 MB, free: 13.2 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003648/0.3468, allocations: 1.161 MB / 404.1 MB, free: 12.55 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01321/0.3601, allocations: 7.501 MB / 411.6 MB, free: 8.477 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009724/0.3699, allocations: 5.331 MB / 416.9 MB, free: 5.379 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005993/0.3759, allocations: 2.498 MB / 419.4 MB, free: 2.969 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005976/0.3819, allocations: 3.388 MB / 422.8 MB, free: 15.57 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002101/0.3841, allocations: 0.5039 MB / 423.3 MB, free: 15.07 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004485/0.3886, allocations: 1.494 MB / 424.8 MB, free: 13.57 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00456/0.3932, allocations: 3.004 MB / 427.8 MB, free: 10.56 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006835/0.4001, allocations: 3.461 MB / 431.3 MB, free: 7.078 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01421/0.4143, allocations: 10.6 MB / 441.9 MB, free: 12.44 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.115e-06/0.4144, allocations: 0 / 441.9 MB, free: 12.44 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.444e-06/0.4144, allocations: 0 / 441.9 MB, free: 12.44 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000435/0.4148, allocations: 0 / 441.9 MB, free: 12.44 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: 2058 * Number of variables: 2058 Notification: Performance of Generate backend data structure: time 0.02324/0.4381, allocations: 7.933 MB / 449.8 MB, free: 4.422 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.111e-05/0.4382, allocations: 8.031 kB / 449.8 MB, free: 4.414 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003822/0.442, allocations: 1.082 MB / 450.9 MB, free: 3.32 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05797/0.5, allocations: 8.405 MB / 459.3 MB, free: 10.89 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01495/0.515, allocations: 6.337 MB / 465.6 MB, free: 4.477 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003586/0.5154, allocations: 333.1 kB / 465.9 MB, free: 4.148 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002045/0.5175, allocations: 475.5 kB / 466.4 MB, free: 3.684 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03092/0.5484, allocations: 14.47 MB / 480.9 MB, free: 4.281 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003917/0.5488, allocations: 71.42 kB / 480.9 MB, free: 4.211 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00176/0.5506, allocations: 211.8 kB / 481.2 MB, free: 4.004 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00583/0.5565, allocations: 2.832 MB / 484 MB, free: 1.168 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02743/0.5839, allocations: 13.01 MB / 497 MB, free: 4.133 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08412/0.6681, allocations: 58.08 MB / 0.5421 GB, free: 8.512 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0187/0.6869, allocations: 7.687 MB / 0.5496 GB, free: 0.6719 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.2008/0.8877, allocations: 5.007 MB / 0.5545 GB, free: 148.8 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02525/0.913, allocations: 12.7 MB / 0.5669 GB, free: 143.4 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.578e-05/0.9131, allocations: 67.34 kB / 0.5669 GB, free: 143.4 MB / 478.1 MB Notification: Performance of pre-optimization done (n=326): time 6.112e-06/0.9132, allocations: 0 / 0.5669 GB, free: 143.4 MB / 478.1 MB Notification: Performance of matching and sorting (n=572): time 1.967/2.88, allocations: 411.4 MB / 0.9687 GB, free: 127.5 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001315/2.88, allocations: 269.3 kB / 0.9689 GB, free: 127.2 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007005/2.887, allocations: 5.55 MB / 0.9744 GB, free: 121.9 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001695/2.889, allocations: 115.1 kB / 0.9745 GB, free: 121.8 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002125/2.891, allocations: 4.007 MB / 0.9784 GB, free: 118.5 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00259/2.894, allocations: 2.008 MB / 0.9803 GB, free: 116.5 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004305/2.898, allocations: 2.066 MB / 0.9824 GB, free: 114.4 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 4.244e-05/2.898, allocations: 308.9 kB / 0.9826 GB, free: 114.1 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01206/2.91, allocations: 10.88 MB / 0.9933 GB, free: 103.2 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01433/2.924, allocations: 14.99 MB / 1.008 GB, free: 86.41 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02787/2.952, allocations: 27.12 MB / 1.034 GB, free: 57.48 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.966e-05/2.952, allocations: 40 kB / 1.034 GB, free: 57.44 MB / 494.1 MB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.5225/3.475, allocations: 140.4 MB / 1.172 GB, free: 96.27 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.844e-05/3.475, allocations: 60 kB / 1.172 GB, free: 96.21 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001134/3.475, allocations: 140 kB / 1.172 GB, free: 96.08 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.07555/3.551, allocations: 34.57 MB / 1.206 GB, free: 62.4 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004395/3.555, allocations: 1.479 MB / 1.207 GB, free: 61.05 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4868/4.042, allocations: 203.1 MB / 1.405 GB, free: 60.54 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01311/4.055, allocations: 1.705 MB / 1.407 GB, free: 58.85 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002608/4.058, allocations: 0.5293 MB / 1.407 GB, free: 58.32 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 626 * Number of states: 0 () * Number of discrete variables: 54 (b0.color[3],b0.color[2],b0.color[1],j5.cylinderColor[3],j5.cylinderColor[2],j5.cylinderColor[1],j4.cylinderColor[3],j4.cylinderColor[2],j4.cylinderColor[1],j3.cylinderColor[3],j3.cylinderColor[2],j3.cylinderColor[1],rev1.cylinderColor[3],rev1.cylinderColor[2],rev1.cylinderColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[1],b3.color[3],b3.color[2],b3.color[1],b3.body.sphereColor[3],b3.body.sphereColor[2],b3.body.sphereColor[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 (783): * Single equations (assignments): 776 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(21,163,34.9%), (16,102,51.6%), (2,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(12,76)} Notification: Performance of prepare postOptimizeDAE: time 0.006669/4.064, allocations: 3.089 MB / 1.41 GB, free: 55.36 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002024/4.067, allocations: 0.5907 MB / 1.411 GB, free: 55.08 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.5169/4.583, allocations: 136.4 MB / 1.544 GB, free: 104.1 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.091e-05/4.584, allocations: 60 kB / 1.544 GB, free: 104.1 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001718/4.584, allocations: 60.69 kB / 1.544 GB, free: 104 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001275/4.584, allocations: 31.33 kB / 1.544 GB, free: 104 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5834/5.167, allocations: 205.9 MB / 1.746 GB, free: 117.2 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.977e-05/5.168, allocations: 4 kB / 1.746 GB, free: 117.2 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001536/5.169, allocations: 340 kB / 1.746 GB, free: 116.9 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.07042/5.239, allocations: 33.27 MB / 1.778 GB, free: 87.02 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002244/5.242, allocations: 100 kB / 1.778 GB, free: 86.92 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4373/5.679, allocations: 185.8 MB / 1.96 GB, free: 90.38 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.516e-06/5.679, allocations: 11.84 kB / 1.96 GB, free: 90.38 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5528/6.232, allocations: 152.3 MB / 2.109 GB, free: 124.1 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.009527/6.241, allocations: 3.001 MB / 2.112 GB, free: 122.4 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002907/6.244, allocations: 101.3 kB / 2.112 GB, free: 122.4 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01006/6.255, allocations: 1.476 MB / 2.113 GB, free: 121 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003955/6.258, allocations: 0.492 MB / 2.114 GB, free: 120.6 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009978/6.259, allocations: 140.9 kB / 2.114 GB, free: 120.4 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.005233/6.265, allocations: 3.566 MB / 2.117 GB, free: 117.9 MB / 0.5137 GB Notification: Performance of sort global known variables: time 4.1e-07/6.265, allocations: 0 / 2.117 GB, free: 117.9 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.01427/6.279, allocations: 3.805 MB / 2.121 GB, free: 114.4 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * 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 (165): * Single equations (assignments): 158 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(20,157,40.5%), (16,99,51.6%), (2,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(12,86)} Notification: Performance of Backend phase and start with SimCode phase: time 0.5447/6.824, allocations: 152.7 MB / 2.27 GB, free: 135.5 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.05522/6.879, allocations: 33.63 MB / 2.303 GB, free: 119.2 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.22e-05/6.879, allocations: 0 / 2.303 GB, free: 119.2 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.03799/6.917, allocations: 20.52 MB / 2.323 GB, free: 98.68 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006775/6.924, allocations: 0.8349 MB / 2.324 GB, free: 97.88 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 1.177/8.101, allocations: 353.4 MB / 2.669 GB, free: 112.6 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007381/8.108, allocations: 5.12 MB / 2.674 GB, free: 108.3 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.004623/8.113, allocations: 2.071 MB / 2.676 GB, free: 106.3 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003686/8.117, allocations: 3.033 MB / 2.679 GB, free: 105.8 MB / 0.5137 GB Notification: Performance of SimCode: time 1.713e-06/8.117, allocations: 0 / 2.679 GB, free: 105.8 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8423/8.959, allocations: 341.9 MB / 3.013 GB, free: 142.2 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 30.52/39.48, allocations: 8.828 kB / 3.013 GB, free: 142.2 MB / 0.5137 GB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar1/Fourbar1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches