Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.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.Fourbar2,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2",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.001231/0.001231, allocations: 110.5 kB / 17.73 MB, free: 5.359 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.00138/0.001379, allocations: 187.1 kB / 18.66 MB, free: 4.438 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.429/1.429, 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.001403/0.001403, allocations: 55.92 kB / 328 MB, free: 3.812 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09666/0.09807, allocations: 46.62 MB / 374.6 MB, free: 5.082 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.2108/0.3089, allocations: 15.07 MB / 389.7 MB, free: 4.516 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01089/0.3199, allocations: 4.825 MB / 394.5 MB, free: 1.496 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003928/0.3238, allocations: 92.28 kB / 394.6 MB, free: 1.48 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006512/0.3304, allocations: 3.161 MB / 397.8 MB, free: 24 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008817/0.3393, allocations: 2.631 MB / 400.4 MB, free: 14.81 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002869/0.3422, allocations: 0.9942 MB / 401.4 MB, free: 14.42 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01206/0.3543, allocations: 6.635 MB / 408.1 MB, free: 11.02 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006786/0.3611, allocations: 4.362 MB / 412.4 MB, free: 8.469 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005081/0.3662, allocations: 2.235 MB / 414.7 MB, free: 7.199 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005875/0.3721, allocations: 3.254 MB / 417.9 MB, free: 4.484 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001808/0.374, allocations: 484 kB / 418.4 MB, free: 4.012 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004015/0.378, allocations: 1.494 MB / 419.9 MB, free: 2.516 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003797/0.3818, allocations: 2.899 MB / 422.8 MB, free: 15.61 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005812/0.3877, allocations: 3.328 MB / 426.1 MB, free: 12.26 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01502/0.4027, allocations: 10.64 MB / 436.7 MB, free: 1.582 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.385e-06/0.4028, allocations: 0 / 436.7 MB, free: 1.582 MB / 350.1 MB Notification: Performance of FrontEnd: time 4.007e-06/0.4028, allocations: 0 / 436.7 MB, free: 1.582 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0003882/0.4032, allocations: 3.938 kB / 436.7 MB, free: 1.578 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2242 * Number of variables: 2242 Notification: Performance of Generate backend data structure: time 0.02079/0.424, allocations: 7.69 MB / 444.4 MB, free: 9.789 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.528e-05/0.4241, allocations: 12.03 kB / 444.4 MB, free: 9.777 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003577/0.4276, allocations: 1.137 MB / 445.6 MB, free: 8.625 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04483/0.4725, allocations: 7.555 MB / 453.1 MB, free: 1.055 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01309/0.4856, allocations: 5.198 MB / 458.3 MB, free: 11.8 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003445/0.486, allocations: 320.4 kB / 458.7 MB, free: 11.48 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002026/0.4881, allocations: 439.6 kB / 459.1 MB, free: 11.05 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02898/0.5171, allocations: 15.61 MB / 474.7 MB, free: 10.51 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002544/0.5174, allocations: 55.56 kB / 474.7 MB, free: 10.46 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001727/0.5191, allocations: 203.8 kB / 474.9 MB, free: 10.26 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005304/0.5244, allocations: 3.22 MB / 478.2 MB, free: 7.035 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02746/0.5519, allocations: 13.91 MB / 492.1 MB, free: 9.102 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0827/0.6346, allocations: 57.22 MB / 0.5364 GB, free: 14.32 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01452/0.6492, allocations: 6.487 MB / 0.5428 GB, free: 7.578 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005476/0.6547, allocations: 3.566 MB / 0.5462 GB, free: 3.996 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2497/0.9044, allocations: 14.32 MB / 0.5602 GB, free: 144 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.141e-05/0.9045, allocations: 62.09 kB / 0.5603 GB, free: 143.9 MB / 478.1 MB Notification: Performance of pre-optimization done (n=286): time 6.212e-06/0.9045, allocations: 0 / 0.5603 GB, free: 143.9 MB / 478.1 MB Notification: Performance of matching and sorting (n=336): time 0.1418/1.046, allocations: 42.07 MB / 0.6014 GB, free: 122.5 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.728e-05/1.046, allocations: 221.8 kB / 0.6016 GB, free: 122.3 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007153/1.054, allocations: 5.534 MB / 0.607 GB, free: 116.9 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008645/1.054, allocations: 76.28 kB / 0.6071 GB, free: 116.8 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002775/1.057, allocations: 4.597 MB / 0.6116 GB, free: 112.5 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001659/1.059, allocations: 1.306 MB / 0.6128 GB, free: 111.3 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002799/1.062, allocations: 1.789 MB / 0.6146 GB, free: 109.5 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 4.803e-05/1.062, allocations: 305.1 kB / 0.6149 GB, free: 109.2 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005349/1.067, allocations: 4.616 MB / 0.6194 GB, free: 104.5 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007077/1.074, allocations: 9.59 MB / 0.6287 GB, free: 92.49 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01403/1.088, allocations: 15.26 MB / 0.6436 GB, free: 74.75 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001293/1.089, allocations: 48 kB / 0.6437 GB, free: 74.71 MB / 478.1 MB Notification: Performance of matching and sorting (n=1148) (initialization): time 0.04069/1.129, allocations: 18.99 MB / 0.6622 GB, free: 55.67 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002256/1.129, allocations: 87.64 kB / 0.6623 GB, free: 55.59 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002848/1.13, allocations: 176 kB / 0.6625 GB, free: 55.41 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02195/1.152, allocations: 5.769 MB / 0.6681 GB, free: 49.64 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00696/1.159, allocations: 2.051 MB / 0.6701 GB, free: 47.58 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02833/1.187, allocations: 25.65 MB / 0.6952 GB, free: 21.65 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008492/1.196, allocations: 0.5462 MB / 0.6957 GB, free: 21.1 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001968/1.198, allocations: 0.5072 MB / 0.6962 GB, free: 20.6 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 791 * Number of states: 0 () * Number of discrete variables: 45 (fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.color_x[1],b3.color[3],b3.color[2],b3.color[1],universalSpherical.cylinderColor[3],universalSpherical.cylinderColor[2],universalSpherical.cylinderColor[1],universalSpherical.sphereColor[3],universalSpherical.sphereColor[2],universalSpherical.sphereColor[1],universalSpherical.rodColor[3],universalSpherical.rodColor[2],universalSpherical.rodColor[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 (1057): * Single equations (assignments): 1049 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,42,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.006308/1.204, allocations: 3.106 MB / 0.6992 GB, free: 17.48 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001549/1.206, allocations: 0.52 MB / 0.6997 GB, free: 16.96 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02971/1.235, allocations: 12.6 MB / 0.712 GB, free: 4.285 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.292e-05/1.235, allocations: 59.98 kB / 0.7121 GB, free: 4.227 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.714e-05/1.235, allocations: 8 kB / 0.7121 GB, free: 4.219 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.522e-05/1.235, allocations: 15.95 kB / 0.7121 GB, free: 4.203 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2824/1.518, allocations: 24.2 MB / 0.7358 GB, free: 144.2 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.404e-05/1.518, allocations: 6.375 kB / 0.7358 GB, free: 144.2 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003351/1.521, allocations: 0.5731 MB / 0.7363 GB, free: 144.2 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02002/1.541, allocations: 4.813 MB / 0.741 GB, free: 144.2 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008399/1.542, allocations: 61.7 kB / 0.7411 GB, free: 144.2 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02634/1.569, allocations: 20.91 MB / 0.7615 GB, free: 134.3 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.492e-06/1.569, allocations: 3.969 kB / 0.7615 GB, free: 134.3 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03352/1.602, allocations: 17.02 MB / 0.7781 GB, free: 127.2 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003675/1.606, allocations: 1.254 MB / 0.7794 GB, free: 126.7 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001502/1.607, allocations: 55.28 kB / 0.7794 GB, free: 126.7 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003795/1.611, allocations: 259 kB / 0.7797 GB, free: 126.5 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008099/1.612, allocations: 185.6 kB / 0.7798 GB, free: 126.4 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002682/1.612, allocations: 85 kB / 0.7799 GB, free: 126.4 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.005104/1.617, allocations: 3.448 MB / 0.7833 GB, free: 124.7 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.61e-07/1.617, allocations: 0 / 0.7833 GB, free: 124.7 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.007908/1.625, allocations: 1.716 MB / 0.785 GB, free: 123.7 MB / 494.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 (251): * Single equations (assignments): 243 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,38,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.03263/1.658, allocations: 17.68 MB / 0.8022 GB, free: 106.2 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01451/1.673, allocations: 10.63 MB / 0.8126 GB, free: 95.63 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.003e-05/1.673, allocations: 4 kB / 0.8126 GB, free: 95.62 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005369/1.678, allocations: 4.016 MB / 0.8165 GB, free: 91.6 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005043/1.683, allocations: 0.656 MB / 0.8172 GB, free: 90.98 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1543/1.838, allocations: 86.34 MB / 0.9015 GB, free: 13.04 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008782/1.846, allocations: 4.626 MB / 0.906 GB, free: 8.383 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.007648/1.854, allocations: 2.979 MB / 0.9089 GB, free: 5.398 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005402/1.859, allocations: 2.921 MB / 0.9118 GB, free: 2.477 MB / 0.4981 GB Notification: Performance of SimCode: time 1.673e-06/1.859, allocations: 0 / 0.9118 GB, free: 2.477 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3823/2.242, allocations: 125.6 MB / 1.034 GB, free: 67.99 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 38.83/41.07, allocations: 8.922 kB / 1.034 GB, free: 67.98 MB / 0.4981 GB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_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_Fourbar2.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar2/Fourbar2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches