Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001321/0.001321, allocations: 115.8 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001589/0.001589, allocations: 213.3 kB / 23.75 MB, free: 4.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.422/1.422, allocations: 230.6 MB / 257.5 MB, free: 8.004 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001542/0.001542, allocations: 51.91 kB / 377.8 MB, free: 3.148 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2387/0.2402, allocations: 53.35 MB / 431.1 MB, free: 6.867 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.01702/0.2573, allocations: 15.07 MB / 446.2 MB, free: 7.73 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01012/0.2674, allocations: 4.877 MB / 451.1 MB, free: 2.84 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002284/0.2697, allocations: 107.5 kB / 451.2 MB, free: 2.734 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006465/0.2761, allocations: 3.219 MB / 454.4 MB, free: 15.5 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006513/0.2826, allocations: 2.599 MB / 457 MB, free: 12.89 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002142/0.2848, allocations: 0.9905 MB / 458 MB, free: 11.9 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.00964/0.2944, allocations: 7.055 MB / 465.1 MB, free: 4.836 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005185/0.2996, allocations: 3.574 MB / 468.6 MB, free: 1.195 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003884/0.3035, allocations: 2.254 MB / 470.9 MB, free: 14.93 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005389/0.3089, allocations: 3.513 MB / 474.4 MB, free: 11.41 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001545/0.3104, allocations: 484 kB / 474.9 MB, free: 10.94 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003476/0.3139, allocations: 1.529 MB / 476.4 MB, free: 9.406 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003811/0.3177, allocations: 2.945 MB / 479.3 MB, free: 6.453 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005187/0.3229, allocations: 3.277 MB / 482.6 MB, free: 3.156 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01535/0.3382, allocations: 10.54 MB / 493.2 MB, free: 8.57 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.655e-06/0.3383, allocations: 0 / 493.2 MB, free: 8.57 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.3383, allocations: 0 / 493.2 MB, free: 8.57 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003905/0.3386, allocations: 0 / 493.2 MB, free: 8.57 MB / 398.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.01926/0.3579, allocations: 7.552 MB / 0.489 GB, free: 0.9414 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.588e-05/0.3579, allocations: 8.031 kB / 0.489 GB, free: 0.9336 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002413/0.3604, allocations: 1.133 MB / 0.4901 GB, free: 15.79 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04101/0.4014, allocations: 7.551 MB / 0.4975 GB, free: 8.219 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01112/0.4125, allocations: 4.575 MB / 0.5019 GB, free: 3.59 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003125/0.4128, allocations: 324.2 kB / 0.5022 GB, free: 3.27 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001613/0.4144, allocations: 431.7 kB / 0.5027 GB, free: 2.848 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02945/0.4439, allocations: 15.61 MB / 0.5179 GB, free: 2.309 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001903/0.444, allocations: 67.45 kB / 0.518 GB, free: 2.242 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006924/0.4447, allocations: 203.8 kB / 0.5182 GB, free: 2.043 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005528/0.4503, allocations: 3.216 MB / 0.5213 GB, free: 14.82 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02839/0.4787, allocations: 13.91 MB / 0.5349 GB, free: 0.8945 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2559/0.7346, allocations: 56.99 MB / 0.5905 GB, free: 49.32 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01078/0.7453, allocations: 5.284 MB / 0.5957 GB, free: 44.02 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003336/0.7487, allocations: 3.22 MB / 0.5988 GB, free: 40.79 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01706/0.7657, allocations: 12.32 MB / 0.6109 GB, free: 28.7 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.071e-05/0.7658, allocations: 64.5 kB / 0.6109 GB, free: 28.63 MB / 446.1 MB Notification: Performance of pre-optimization done (n=286): time 5.22e-06/0.7658, allocations: 4 kB / 0.6109 GB, free: 28.63 MB / 446.1 MB Notification: Performance of matching and sorting (n=336): time 0.1287/0.8944, allocations: 41.77 MB / 0.6517 GB, free: 3.168 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001496/0.8946, allocations: 213.9 kB / 0.6519 GB, free: 2.914 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008427/0.903, allocations: 5.497 MB / 0.6573 GB, free: 13.54 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006806/0.9037, allocations: 69.7 kB / 0.6574 GB, free: 13.47 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003724/0.9074, allocations: 4.596 MB / 0.6619 GB, free: 8.93 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001738/0.9091, allocations: 1.302 MB / 0.6631 GB, free: 7.617 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002745/0.9119, allocations: 1.79 MB / 0.6649 GB, free: 5.812 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001358/0.912, allocations: 301.1 kB / 0.6652 GB, free: 5.516 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007738/0.9198, allocations: 4.62 MB / 0.6697 GB, free: 0.8867 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01281/0.9326, allocations: 9.595 MB / 0.679 GB, free: 4.84 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02256/0.9551, allocations: 15.26 MB / 0.6939 GB, free: 3.113 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001639/0.9553, allocations: 51.94 kB / 0.694 GB, free: 3.062 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1148) (initialization): time 0.04657/1.002, allocations: 18.95 MB / 0.7125 GB, free: 60 kB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002189/1.002, allocations: 80.05 kB / 0.7126 GB, free: 15.98 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002912/1.002, allocations: 176.4 kB / 0.7127 GB, free: 15.8 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02204/1.024, allocations: 5.777 MB / 0.7184 GB, free: 10.02 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007415/1.032, allocations: 2.051 MB / 0.7204 GB, free: 7.965 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2371/1.269, allocations: 25.43 MB / 0.7452 GB, free: 183.4 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007466/1.276, allocations: 0.5492 MB / 0.7458 GB, free: 183.4 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001711/1.278, allocations: 0.506 MB / 0.7463 GB, free: 183.4 MB / 0.545 GB 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.005366/1.283, allocations: 3.079 MB / 0.7493 GB, free: 183.3 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001086/1.285, allocations: 0.5285 MB / 0.7498 GB, free: 183.3 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02709/1.312, allocations: 12.57 MB / 0.7621 GB, free: 179.3 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.233e-05/1.312, allocations: 57.03 kB / 0.7621 GB, free: 179.3 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.569e-05/1.312, allocations: 10.69 kB / 0.7621 GB, free: 179.3 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.031e-05/1.312, allocations: 11.58 kB / 0.7621 GB, free: 179.3 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04252/1.354, allocations: 24.14 MB / 0.7857 GB, free: 166.4 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.095e-05/1.354, allocations: 4 kB / 0.7857 GB, free: 166.4 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002746/1.357, allocations: 0.5735 MB / 0.7863 GB, free: 165.8 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01593/1.373, allocations: 4.803 MB / 0.791 GB, free: 161.1 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005004/1.374, allocations: 59.98 kB / 0.791 GB, free: 161 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02101/1.395, allocations: 20.71 MB / 0.8112 GB, free: 140.2 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.721e-06/1.395, allocations: 12.48 kB / 0.8112 GB, free: 140.2 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0293/1.424, allocations: 16.99 MB / 0.8278 GB, free: 123.4 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001251/1.425, allocations: 488.3 kB / 0.8283 GB, free: 123.1 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009235/1.426, allocations: 55.98 kB / 0.8284 GB, free: 123 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002701/1.429, allocations: 255.4 kB / 0.8286 GB, free: 122.8 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006449/1.429, allocations: 205.4 kB / 0.8288 GB, free: 122.6 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000249/1.43, allocations: 87.98 kB / 0.8289 GB, free: 122.5 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004063/1.434, allocations: 3.416 MB / 0.8322 GB, free: 119.1 MB / 0.545 GB Notification: Performance of sort global known variables: time 9e-08/1.434, allocations: 0 / 0.8322 GB, free: 119.1 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.006635/1.44, allocations: 1.684 MB / 0.8339 GB, free: 117.4 MB / 0.545 GB 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.02894/1.469, allocations: 17.66 MB / 0.8511 GB, free: 99.64 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01269/1.482, allocations: 10.18 MB / 0.861 GB, free: 89.52 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 8.677e-06/1.482, allocations: 8 kB / 0.8611 GB, free: 89.52 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004454/1.486, allocations: 3.702 MB / 0.8647 GB, free: 85.8 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003562/1.49, allocations: 0.6547 MB / 0.8653 GB, free: 85.18 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3234/1.813, allocations: 86.19 MB / 0.9495 GB, free: 203 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005404/1.819, allocations: 4.618 MB / 0.954 GB, free: 202.1 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.005648/1.825, allocations: 2.982 MB / 0.9569 GB, free: 202 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003095/1.828, allocations: 2.914 MB / 0.9597 GB, free: 201.7 MB / 0.5606 GB Notification: Performance of SimCode: time 1.062e-06/1.828, allocations: 0 / 0.9597 GB, free: 201.7 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1691/1.997, allocations: 130.1 MB / 1.087 GB, free: 83.96 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 41.71/43.71, allocations: 4.062 kB / 1.087 GB, free: 83.96 MB / 0.5606 GB " [Timeout remaining time 616] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2.fmu > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar2/Fourbar2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 47.05383721506223]