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.001295/0.001296, allocations: 114 kB / 17.74 MB, free: 5.355 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.001272/0.001272, allocations: 183.1 kB / 18.66 MB, free: 4.434 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.473/1.473, 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.001928/0.001928, allocations: 47.92 kB / 328 MB, free: 3.812 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09349/0.09544, allocations: 46.62 MB / 374.7 MB, free: 5.082 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.1922/0.2877, allocations: 15.07 MB / 389.7 MB, free: 4.535 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01129/0.299, allocations: 4.817 MB / 394.5 MB, free: 1.512 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003376/0.3024, allocations: 96.09 kB / 394.6 MB, free: 1.492 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006194/0.3087, allocations: 3.164 MB / 397.8 MB, free: 36 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00831/0.3171, allocations: 2.57 MB / 400.4 MB, free: 14.86 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00273/0.3198, allocations: 0.9863 MB / 401.4 MB, free: 14.47 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01089/0.3307, allocations: 6.637 MB / 408 MB, free: 11.07 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006608/0.3374, allocations: 4.354 MB / 412.3 MB, free: 8.531 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004951/0.3424, allocations: 2.24 MB / 414.6 MB, free: 7.262 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005908/0.3483, allocations: 3.244 MB / 417.8 MB, free: 4.586 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001958/0.3503, allocations: 484 kB / 418.3 MB, free: 4.113 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004599/0.355, allocations: 1.482 MB / 419.8 MB, free: 2.629 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004524/0.3595, allocations: 2.871 MB / 422.7 MB, free: 15.75 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006524/0.3661, allocations: 3.324 MB / 426 MB, free: 12.41 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0166/0.3827, allocations: 10.64 MB / 436.6 MB, free: 1.723 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.276e-05/0.3828, allocations: 0 / 436.6 MB, free: 1.723 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.512e-06/0.3828, allocations: 3.938 kB / 436.6 MB, free: 1.719 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0004162/0.3832, allocations: 4 kB / 436.6 MB, free: 1.715 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.02234/0.4056, allocations: 7.678 MB / 444.3 MB, free: 9.941 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.388e-05/0.4057, allocations: 8.031 kB / 444.3 MB, free: 9.934 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003827/0.4095, allocations: 1.144 MB / 445.5 MB, free: 8.773 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04567/0.4552, allocations: 7.551 MB / 453 MB, free: 1.207 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01215/0.4674, allocations: 5.198 MB / 458.2 MB, free: 11.95 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003625/0.4678, allocations: 320.4 kB / 458.5 MB, free: 11.63 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002105/0.4699, allocations: 439.6 kB / 459 MB, free: 11.2 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03283/0.5028, allocations: 15.61 MB / 474.6 MB, free: 10.67 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002845/0.5031, allocations: 59.56 kB / 474.6 MB, free: 10.61 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001818/0.505, allocations: 207.8 kB / 474.8 MB, free: 10.41 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005805/0.5108, allocations: 3.216 MB / 478 MB, free: 7.188 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03102/0.5418, allocations: 13.9 MB / 491.9 MB, free: 9.262 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08629/0.6282, allocations: 57.25 MB / 0.5363 GB, free: 14.45 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01504/0.6433, allocations: 6.491 MB / 0.5427 GB, free: 7.707 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005682/0.649, allocations: 3.563 MB / 0.5461 GB, free: 4.129 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2309/0.8799, allocations: 14.31 MB / 0.5601 GB, free: 144.1 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.25e-05/0.88, allocations: 66.3 kB / 0.5602 GB, free: 144 MB / 478.1 MB Notification: Performance of pre-optimization done (n=286): time 7.404e-06/0.8801, allocations: 0 / 0.5602 GB, free: 144 MB / 478.1 MB Notification: Performance of matching and sorting (n=336): time 0.1503/1.03, allocations: 42.07 MB / 0.6013 GB, free: 122.7 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001084/1.031, allocations: 217.9 kB / 0.6015 GB, free: 122.4 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01093/1.041, allocations: 5.543 MB / 0.6069 GB, free: 117 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009706/1.042, allocations: 69.7 kB / 0.607 GB, free: 116.9 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003419/1.046, allocations: 4.602 MB / 0.6114 GB, free: 112.7 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001881/1.048, allocations: 1.298 MB / 0.6127 GB, free: 111.4 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005456/1.053, allocations: 1.79 MB / 0.6145 GB, free: 109.6 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 5.476e-05/1.053, allocations: 305.1 kB / 0.6148 GB, free: 109.3 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006373/1.06, allocations: 4.62 MB / 0.6193 GB, free: 104.7 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008838/1.069, allocations: 9.594 MB / 0.6286 GB, free: 92.63 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01554/1.084, allocations: 15.26 MB / 0.6435 GB, free: 74.9 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002032/1.084, allocations: 52 kB / 0.6436 GB, free: 74.85 MB / 478.1 MB Notification: Performance of matching and sorting (n=1148) (initialization): time 0.04318/1.128, allocations: 18.99 MB / 0.6621 GB, free: 55.82 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002393/1.128, allocations: 80.94 kB / 0.6622 GB, free: 55.74 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003385/1.128, allocations: 174.3 kB / 0.6624 GB, free: 55.57 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02192/1.15, allocations: 5.773 MB / 0.668 GB, free: 49.79 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00711/1.157, allocations: 2.059 MB / 0.67 GB, free: 47.73 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02981/1.187, allocations: 25.64 MB / 0.6951 GB, free: 21.8 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007415/1.195, allocations: 0.5501 MB / 0.6956 GB, free: 21.25 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001722/1.196, allocations: 0.5 MB / 0.6961 GB, free: 20.75 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.006436/1.203, allocations: 3.103 MB / 0.6991 GB, free: 17.63 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00157/1.204, allocations: 0.52 MB / 0.6996 GB, free: 17.11 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03139/1.236, allocations: 12.6 MB / 0.7119 GB, free: 4.438 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001172/1.236, allocations: 59.34 kB / 0.712 GB, free: 4.383 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.153e-05/1.236, allocations: 12 kB / 0.712 GB, free: 4.371 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001192/1.236, allocations: 19.88 kB / 0.712 GB, free: 4.355 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.271/1.507, allocations: 24.2 MB / 0.7356 GB, free: 144.1 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.258e-05/1.507, allocations: 7.062 kB / 0.7356 GB, free: 144.1 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003292/1.511, allocations: 0.5684 MB / 0.7362 GB, free: 144.1 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02005/1.531, allocations: 4.815 MB / 0.7409 GB, free: 144.1 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008823/1.532, allocations: 58.44 kB / 0.741 GB, free: 144.1 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02738/1.559, allocations: 20.9 MB / 0.7614 GB, free: 134.2 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.231e-05/1.559, allocations: 11.81 kB / 0.7614 GB, free: 134.2 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03527/1.594, allocations: 17.02 MB / 0.778 GB, free: 127.2 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003624/1.598, allocations: 1.251 MB / 0.7792 GB, free: 126.7 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002132/1.6, allocations: 63.19 kB / 0.7793 GB, free: 126.7 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004311/1.605, allocations: 252.5 kB / 0.7795 GB, free: 126.5 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001275/1.606, allocations: 191.7 kB / 0.7797 GB, free: 126.4 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007195/1.607, allocations: 81 kB / 0.7798 GB, free: 126.4 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.006871/1.614, allocations: 3.449 MB / 0.7832 GB, free: 124.7 MB / 494.1 MB Notification: Performance of sort global known variables: time 4.31e-07/1.614, allocations: 0 / 0.7832 GB, free: 124.7 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.009764/1.623, allocations: 1.71 MB / 0.7848 GB, free: 123.8 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.03672/1.66, allocations: 17.68 MB / 0.8021 GB, free: 106.3 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01501/1.675, allocations: 10.63 MB / 0.8125 GB, free: 95.76 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.212e-05/1.675, allocations: 0 / 0.8125 GB, free: 95.76 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005795/1.681, allocations: 4.023 MB / 0.8164 GB, free: 91.74 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007056/1.688, allocations: 0.654 MB / 0.817 GB, free: 91.12 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.149/1.837, allocations: 86.33 MB / 0.9014 GB, free: 13.18 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009403/1.847, allocations: 4.628 MB / 0.9059 GB, free: 8.527 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.008711/1.855, allocations: 2.98 MB / 0.9088 GB, free: 5.543 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006672/1.862, allocations: 2.924 MB / 0.9116 GB, free: 2.617 MB / 0.4981 GB Notification: Performance of SimCode: time 1.092e-06/1.862, allocations: 0 / 0.9116 GB, free: 2.617 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3658/2.228, allocations: 125.6 MB / 1.034 GB, free: 68.35 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 40.35/42.58, allocations: 16.92 kB / 1.034 GB, free: 68.34 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