Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.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.PlanarFourbar,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar",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.001814/0.001814, allocations: 104.2 kB / 17.58 MB, free: 5.414 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.002312/0.002313, allocations: 191.9 kB / 18.51 MB, free: 4.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.237/2.237, allocations: 205.1 MB / 224.4 MB, free: 12.3 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.002448/0.002448, allocations: 48.14 kB / 280.7 MB, free: 3.09 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1575/0.1599, allocations: 46.63 MB / 327.4 MB, free: 4.391 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.03646/0.1965, allocations: 18.58 MB / 346 MB, free: 1.719 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.02592/0.2225, allocations: 6.146 MB / 352.1 MB, free: 11.55 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006594/0.2291, allocations: 143.6 kB / 352.2 MB, free: 11.41 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01977/0.249, allocations: 6.274 MB / 358.5 MB, free: 5.121 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01354/0.2626, allocations: 2.859 MB / 361.4 MB, free: 2.25 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009178/0.2718, allocations: 2.273 MB / 363.6 MB, free: 15.97 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.02365/0.2955, allocations: 8.839 MB / 372.5 MB, free: 7.109 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.4269/0.7225, allocations: 8.441 MB / 380.9 MB, free: 16.28 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01257/0.7352, allocations: 3.195 MB / 384.1 MB, free: 16.18 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01551/0.7508, allocations: 4.181 MB / 388.3 MB, free: 15.81 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00609/0.7569, allocations: 0.7164 MB / 389 MB, free: 15.81 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0162/0.7732, allocations: 1.896 MB / 390.9 MB, free: 15.81 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01608/0.7893, allocations: 3.809 MB / 394.7 MB, free: 15.47 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0172/0.8066, allocations: 4.448 MB / 399.2 MB, free: 14.02 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03057/0.8372, allocations: 13.63 MB / 412.8 MB, free: 6.883 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.288e-05/0.8373, allocations: 0 / 412.8 MB, free: 6.883 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.745e-06/0.8373, allocations: 0 / 412.8 MB, free: 6.883 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0007293/0.8381, allocations: 3 kB / 412.8 MB, free: 6.883 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2349 * Number of variables: 2349 Notification: Performance of Generate backend data structure: time 0.05897/0.8971, allocations: 9.482 MB / 422.3 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 0.0001042/0.8972, allocations: 9.938 kB / 422.3 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008964/0.9062, allocations: 1.14 MB / 423.4 MB, free: 0 / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.5483/1.455, allocations: 23.24 MB / 446.7 MB, free: 9.367 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03794/1.493, allocations: 8.479 MB / 455.2 MB, free: 1.164 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001032/1.494, allocations: 435.8 kB / 455.6 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004873/1.499, allocations: 0.5938 MB / 456.2 MB, free: 236 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07362/1.572, allocations: 16.86 MB / 473 MB, free: 14.67 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009259/1.573, allocations: 85.86 kB / 473.1 MB, free: 14.61 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004302/1.578, allocations: 262.3 kB / 473.4 MB, free: 14.4 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00876/1.586, allocations: 2.655 MB / 476 MB, free: 11.78 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05775/1.644, allocations: 14.39 MB / 490.4 MB, free: 13.62 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5062/2.151, allocations: 64.13 MB / 0.5416 GB, free: 142 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04224/2.193, allocations: 8.624 MB / 0.55 GB, free: 141.3 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009553/2.203, allocations: 4.926 MB / 0.5548 GB, free: 141.3 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04408/2.247, allocations: 18.13 MB / 0.5725 GB, free: 133.5 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001147/2.247, allocations: 71.42 kB / 0.5726 GB, free: 133.4 MB / 446.1 MB Notification: Performance of pre-optimization done (n=281): time 1.557e-05/2.247, allocations: 0 / 0.5726 GB, free: 133.4 MB / 446.1 MB Notification: Performance of matching and sorting (n=374): time 0.4306/2.677, allocations: 72.99 MB / 0.6439 GB, free: 70.4 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001769/2.678, allocations: 380.6 kB / 0.6442 GB, free: 69.95 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02532/2.703, allocations: 6.495 MB / 0.6506 GB, free: 63.46 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001828/2.705, allocations: 81.7 kB / 0.6506 GB, free: 63.37 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.005527/2.711, allocations: 4.859 MB / 0.6554 GB, free: 58.51 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.003573/2.714, allocations: 1.366 MB / 0.6567 GB, free: 57.16 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005957/2.72, allocations: 1.832 MB / 0.6585 GB, free: 55.31 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 7.998e-05/2.72, allocations: 305.1 kB / 0.6588 GB, free: 55.01 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01286/2.733, allocations: 5.659 MB / 0.6643 GB, free: 49.34 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01805/2.751, allocations: 10.61 MB / 0.6747 GB, free: 36.37 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02992/2.781, allocations: 17.36 MB / 0.6916 GB, free: 16.68 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002/2.782, allocations: 52 kB / 0.6917 GB, free: 16.63 MB / 446.1 MB Notification: Performance of matching and sorting (n=1157) (initialization): time 0.5003/3.282, allocations: 21.96 MB / 0.7131 GB, free: 136.1 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003794/3.282, allocations: 78.52 kB / 0.7132 GB, free: 136.1 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0007129/3.283, allocations: 175.7 kB / 0.7134 GB, free: 136.1 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03538/3.319, allocations: 6.876 MB / 0.7201 GB, free: 135 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01325/3.332, allocations: 2.071 MB / 0.7221 GB, free: 134.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08004/3.412, allocations: 36.41 MB / 0.7577 GB, free: 108.9 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01704/3.429, allocations: 0.7185 MB / 0.7584 GB, free: 108.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004225/3.433, allocations: 0.513 MB / 0.7589 GB, free: 107.7 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 779 * Number of states: 0 () * Number of discrete variables: 51 (sensorJoint4.arrowColor[3],sensorJoint4.arrowColor[2],sensorJoint4.arrowColor[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],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],revolute4cut.cylinderColor[3],revolute4cut.cylinderColor[2],revolute4cut.cylinderColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1015): * Single equations (assignments): 1008 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(5,68,84.0%), (2,18,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,24)} Notification: Performance of prepare postOptimizeDAE: time 0.01414/3.448, allocations: 3.428 MB / 0.7622 GB, free: 104.4 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002921/3.451, allocations: 0.5957 MB / 0.7628 GB, free: 104.1 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05212/3.503, allocations: 16.1 MB / 0.7785 GB, free: 87.92 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001377/3.503, allocations: 51.98 kB / 0.7786 GB, free: 87.87 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001042/3.503, allocations: 19.94 kB / 0.7786 GB, free: 87.86 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001365/3.503, allocations: 19.94 kB / 0.7786 GB, free: 87.84 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1018/3.605, allocations: 31.43 MB / 0.8093 GB, free: 56.08 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001342/3.605, allocations: 7.938 kB / 0.8093 GB, free: 56.07 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00577/3.611, allocations: 0.6086 MB / 0.8099 GB, free: 55.46 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03038/3.641, allocations: 6.457 MB / 0.8162 GB, free: 48.99 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001899/3.643, allocations: 66.02 kB / 0.8163 GB, free: 48.93 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0765/3.72, allocations: 34.62 MB / 0.8501 GB, free: 14.03 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.253e-06/3.72, allocations: 4 kB / 0.8501 GB, free: 14.02 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4916/4.212, allocations: 23.54 MB / 0.8731 GB, free: 130.5 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.01023/4.222, allocations: 1.634 MB / 0.8747 GB, free: 130 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005436/4.227, allocations: 60.88 kB / 0.8747 GB, free: 129.9 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01145/4.239, allocations: 427.8 kB / 0.8751 GB, free: 129.9 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002984/4.242, allocations: 253.2 kB / 0.8754 GB, free: 129.8 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001129/4.243, allocations: 91.41 kB / 0.8755 GB, free: 129.8 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.01387/4.257, allocations: 4.162 MB / 0.8795 GB, free: 128.4 MB / 446.1 MB Notification: Performance of sort global known variables: time 5.62e-07/4.257, allocations: 0 / 0.8795 GB, free: 128.4 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.01919/4.276, allocations: 2.195 MB / 0.8817 GB, free: 128.2 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 2 (revolute1.phi,revolute1.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 (243): * Single equations (assignments): 236 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(5,62,84.0%), (2,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,28)} Notification: Performance of Backend phase and start with SimCode phase: time 0.06915/4.346, allocations: 24.33 MB / 0.9054 GB, free: 118.2 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.05379/4.399, allocations: 19.45 MB / 0.9244 GB, free: 100.2 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.453e-05/4.399, allocations: 0 / 0.9244 GB, free: 100.2 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.01777/4.417, allocations: 6.572 MB / 0.9309 GB, free: 93.57 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01681/4.434, allocations: 0.9475 MB / 0.9318 GB, free: 92.68 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.7019/5.136, allocations: 121.7 MB / 1.051 GB, free: 148.8 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01427/5.15, allocations: 5.288 MB / 1.056 GB, free: 147.1 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.01459/5.165, allocations: 3.035 MB / 1.059 GB, free: 147 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01105/5.176, allocations: 3.41 MB / 1.062 GB, free: 144.2 MB / 462.1 MB Notification: Performance of SimCode: time 2.124e-06/5.176, allocations: 0 / 1.062 GB, free: 144.2 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8059/5.982, allocations: 172.3 MB / 1.23 GB, free: 131.4 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 26.71/32.69, allocations: 0 / 1.23 GB, free: 131.4 MB / 462.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_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_PlanarFourbar.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/PlanarFourbar/PlanarFourbar.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches