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.001251/0.001251, allocations: 102.5 kB / 17.73 MB, free: 5.371 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.001065/0.001065, allocations: 191 kB / 18.66 MB, free: 4.445 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.358/1.358, 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.001273/0.001273, allocations: 51.92 kB / 328 MB, free: 3.812 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09053/0.09181, allocations: 46.62 MB / 374.6 MB, free: 5.086 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.2114/0.3033, allocations: 15.08 MB / 389.7 MB, free: 4.516 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01218/0.3155, allocations: 4.816 MB / 394.5 MB, free: 1.508 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004041/0.3196, allocations: 93.56 kB / 394.6 MB, free: 1.492 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006762/0.3264, allocations: 3.169 MB / 397.8 MB, free: 28 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009042/0.3355, allocations: 2.56 MB / 400.4 MB, free: 14.86 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003126/0.3387, allocations: 0.9902 MB / 401.3 MB, free: 14.47 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01205/0.3508, allocations: 6.642 MB / 408 MB, free: 11.07 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008249/0.3591, allocations: 4.354 MB / 412.3 MB, free: 8.523 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005286/0.3644, allocations: 2.24 MB / 414.6 MB, free: 7.25 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005859/0.3703, allocations: 3.256 MB / 417.8 MB, free: 4.559 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001853/0.3722, allocations: 484 kB / 418.3 MB, free: 4.086 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005064/0.3773, allocations: 1.49 MB / 419.8 MB, free: 2.594 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006043/0.3834, allocations: 2.899 MB / 422.7 MB, free: 15.69 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008796/0.3922, allocations: 3.324 MB / 426 MB, free: 12.34 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01577/0.408, allocations: 10.6 MB / 436.6 MB, free: 1.699 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.807e-06/0.4081, allocations: 0 / 436.6 MB, free: 1.699 MB / 350.1 MB Notification: Performance of FrontEnd: time 4.028e-06/0.4081, allocations: 4 kB / 436.6 MB, free: 1.695 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0004311/0.4085, allocations: 0 / 436.6 MB, free: 1.695 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.02303/0.4316, allocations: 7.498 MB / 444.1 MB, free: 10.11 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.086e-05/0.4317, allocations: 16.03 kB / 444.1 MB, free: 10.1 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004434/0.4361, allocations: 1.133 MB / 445.3 MB, free: 8.949 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04724/0.4834, allocations: 7.508 MB / 452.8 MB, free: 1.422 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01316/0.4966, allocations: 5.189 MB / 458 MB, free: 12.17 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000376/0.497, allocations: 316.4 kB / 458.3 MB, free: 11.86 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002104/0.4991, allocations: 439.6 kB / 458.7 MB, free: 11.43 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03059/0.5297, allocations: 15.6 MB / 474.3 MB, free: 10.9 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000276/0.5301, allocations: 59.44 kB / 474.4 MB, free: 10.84 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001758/0.5318, allocations: 203.8 kB / 474.6 MB, free: 10.64 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005458/0.5373, allocations: 3.223 MB / 477.8 MB, free: 7.414 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02902/0.5664, allocations: 13.91 MB / 491.7 MB, free: 9.484 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07665/0.6431, allocations: 57.13 MB / 0.536 GB, free: 14.78 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01323/0.6563, allocations: 6.483 MB / 0.5423 GB, free: 8.043 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004549/0.6609, allocations: 3.566 MB / 0.5458 GB, free: 4.465 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2085/0.8695, allocations: 14.31 MB / 0.5598 GB, free: 144.4 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.679e-05/0.8696, allocations: 60.91 kB / 0.5598 GB, free: 144.4 MB / 478.1 MB Notification: Performance of pre-optimization done (n=286): time 6.111e-06/0.8696, allocations: 0 / 0.5598 GB, free: 144.4 MB / 478.1 MB Notification: Performance of matching and sorting (n=336): time 0.1375/1.007, allocations: 41.75 MB / 0.6006 GB, free: 123.3 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.336e-05/1.007, allocations: 217.9 kB / 0.6008 GB, free: 123 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006255/1.013, allocations: 5.52 MB / 0.6062 GB, free: 117.5 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008727/1.014, allocations: 73.7 kB / 0.6062 GB, free: 117.4 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002024/1.016, allocations: 4.424 MB / 0.6106 GB, free: 113 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001359/1.018, allocations: 1.242 MB / 0.6118 GB, free: 111.8 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002223/1.02, allocations: 1.776 MB / 0.6135 GB, free: 110 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 6.913e-05/1.02, allocations: 305.1 kB / 0.6138 GB, free: 109.7 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005053/1.025, allocations: 4.62 MB / 0.6183 GB, free: 105.1 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006858/1.032, allocations: 9.586 MB / 0.6277 GB, free: 93.03 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01383/1.046, allocations: 15.26 MB / 0.6426 GB, free: 75.3 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001157/1.046, allocations: 52 kB / 0.6426 GB, free: 75.25 MB / 478.1 MB Notification: Performance of matching and sorting (n=1148) (initialization): time 0.04001/1.086, allocations: 18.97 MB / 0.6612 GB, free: 56.23 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002437/1.086, allocations: 80 kB / 0.6612 GB, free: 56.15 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003221/1.087, allocations: 172 kB / 0.6614 GB, free: 55.98 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02216/1.109, allocations: 5.777 MB / 0.667 GB, free: 50.2 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007039/1.116, allocations: 2.051 MB / 0.669 GB, free: 48.14 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0298/1.146, allocations: 25.65 MB / 0.6941 GB, free: 22.21 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007487/1.153, allocations: 0.5383 MB / 0.6946 GB, free: 21.67 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001799/1.155, allocations: 0.5 MB / 0.6951 GB, free: 21.17 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.006281/1.161, allocations: 3.102 MB / 0.6981 GB, free: 18.05 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001856/1.163, allocations: 0.4996 MB / 0.6986 GB, free: 17.55 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02944/1.193, allocations: 12.6 MB / 0.7109 GB, free: 4.875 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.307e-05/1.193, allocations: 51.98 kB / 0.711 GB, free: 4.824 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.217e-05/1.193, allocations: 8 kB / 0.711 GB, free: 4.816 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.979e-05/1.193, allocations: 11.95 kB / 0.711 GB, free: 4.805 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.266/1.459, allocations: 24.2 MB / 0.7346 GB, free: 143.6 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.468e-05/1.459, allocations: 5.031 kB / 0.7346 GB, free: 143.6 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003824/1.463, allocations: 0.5744 MB / 0.7352 GB, free: 143.6 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.022/1.485, allocations: 4.811 MB / 0.7399 GB, free: 143.6 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001092/1.486, allocations: 63.62 kB / 0.7399 GB, free: 143.6 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02784/1.514, allocations: 20.9 MB / 0.7604 GB, free: 134 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.356e-06/1.514, allocations: 3.969 kB / 0.7604 GB, free: 134 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03395/1.548, allocations: 16.99 MB / 0.777 GB, free: 127.1 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003934/1.552, allocations: 1.231 MB / 0.7782 GB, free: 126.6 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001152/1.553, allocations: 57.86 kB / 0.7782 GB, free: 126.6 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003127/1.556, allocations: 256.8 kB / 0.7785 GB, free: 126.5 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006943/1.557, allocations: 191.4 kB / 0.7786 GB, free: 126.4 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002594/1.557, allocations: 78.03 kB / 0.7787 GB, free: 126.4 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.00473/1.562, allocations: 3.452 MB / 0.7821 GB, free: 124.6 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.8e-07/1.562, allocations: 0 / 0.7821 GB, free: 124.6 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.007581/1.57, allocations: 1.709 MB / 0.7838 GB, free: 124.5 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.03137/1.601, allocations: 17.66 MB / 0.801 GB, free: 107 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01448/1.615, allocations: 10.63 MB / 0.8114 GB, free: 96.49 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.091e-05/1.616, allocations: 4 kB / 0.8114 GB, free: 96.48 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004796/1.62, allocations: 4.011 MB / 0.8153 GB, free: 92.48 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003939/1.624, allocations: 0.6483 MB / 0.8159 GB, free: 91.87 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1268/1.751, allocations: 86.07 MB / 0.9 GB, free: 14.2 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005648/1.757, allocations: 4.628 MB / 0.9045 GB, free: 9.547 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.006729/1.764, allocations: 2.987 MB / 0.9074 GB, free: 6.555 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004105/1.768, allocations: 2.928 MB / 0.9103 GB, free: 3.625 MB / 0.4981 GB Notification: Performance of SimCode: time 1.383e-06/1.768, allocations: 0 / 0.9103 GB, free: 3.625 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3836/2.151, allocations: 127.9 MB / 1.035 GB, free: 89.89 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 39.13/41.28, allocations: 25.62 kB / 1.035 GB, free: 89.87 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