Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001526/0.001526, allocations: 112.2 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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00158/0.00158, allocations: 181.3 kB / 23.72 MB, free: 4.699 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.373/1.373, allocations: 225.6 MB / 252.5 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001527/0.001527, allocations: 43.92 kB / 370.4 MB, free: 9.832 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2483/0.2498, allocations: 52.19 MB / 422.6 MB, free: 14.58 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.0174/0.2672, allocations: 15.12 MB / 437.7 MB, free: 15.39 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01048/0.2777, allocations: 4.873 MB / 442.6 MB, free: 10.51 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002264/0.2799, allocations: 107.5 kB / 442.7 MB, free: 10.4 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006464/0.2864, allocations: 3.223 MB / 446 MB, free: 7.168 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006519/0.2929, allocations: 2.642 MB / 448.6 MB, free: 4.516 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002369/0.2953, allocations: 0.9866 MB / 449.6 MB, free: 3.527 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01144/0.3067, allocations: 6.987 MB / 456.6 MB, free: 12.53 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006235/0.313, allocations: 3.59 MB / 460.2 MB, free: 8.871 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004769/0.3177, allocations: 2.262 MB / 462.4 MB, free: 6.602 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005943/0.3237, allocations: 3.528 MB / 465.9 MB, free: 3.062 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001796/0.3255, allocations: 484 kB / 466.4 MB, free: 2.59 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004228/0.3297, allocations: 1.541 MB / 468 MB, free: 1.047 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004723/0.3344, allocations: 2.964 MB / 470.9 MB, free: 14.07 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007634/0.3421, allocations: 3.309 MB / 474.2 MB, free: 10.75 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01591/0.358, allocations: 10.63 MB / 484.9 MB, free: 76 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.523e-06/0.358, allocations: 0 / 484.9 MB, free: 76 kB / 382.1 MB Notification: Performance of FrontEnd: time 2.155e-06/0.358, allocations: 0 / 484.9 MB, free: 76 kB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004124/0.3584, allocations: 4 kB / 484.9 MB, free: 72 kB / 382.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.02082/0.3792, allocations: 7.583 MB / 492.4 MB, free: 8.41 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.412e-05/0.3793, allocations: 12.03 kB / 492.5 MB, free: 8.398 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003676/0.3829, allocations: 1.144 MB / 493.6 MB, free: 7.238 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04173/0.4247, allocations: 7.547 MB / 0.4894 GB, free: 15.68 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01232/0.437, allocations: 4.778 MB / 0.4941 GB, free: 10.84 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004542/0.4374, allocations: 328.2 kB / 0.4944 GB, free: 10.52 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001992/0.4394, allocations: 431.7 kB / 0.4948 GB, free: 10.1 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03168/0.4711, allocations: 15.61 MB / 0.51 GB, free: 9.555 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002767/0.4714, allocations: 59.47 kB / 0.5101 GB, free: 9.496 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001692/0.4731, allocations: 211.8 kB / 0.5103 GB, free: 9.289 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005731/0.4788, allocations: 3.216 MB / 0.5134 GB, free: 6.066 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02966/0.5085, allocations: 13.9 MB / 0.527 GB, free: 8.148 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2755/0.7839, allocations: 57 MB / 0.5827 GB, free: 61.43 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01102/0.795, allocations: 5.282 MB / 0.5878 GB, free: 57.57 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003519/0.7985, allocations: 3.226 MB / 0.591 GB, free: 54.33 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01759/0.8161, allocations: 12.32 MB / 0.603 GB, free: 42.25 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.102e-05/0.8161, allocations: 68.55 kB / 0.6031 GB, free: 42.18 MB / 446.1 MB Notification: Performance of pre-optimization done (n=286): time 5.671e-06/0.8161, allocations: 0 / 0.6031 GB, free: 42.18 MB / 446.1 MB Notification: Performance of matching and sorting (n=336): time 0.1278/0.9439, allocations: 41.77 MB / 0.6439 GB, free: 0.7578 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001053/0.944, allocations: 210 kB / 0.6441 GB, free: 0.5078 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0105/0.9545, allocations: 5.507 MB / 0.6495 GB, free: 11.12 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008016/0.9553, allocations: 73.7 kB / 0.6495 GB, free: 11.05 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004233/0.9595, allocations: 4.6 MB / 0.654 GB, free: 6.645 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002029/0.9615, allocations: 1.302 MB / 0.6553 GB, free: 5.332 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004569/0.9661, allocations: 1.786 MB / 0.657 GB, free: 3.531 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001373/0.9662, allocations: 313.1 kB / 0.6573 GB, free: 3.223 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007755/0.974, allocations: 4.616 MB / 0.6618 GB, free: 14.6 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01264/0.9866, allocations: 9.587 MB / 0.6712 GB, free: 2.559 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02283/1.009, allocations: 15.26 MB / 0.6861 GB, free: 0.8281 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001856/1.01, allocations: 52 kB / 0.6861 GB, free: 0.7773 MB / 494.1 MB Notification: Performance of matching and sorting (n=1148) (initialization): time 0.04802/1.058, allocations: 18.96 MB / 0.7047 GB, free: 13.77 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002219/1.058, allocations: 76 kB / 0.7047 GB, free: 13.7 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000322/1.058, allocations: 176.5 kB / 0.7049 GB, free: 13.52 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02202/1.08, allocations: 5.781 MB / 0.7105 GB, free: 7.73 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007814/1.088, allocations: 2.039 MB / 0.7125 GB, free: 5.688 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2515/1.34, allocations: 25.44 MB / 0.7374 GB, free: 175.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0073/1.347, allocations: 0.5418 MB / 0.7379 GB, free: 175.2 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001501/1.348, allocations: 0.5043 MB / 0.7384 GB, free: 175.2 MB / 0.5294 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.005177/1.354, allocations: 3.101 MB / 0.7414 GB, free: 174.4 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001088/1.355, allocations: 0.5213 MB / 0.7419 GB, free: 174.4 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0261/1.381, allocations: 12.58 MB / 0.7542 GB, free: 170.5 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.122e-05/1.381, allocations: 55.17 kB / 0.7543 GB, free: 170.5 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.819e-05/1.381, allocations: 7.844 kB / 0.7543 GB, free: 170.5 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.247e-05/1.381, allocations: 13.88 kB / 0.7543 GB, free: 170.5 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04398/1.425, allocations: 24.13 MB / 0.7779 GB, free: 154.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.575e-05/1.425, allocations: 4 kB / 0.7779 GB, free: 154.7 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002857/1.428, allocations: 0.5694 MB / 0.7784 GB, free: 154.1 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01615/1.444, allocations: 4.805 MB / 0.7831 GB, free: 149.4 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007408/1.445, allocations: 63.77 kB / 0.7832 GB, free: 149.3 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02125/1.466, allocations: 20.71 MB / 0.8034 GB, free: 128.5 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.861e-06/1.466, allocations: 7 kB / 0.8034 GB, free: 128.5 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02891/1.495, allocations: 16.99 MB / 0.82 GB, free: 111.7 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001313/1.496, allocations: 486.5 kB / 0.8205 GB, free: 111.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001148/1.497, allocations: 55.98 kB / 0.8205 GB, free: 111.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002866/1.5, allocations: 255.2 kB / 0.8208 GB, free: 111 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006988/1.501, allocations: 201.4 kB / 0.821 GB, free: 110.8 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002605/1.501, allocations: 87.98 kB / 0.821 GB, free: 110.7 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.00439/1.506, allocations: 3.428 MB / 0.8244 GB, free: 107.3 MB / 0.5294 GB Notification: Performance of sort global known variables: time 9e-08/1.506, allocations: 0 / 0.8244 GB, free: 107.3 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.007647/1.513, allocations: 1.699 MB / 0.8261 GB, free: 105.6 MB / 0.5294 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.02953/1.543, allocations: 17.67 MB / 0.8433 GB, free: 87.77 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01542/1.558, allocations: 10.18 MB / 0.8533 GB, free: 77.65 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.435e-05/1.558, allocations: 0 / 0.8533 GB, free: 77.65 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.005507/1.564, allocations: 3.713 MB / 0.8569 GB, free: 73.93 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005103/1.569, allocations: 0.647 MB / 0.8575 GB, free: 73.3 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3869/1.956, allocations: 86.22 MB / 0.9417 GB, free: 187.5 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004804/1.96, allocations: 4.617 MB / 0.9462 GB, free: 186.7 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.005963/1.966, allocations: 2.976 MB / 0.9491 GB, free: 186.6 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003997/1.97, allocations: 2.922 MB / 0.952 GB, free: 185.6 MB / 0.545 GB Notification: Performance of SimCode: time 1.302e-06/1.97, allocations: 0 / 0.952 GB, free: 185.6 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.183/2.153, allocations: 130.2 MB / 1.079 GB, free: 64.4 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 40.67/42.82, allocations: 3.938 kB / 1.079 GB, free: 64.4 MB / 0.545 GB " [Timeout remaining time 617] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar2/Fourbar2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 46.086075210012496]