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.001095/0.001095, allocations: 96.52 kB / 17.58 MB, free: 5.453 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.001226/0.001226, allocations: 192.2 kB / 18.51 MB, free: 4.527 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.356/1.356, allocations: 205.1 MB / 224.4 MB, free: 12.31 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.001169/0.001169, allocations: 56.14 kB / 280.8 MB, free: 3.078 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08277/0.08395, allocations: 46.62 MB / 327.4 MB, free: 4.383 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.01416/0.09815, allocations: 15.08 MB / 342.5 MB, free: 5.223 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.008904/0.1071, allocations: 4.824 MB / 347.3 MB, free: 388 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001938/0.1091, allocations: 95.75 kB / 347.4 MB, free: 292 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005421/0.1145, allocations: 3.161 MB / 350.5 MB, free: 13.11 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006547/0.1211, allocations: 2.556 MB / 353.1 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002164/0.1233, allocations: 0.9866 MB / 354.1 MB, free: 9.559 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.009246/0.1326, allocations: 6.652 MB / 360.7 MB, free: 2.891 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004965/0.1376, allocations: 4.35 MB / 365.1 MB, free: 14.48 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003337/0.1409, allocations: 2.235 MB / 367.3 MB, free: 12.24 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004034/0.145, allocations: 3.244 MB / 370.6 MB, free: 8.984 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00104/0.146, allocations: 484 kB / 371 MB, free: 8.512 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002812/0.1488, allocations: 1.49 MB / 372.5 MB, free: 7.02 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002873/0.1517, allocations: 2.868 MB / 375.4 MB, free: 4.145 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003665/0.1554, allocations: 3.32 MB / 378.7 MB, free: 0.8047 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1778/0.3332, allocations: 10.23 MB / 388.9 MB, free: 20.07 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.737e-06/0.3333, allocations: 3.562 kB / 388.9 MB, free: 20.07 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.973e-06/0.3333, allocations: 0 / 388.9 MB, free: 20.07 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0004231/0.3337, allocations: 0.9375 kB / 388.9 MB, free: 20.07 MB / 318.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.02501/0.3587, allocations: 7.51 MB / 396.4 MB, free: 17.37 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.803e-05/0.3588, allocations: 10.97 kB / 396.5 MB, free: 17.37 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004012/0.3628, allocations: 1.129 MB / 397.6 MB, free: 17.27 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04252/0.4054, allocations: 7.509 MB / 405.1 MB, free: 14.95 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01102/0.4164, allocations: 5.12 MB / 410.2 MB, free: 12.78 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001987/0.4166, allocations: 321.8 kB / 410.5 MB, free: 12.69 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001581/0.4182, allocations: 435.3 kB / 411 MB, free: 12.59 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02142/0.4397, allocations: 15.61 MB / 426.6 MB, free: 8 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001718/0.4399, allocations: 63.33 kB / 426.6 MB, free: 15.97 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006341/0.4405, allocations: 207 kB / 426.8 MB, free: 15.83 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004753/0.4453, allocations: 3.217 MB / 430 MB, free: 12.65 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02569/0.471, allocations: 13.9 MB / 443.9 MB, free: 14.97 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07722/0.5482, allocations: 57.41 MB / 0.4896 GB, free: 4.863 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01463/0.5629, allocations: 6.493 MB / 0.4959 GB, free: 14.14 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005396/0.5684, allocations: 3.562 MB / 0.4994 GB, free: 10.57 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02472/0.5931, allocations: 14.32 MB / 0.5134 GB, free: 11.84 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.496e-05/0.5932, allocations: 71.66 kB / 0.5135 GB, free: 11.77 MB / 430.1 MB Notification: Performance of pre-optimization done (n=286): time 6.703e-06/0.5932, allocations: 0 / 0.5135 GB, free: 11.77 MB / 430.1 MB Notification: Performance of matching and sorting (n=336): time 0.3132/0.9064, allocations: 41.71 MB / 0.5542 GB, free: 139.6 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.9e-05/0.9065, allocations: 214 kB / 0.5544 GB, free: 139.3 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006421/0.913, allocations: 5.529 MB / 0.5598 GB, free: 133.8 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000665/0.9137, allocations: 65.7 kB / 0.5599 GB, free: 133.8 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001744/0.9154, allocations: 4.42 MB / 0.5642 GB, free: 129.4 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001232/0.9167, allocations: 1.248 MB / 0.5654 GB, free: 128.1 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002117/0.9188, allocations: 1.775 MB / 0.5671 GB, free: 126.3 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 3.665e-05/0.9188, allocations: 301.1 kB / 0.5674 GB, free: 126 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004875/0.9237, allocations: 4.624 MB / 0.5719 GB, free: 121.4 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006542/0.9303, allocations: 9.599 MB / 0.5813 GB, free: 109.4 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01257/0.9428, allocations: 15.25 MB / 0.5962 GB, free: 91.65 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.123e-05/0.9429, allocations: 52 kB / 0.5963 GB, free: 91.6 MB / 430.1 MB Notification: Performance of matching and sorting (n=1148) (initialization): time 0.03675/0.9797, allocations: 18.96 MB / 0.6148 GB, free: 72.59 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.184e-05/0.9798, allocations: 80.12 kB / 0.6149 GB, free: 72.52 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001221/0.98, allocations: 180 kB / 0.615 GB, free: 72.34 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02058/1.001, allocations: 5.782 MB / 0.6207 GB, free: 66.55 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006298/1.007, allocations: 2.047 MB / 0.6227 GB, free: 64.5 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02562/1.032, allocations: 25.65 MB / 0.6477 GB, free: 38.57 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007179/1.04, allocations: 0.5448 MB / 0.6483 GB, free: 38.03 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001339/1.041, allocations: 0.5077 MB / 0.6488 GB, free: 37.52 MB / 430.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.004755/1.046, allocations: 3.094 MB / 0.6518 GB, free: 34.41 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009501/1.047, allocations: 0.4974 MB / 0.6523 GB, free: 33.91 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02708/1.074, allocations: 12.61 MB / 0.6646 GB, free: 21.23 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.566e-05/1.074, allocations: 58.25 kB / 0.6646 GB, free: 21.18 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.407e-05/1.074, allocations: 8 kB / 0.6646 GB, free: 21.17 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.245e-05/1.074, allocations: 11.95 kB / 0.6646 GB, free: 21.16 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2185/1.293, allocations: 24.28 MB / 0.6884 GB, free: 132.6 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.551e-05/1.293, allocations: 6.719 kB / 0.6884 GB, free: 132.6 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003052/1.296, allocations: 0.5746 MB / 0.6889 GB, free: 132.6 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01838/1.314, allocations: 4.804 MB / 0.6936 GB, free: 131.9 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007482/1.315, allocations: 60.88 kB / 0.6937 GB, free: 131.9 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02178/1.337, allocations: 20.9 MB / 0.7141 GB, free: 121.5 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.9e-06/1.337, allocations: 11.94 kB / 0.7141 GB, free: 121.4 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03204/1.369, allocations: 16.99 MB / 0.7307 GB, free: 104.7 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003249/1.372, allocations: 1.228 MB / 0.7319 GB, free: 103.7 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001106/1.373, allocations: 61.78 kB / 0.7319 GB, free: 103.7 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002979/1.376, allocations: 251.6 kB / 0.7322 GB, free: 103.4 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007328/1.377, allocations: 194.1 kB / 0.7324 GB, free: 103.2 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002547/1.377, allocations: 86.19 kB / 0.7324 GB, free: 103.1 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.00496/1.382, allocations: 3.444 MB / 0.7358 GB, free: 99.72 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.31e-07/1.382, allocations: 0 / 0.7358 GB, free: 99.72 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.008234/1.39, allocations: 1.713 MB / 0.7375 GB, free: 98.02 MB / 430.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.03092/1.421, allocations: 17.66 MB / 0.7547 GB, free: 80.5 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.02029/1.442, allocations: 15.25 MB / 0.7696 GB, free: 65.34 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.152e-05/1.442, allocations: 4 kB / 0.7696 GB, free: 65.34 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004662/1.446, allocations: 4.016 MB / 0.7735 GB, free: 61.31 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003987/1.45, allocations: 0.6505 MB / 0.7742 GB, free: 60.69 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3071/1.758, allocations: 98.61 MB / 0.8705 GB, free: 126.2 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004372/1.762, allocations: 4.636 MB / 0.875 GB, free: 124.5 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.006043/1.768, allocations: 2.977 MB / 0.8779 GB, free: 123.4 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003211/1.771, allocations: 2.926 MB / 0.8808 GB, free: 120.8 MB / 446.1 MB Notification: Performance of SimCode: time 5.51e-07/1.771, allocations: 0 / 0.8808 GB, free: 120.8 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2997/2.071, allocations: 130.7 MB / 1.008 GB, free: 142 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.77/13.85, allocations: 13.52 kB / 1.008 GB, free: 142 MB / 446.1 MB (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