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.001288/0.001288, allocations: 113.2 kB / 17.73 MB, free: 5.336 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.001299/0.001299, allocations: 188.2 kB / 18.67 MB, free: 4.402 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.424/1.424, allocations: 205.1 MB / 224.5 MB, free: 12.24 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.001884/0.001884, allocations: 51.92 kB / 328 MB, free: 3.797 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0939/0.0958, allocations: 46.62 MB / 374.7 MB, free: 5.07 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.222/0.3179, allocations: 16.01 MB / 390.7 MB, free: 3.855 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01212/0.33, allocations: 5.146 MB / 395.8 MB, free: 0.5391 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005097/0.3352, allocations: 117.1 kB / 395.9 MB, free: 0.5117 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01056/0.3458, allocations: 4.451 MB / 400.4 MB, free: 14.42 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01018/0.3561, allocations: 2.541 MB / 402.9 MB, free: 13.2 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003777/0.3599, allocations: 1.164 MB / 404.1 MB, free: 12.55 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01415/0.3741, allocations: 7.495 MB / 411.6 MB, free: 8.484 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009442/0.3835, allocations: 5.344 MB / 416.9 MB, free: 5.375 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005945/0.3895, allocations: 2.487 MB / 419.4 MB, free: 2.996 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006708/0.3963, allocations: 3.376 MB / 422.8 MB, free: 15.61 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002582/0.3989, allocations: 0.5039 MB / 423.3 MB, free: 15.1 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005095/0.404, allocations: 1.486 MB / 424.8 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005199/0.4092, allocations: 2.969 MB / 427.7 MB, free: 10.64 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007855/0.4171, allocations: 3.457 MB / 431.2 MB, free: 7.164 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01948/0.4367, allocations: 10.65 MB / 441.8 MB, free: 12.48 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.307e-05/0.4367, allocations: 12 kB / 441.9 MB, free: 12.47 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.374e-06/0.4367, allocations: 0 / 441.9 MB, free: 12.47 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0004706/0.4372, allocations: 0 / 441.9 MB, free: 12.47 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.02695/0.4642, allocations: 8.114 MB / 450 MB, free: 4.258 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.897e-05/0.4643, allocations: 8.031 kB / 450 MB, free: 4.25 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003614/0.4679, allocations: 1.09 MB / 451.1 MB, free: 3.148 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05871/0.5266, allocations: 8.453 MB / 459.5 MB, free: 10.68 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01492/0.5416, allocations: 6.339 MB / 465.9 MB, free: 4.262 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003822/0.542, allocations: 341 kB / 466.2 MB, free: 3.926 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001883/0.5439, allocations: 471.6 kB / 466.6 MB, free: 3.465 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03065/0.5746, allocations: 14.47 MB / 481.1 MB, free: 4.066 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002886/0.5749, allocations: 75.48 kB / 481.2 MB, free: 3.992 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001116/0.5761, allocations: 219.8 kB / 481.4 MB, free: 3.777 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006197/0.5823, allocations: 2.836 MB / 484.2 MB, free: 0.9375 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0292/0.6115, allocations: 13.01 MB / 497.2 MB, free: 3.902 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08411/0.6957, allocations: 58.18 MB / 0.5424 GB, free: 8.195 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01941/0.7151, allocations: 7.694 MB / 0.5499 GB, free: 360 kB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.1978/0.913, allocations: 5.002 MB / 0.5548 GB, free: 147.3 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02079/0.9339, allocations: 12.72 MB / 0.5672 GB, free: 142 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.733e-05/0.934, allocations: 65.89 kB / 0.5673 GB, free: 141.9 MB / 478.1 MB Notification: Performance of pre-optimization done (n=326): time 6.563e-06/0.934, allocations: 1.812 kB / 0.5673 GB, free: 141.9 MB / 478.1 MB Notification: Performance of matching and sorting (n=572): time 2.016/2.95, allocations: 411.7 MB / 0.9694 GB, free: 126.9 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001188/2.95, allocations: 273.6 kB / 0.9696 GB, free: 126.6 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008/2.958, allocations: 5.559 MB / 0.9751 GB, free: 121.2 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001794/2.96, allocations: 116 kB / 0.9752 GB, free: 121.1 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002266/2.962, allocations: 4.159 MB / 0.9792 GB, free: 118.2 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002829/2.965, allocations: 2.098 MB / 0.9813 GB, free: 116.2 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005227/2.97, allocations: 2.081 MB / 0.9833 GB, free: 114.1 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 5.491e-05/2.97, allocations: 313 kB / 0.9836 GB, free: 113.8 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01262/2.983, allocations: 10.88 MB / 0.9942 GB, free: 102.9 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01506/2.998, allocations: 14.98 MB / 1.009 GB, free: 86.05 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02894/3.027, allocations: 27.11 MB / 1.035 GB, free: 57.12 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001499/3.027, allocations: 44 kB / 1.035 GB, free: 57.08 MB / 494.1 MB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.5338/3.561, allocations: 140.4 MB / 1.173 GB, free: 112.2 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001007/3.561, allocations: 64 kB / 1.173 GB, free: 112.2 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001577/3.561, allocations: 140 kB / 1.173 GB, free: 112 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07762/3.639, allocations: 34.57 MB / 1.206 GB, free: 78.29 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00487/3.644, allocations: 1.488 MB / 1.208 GB, free: 76.93 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.471/4.115, allocations: 203.2 MB / 1.406 GB, free: 61.29 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01474/4.13, allocations: 1.699 MB / 1.408 GB, free: 59.6 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00362/4.133, allocations: 0.5263 MB / 1.409 GB, free: 59.07 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.009019/4.142, allocations: 3.096 MB / 1.412 GB, free: 56.19 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002762/4.145, allocations: 0.6252 MB / 1.412 GB, free: 55.89 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.5259/4.671, allocations: 136.4 MB / 1.545 GB, free: 104.6 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.344e-05/4.671, allocations: 60 kB / 1.545 GB, free: 104.6 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001742/4.671, allocations: 56 kB / 1.546 GB, free: 104.5 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001174/4.671, allocations: 27.89 kB / 1.546 GB, free: 104.5 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5962/5.268, allocations: 205.9 MB / 1.747 GB, free: 116.6 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.096e-05/5.268, allocations: 6.469 kB / 1.747 GB, free: 116.6 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001557/5.269, allocations: 328.5 kB / 1.747 GB, free: 116.3 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.07056/5.34, allocations: 33.28 MB / 1.779 GB, free: 86.83 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001579/5.341, allocations: 103.7 kB / 1.78 GB, free: 86.73 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4325/5.774, allocations: 185.8 MB / 1.961 GB, free: 90.95 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.885e-06/5.774, allocations: 10.44 kB / 1.961 GB, free: 90.94 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5341/6.308, allocations: 152.3 MB / 2.11 GB, free: 125.5 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006317/6.314, allocations: 3.027 MB / 2.113 GB, free: 123.9 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003572/6.318, allocations: 96.69 kB / 2.113 GB, free: 123.8 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01152/6.33, allocations: 1.485 MB / 2.114 GB, free: 122.4 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003977/6.334, allocations: 492.5 kB / 2.115 GB, free: 122 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001204/6.335, allocations: 147.3 kB / 2.115 GB, free: 121.9 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.005234/6.34, allocations: 3.561 MB / 2.118 GB, free: 119.4 MB / 0.5137 GB Notification: Performance of sort global known variables: time 4.11e-07/6.34, allocations: 0 / 2.118 GB, free: 119.4 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.01382/6.354, allocations: 3.805 MB / 2.122 GB, free: 115.9 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.5502/6.904, allocations: 152.8 MB / 2.271 GB, free: 134.4 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.07018/6.974, allocations: 33.68 MB / 2.304 GB, free: 121.5 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.557e-05/6.975, allocations: 0 / 2.304 GB, free: 121.5 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.05858/7.033, allocations: 20.55 MB / 2.324 GB, free: 100.9 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01131/7.045, allocations: 0.8261 MB / 2.325 GB, free: 100.1 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 1.235/8.28, allocations: 353.6 MB / 2.67 GB, free: 113.1 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00851/8.288, allocations: 5.115 MB / 2.675 GB, free: 111 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.005012/8.293, allocations: 2.07 MB / 2.677 GB, free: 109.3 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004467/8.298, allocations: 3.036 MB / 2.68 GB, free: 108.8 MB / 0.5137 GB Notification: Performance of SimCode: time 3.366e-06/8.298, allocations: 0 / 2.68 GB, free: 108.8 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8661/9.164, allocations: 334.7 MB / 3.007 GB, free: 161.8 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 30.37/39.53, allocations: 2.344 kB / 3.007 GB, free: 161.8 MB / 0.5294 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 & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 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.csv","/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