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.001278/0.001278, allocations: 109.5 kB / 17.73 MB, free: 5.344 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.001551/0.001551, allocations: 192.1 kB / 18.66 MB, free: 4.418 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.334/1.334, 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.001377/0.001377, allocations: 55.92 kB / 328 MB, free: 3.801 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08781/0.0892, allocations: 46.62 MB / 374.6 MB, free: 5.074 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.1841/0.2734, allocations: 15.08 MB / 389.7 MB, free: 4.535 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01001/0.2834, allocations: 4.817 MB / 394.5 MB, free: 1.492 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00322/0.2867, allocations: 93.25 kB / 394.6 MB, free: 1.477 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006189/0.2929, allocations: 3.163 MB / 397.8 MB, free: 16 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008065/0.301, allocations: 2.558 MB / 400.3 MB, free: 14.85 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002498/0.3035, allocations: 0.9985 MB / 401.3 MB, free: 14.46 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01012/0.3136, allocations: 6.631 MB / 408 MB, free: 11.07 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005915/0.3196, allocations: 4.37 MB / 412.3 MB, free: 8.504 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00472/0.3244, allocations: 2.232 MB / 414.6 MB, free: 7.238 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005491/0.3299, allocations: 3.253 MB / 417.8 MB, free: 4.543 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001338/0.3313, allocations: 484 kB / 418.3 MB, free: 4.07 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003227/0.3345, allocations: 1.494 MB / 419.8 MB, free: 2.574 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003115/0.3376, allocations: 2.895 MB / 422.7 MB, free: 15.67 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003974/0.3416, allocations: 3.324 MB / 426 MB, free: 12.33 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01176/0.3534, allocations: 10.61 MB / 436.6 MB, free: 1.684 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.402e-06/0.3534, allocations: 0 / 436.6 MB, free: 1.684 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.3534, allocations: 0 / 436.6 MB, free: 1.684 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.000301/0.3537, allocations: 0 / 436.6 MB, free: 1.684 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.01564/0.3694, allocations: 7.502 MB / 444.1 MB, free: 10.09 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.249e-05/0.3694, allocations: 12.03 kB / 444.1 MB, free: 10.08 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001817/0.3713, allocations: 1.137 MB / 445.3 MB, free: 8.93 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04007/0.4113, allocations: 7.512 MB / 452.8 MB, free: 1.398 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01092/0.4223, allocations: 5.181 MB / 458 MB, free: 12.16 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003523/0.4227, allocations: 324.4 kB / 458.3 MB, free: 11.84 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00186/0.4246, allocations: 427.6 kB / 458.7 MB, free: 11.42 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03129/0.4559, allocations: 15.61 MB / 474.3 MB, free: 10.88 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002788/0.4562, allocations: 55.44 kB / 474.4 MB, free: 10.82 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001956/0.4582, allocations: 207.8 kB / 474.6 MB, free: 10.62 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005199/0.4634, allocations: 3.22 MB / 477.8 MB, free: 7.395 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02757/0.491, allocations: 13.91 MB / 491.7 MB, free: 9.465 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07936/0.5704, allocations: 57.12 MB / 0.536 GB, free: 14.77 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01449/0.5849, allocations: 6.491 MB / 0.5423 GB, free: 8.023 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005099/0.5901, allocations: 3.559 MB / 0.5458 GB, free: 4.449 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2131/0.8032, allocations: 14.3 MB / 0.5597 GB, free: 144.4 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.619e-05/0.8033, allocations: 68.52 kB / 0.5598 GB, free: 144.4 MB / 478.1 MB Notification: Performance of pre-optimization done (n=286): time 6.853e-06/0.8033, allocations: 0 / 0.5598 GB, free: 144.4 MB / 478.1 MB Notification: Performance of matching and sorting (n=336): time 0.1316/0.9349, allocations: 41.75 MB / 0.6006 GB, free: 123.3 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.507e-05/0.9351, allocations: 221.9 kB / 0.6008 GB, free: 123 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006764/0.9418, allocations: 5.516 MB / 0.6062 GB, free: 117.5 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007453/0.9426, allocations: 71.11 kB / 0.6062 GB, free: 117.4 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001778/0.9444, allocations: 4.424 MB / 0.6106 GB, free: 113 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001292/0.9457, allocations: 1.245 MB / 0.6118 GB, free: 111.8 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002195/0.9479, allocations: 1.775 MB / 0.6135 GB, free: 110 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 4.325e-05/0.948, allocations: 305.1 kB / 0.6138 GB, free: 109.7 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00493/0.9529, allocations: 4.616 MB / 0.6183 GB, free: 105.1 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006774/0.9597, allocations: 9.594 MB / 0.6277 GB, free: 93.03 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01315/0.9729, allocations: 15.26 MB / 0.6426 GB, free: 75.3 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001115/0.973, allocations: 52 kB / 0.6426 GB, free: 75.25 MB / 478.1 MB Notification: Performance of matching and sorting (n=1148) (initialization): time 0.03793/1.011, allocations: 18.96 MB / 0.6611 GB, free: 56.23 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.514e-05/1.011, allocations: 83.88 kB / 0.6612 GB, free: 56.16 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001658/1.011, allocations: 180 kB / 0.6614 GB, free: 55.98 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01926/1.031, allocations: 5.772 MB / 0.667 GB, free: 50.2 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006641/1.037, allocations: 2.051 MB / 0.669 GB, free: 48.14 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02586/1.063, allocations: 25.64 MB / 0.6941 GB, free: 22.22 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007082/1.07, allocations: 0.5422 MB / 0.6946 GB, free: 21.68 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001592/1.072, allocations: 0.5 MB / 0.6951 GB, free: 21.18 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.00492/1.077, allocations: 3.109 MB / 0.6981 GB, free: 18.05 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001099/1.078, allocations: 0.4974 MB / 0.6986 GB, free: 17.55 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02631/1.104, allocations: 12.6 MB / 0.7109 GB, free: 4.879 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.895e-05/1.104, allocations: 59.34 kB / 0.711 GB, free: 4.824 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.725e-05/1.104, allocations: 8 kB / 0.711 GB, free: 4.816 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.482e-05/1.104, allocations: 15.95 kB / 0.711 GB, free: 4.801 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2231/1.327, allocations: 24.19 MB / 0.7346 GB, free: 143.5 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.868e-05/1.328, allocations: 7.125 kB / 0.7346 GB, free: 143.5 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003004/1.331, allocations: 0.5695 MB / 0.7352 GB, free: 143.5 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01818/1.349, allocations: 4.814 MB / 0.7399 GB, free: 143.5 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006768/1.349, allocations: 56.22 kB / 0.7399 GB, free: 143.5 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02372/1.373, allocations: 20.91 MB / 0.7604 GB, free: 134 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.889e-06/1.373, allocations: 7.844 kB / 0.7604 GB, free: 134 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03174/1.405, allocations: 16.99 MB / 0.777 GB, free: 127.1 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003144/1.408, allocations: 1.227 MB / 0.7782 GB, free: 126.6 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001465/1.41, allocations: 55.14 kB / 0.7782 GB, free: 126.5 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003176/1.413, allocations: 260.2 kB / 0.7785 GB, free: 126.4 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006745/1.413, allocations: 188.9 kB / 0.7786 GB, free: 126.3 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002519/1.414, allocations: 82.53 kB / 0.7787 GB, free: 126.3 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.005562/1.419, allocations: 3.45 MB / 0.7821 GB, free: 124.6 MB / 494.1 MB Notification: Performance of sort global known variables: time 8.21e-07/1.419, allocations: 0 / 0.7821 GB, free: 124.6 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.008568/1.428, allocations: 1.711 MB / 0.7838 GB, free: 124.4 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.02978/1.458, allocations: 17.65 MB / 0.801 GB, free: 107 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01402/1.472, allocations: 10.64 MB / 0.8114 GB, free: 96.48 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.155e-05/1.472, allocations: 4 kB / 0.8114 GB, free: 96.47 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005273/1.477, allocations: 4.005 MB / 0.8153 GB, free: 92.47 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004914/1.482, allocations: 0.6524 MB / 0.8159 GB, free: 91.85 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1221/1.604, allocations: 86.08 MB / 0.9 GB, free: 14.18 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005587/1.61, allocations: 4.63 MB / 0.9045 GB, free: 9.527 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.006528/1.616, allocations: 2.979 MB / 0.9074 GB, free: 6.543 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004368/1.621, allocations: 2.928 MB / 0.9103 GB, free: 3.613 MB / 0.4981 GB Notification: Performance of SimCode: time 6.91e-07/1.621, allocations: 0 / 0.9103 GB, free: 3.613 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3554/1.976, allocations: 127.9 MB / 1.035 GB, free: 89.7 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 36.94/38.92, allocations: 17.58 kB / 1.035 GB, free: 89.68 MB / 0.5137 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