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.001228/0.001228, 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.001193/0.001193, 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.37/1.37, 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.001632/0.001632, allocations: 52.14 kB / 328 MB, free: 3.812 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09126/0.0929, 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.1772/0.2701, allocations: 15.08 MB / 389.7 MB, free: 4.562 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009661/0.2798, allocations: 4.818 MB / 394.5 MB, free: 1.516 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002986/0.2829, allocations: 97.25 kB / 394.6 MB, free: 1.496 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005729/0.2887, allocations: 3.164 MB / 397.8 MB, free: 36 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007637/0.2963, allocations: 2.558 MB / 400.4 MB, free: 14.87 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002488/0.2989, allocations: 0.9882 MB / 401.3 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01027/0.3091, allocations: 6.642 MB / 408 MB, free: 11.09 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006698/0.3159, allocations: 4.352 MB / 412.3 MB, free: 8.535 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005627/0.3215, allocations: 2.24 MB / 414.6 MB, free: 7.266 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005821/0.3274, allocations: 3.247 MB / 417.8 MB, free: 4.574 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001406/0.3288, allocations: 484 kB / 418.3 MB, free: 4.102 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00353/0.3324, allocations: 1.486 MB / 419.8 MB, free: 2.613 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003332/0.3357, allocations: 2.875 MB / 422.7 MB, free: 15.73 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004842/0.3406, allocations: 3.32 MB / 426 MB, free: 12.39 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01462/0.3552, allocations: 10.64 MB / 436.6 MB, free: 1.711 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.338e-06/0.3552, allocations: 0 / 436.6 MB, free: 1.711 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.3553, allocations: 3.938 kB / 436.6 MB, free: 1.707 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0003267/0.3556, allocations: 0 / 436.6 MB, free: 1.707 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.01796/0.3736, allocations: 7.682 MB / 444.3 MB, free: 9.926 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.778e-05/0.3736, allocations: 16.03 kB / 444.3 MB, free: 9.91 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001953/0.3756, allocations: 1.133 MB / 445.5 MB, free: 8.762 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04348/0.4191, allocations: 7.559 MB / 453 MB, free: 1.188 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01166/0.4308, allocations: 5.202 MB / 458.2 MB, free: 11.93 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003007/0.4311, allocations: 320.4 kB / 458.5 MB, free: 11.61 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001431/0.4326, allocations: 439.5 kB / 459 MB, free: 11.18 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02602/0.4586, allocations: 15.61 MB / 474.6 MB, free: 10.64 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001544/0.4588, allocations: 59.56 kB / 474.6 MB, free: 10.59 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005929/0.4594, allocations: 203.8 kB / 474.8 MB, free: 10.39 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005026/0.4644, allocations: 3.216 MB / 478 MB, free: 7.168 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02657/0.491, allocations: 13.91 MB / 492 MB, free: 9.234 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07837/0.5694, allocations: 57.23 MB / 0.5363 GB, free: 14.44 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01434/0.5838, allocations: 6.475 MB / 0.5426 GB, free: 7.711 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005223/0.5891, allocations: 3.578 MB / 0.5461 GB, free: 4.117 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1999/0.789, allocations: 14.31 MB / 0.5601 GB, free: 144.3 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.997e-05/0.7891, allocations: 59.64 kB / 0.5602 GB, free: 144.2 MB / 478.1 MB Notification: Performance of pre-optimization done (n=286): time 6.542e-06/0.7891, allocations: 1.094 kB / 0.5602 GB, free: 144.2 MB / 478.1 MB Notification: Performance of matching and sorting (n=336): time 0.1334/0.9225, allocations: 42.07 MB / 0.6013 GB, free: 122.8 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.936e-05/0.9227, allocations: 221.8 kB / 0.6015 GB, free: 122.5 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005922/0.9286, allocations: 5.542 MB / 0.6069 GB, free: 117.1 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006904/0.9293, allocations: 69.7 kB / 0.6069 GB, free: 117.1 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002089/0.9314, allocations: 4.598 MB / 0.6114 GB, free: 112.8 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001273/0.9327, allocations: 1.305 MB / 0.6127 GB, free: 111.5 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002085/0.9348, allocations: 1.787 MB / 0.6145 GB, free: 109.7 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 4.24e-05/0.9348, allocations: 305.1 kB / 0.6147 GB, free: 109.4 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004741/0.9396, allocations: 4.624 MB / 0.6193 GB, free: 104.8 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006231/0.9458, allocations: 9.586 MB / 0.6286 GB, free: 92.74 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01276/0.9586, allocations: 15.26 MB / 0.6435 GB, free: 75.01 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001037/0.9587, allocations: 48 kB / 0.6436 GB, free: 74.96 MB / 478.1 MB Notification: Performance of matching and sorting (n=1148) (initialization): time 0.03722/0.996, allocations: 18.99 MB / 0.6621 GB, free: 55.92 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.358e-05/0.9961, allocations: 80 kB / 0.6622 GB, free: 55.84 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001435/0.9962, allocations: 176 kB / 0.6624 GB, free: 55.67 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02103/1.017, allocations: 5.78 MB / 0.668 GB, free: 49.88 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006372/1.024, allocations: 2.049 MB / 0.67 GB, free: 47.83 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02573/1.049, allocations: 25.64 MB / 0.6951 GB, free: 21.9 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006808/1.056, allocations: 0.5462 MB / 0.6956 GB, free: 21.36 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009252/1.057, allocations: 0.5 MB / 0.6961 GB, free: 20.86 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.003728/1.061, allocations: 3.11 MB / 0.6991 GB, free: 17.73 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008863/1.062, allocations: 0.52 MB / 0.6996 GB, free: 17.21 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02761/1.089, allocations: 12.6 MB / 0.7119 GB, free: 4.539 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.629e-05/1.09, allocations: 52.55 kB / 0.712 GB, free: 4.488 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.981e-05/1.09, allocations: 8 kB / 0.712 GB, free: 4.48 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.94e-05/1.09, allocations: 15.95 kB / 0.712 GB, free: 4.465 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.234/1.324, allocations: 24.21 MB / 0.7356 GB, free: 144.2 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.29e-05/1.324, allocations: 6.094 kB / 0.7356 GB, free: 144.2 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003035/1.327, allocations: 0.5696 MB / 0.7362 GB, free: 144.2 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01918/1.346, allocations: 4.82 MB / 0.7409 GB, free: 144.2 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006387/1.347, allocations: 55.12 kB / 0.741 GB, free: 144.2 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02364/1.37, allocations: 20.91 MB / 0.7614 GB, free: 134.3 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.628e-06/1.37, allocations: 11.77 kB / 0.7614 GB, free: 134.3 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03052/1.401, allocations: 17.02 MB / 0.778 GB, free: 127.2 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002768/1.404, allocations: 1.261 MB / 0.7792 GB, free: 126.7 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008915/1.404, allocations: 50.66 kB / 0.7793 GB, free: 126.7 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002844/1.407, allocations: 257.7 kB / 0.7795 GB, free: 126.5 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006833/1.408, allocations: 189.6 kB / 0.7797 GB, free: 126.4 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002537/1.408, allocations: 83.42 kB / 0.7798 GB, free: 126.4 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.004328/1.413, allocations: 3.446 MB / 0.7832 GB, free: 124.7 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.61e-07/1.413, allocations: 0 / 0.7832 GB, free: 124.7 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.007059/1.42, allocations: 1.709 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.03014/1.45, allocations: 17.69 MB / 0.8021 GB, free: 106.3 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01288/1.463, allocations: 10.63 MB / 0.8125 GB, free: 95.72 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 8.787e-06/1.463, allocations: 0 / 0.8125 GB, free: 95.72 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004448/1.467, allocations: 4.023 MB / 0.8164 GB, free: 91.69 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003683/1.471, allocations: 0.6431 MB / 0.817 GB, free: 91.08 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1199/1.591, allocations: 86.33 MB / 0.9013 GB, free: 13.13 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006065/1.597, allocations: 4.632 MB / 0.9059 GB, free: 8.469 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.006734/1.604, allocations: 2.984 MB / 0.9088 GB, free: 5.48 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004616/1.608, allocations: 2.931 MB / 0.9116 GB, free: 2.551 MB / 0.4981 GB Notification: Performance of SimCode: time 7.82e-07/1.608, allocations: 0 / 0.9116 GB, free: 2.551 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3466/1.955, allocations: 125.6 MB / 1.034 GB, free: 68.15 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 37.1/39.06, allocations: 12.86 kB / 1.034 GB, free: 68.14 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 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.mat","/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