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.001216/0.001216, allocations: 70.73 kB / 21.24 MB, free: 0.5391 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.001303/0.001303, allocations: 158.7 kB / 24.49 MB, free: 3.715 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.416/1.416, allocations: 173.4 MB / 201.1 MB, free: 12.69 MB / 190.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: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001596/0.001596, allocations: 51.23 kB / 319.4 MB, free: 3.285 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0905/0.09209, allocations: 52.15 MB / 371.6 MB, free: 7.363 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.01612/0.1082, allocations: 13.07 MB / 384.6 MB, free: 10.23 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009928/0.1181, allocations: 4.628 MB / 389.3 MB, free: 5.59 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001949/0.1201, allocations: 111.4 kB / 389.4 MB, free: 5.48 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006188/0.1263, allocations: 3.099 MB / 392.5 MB, free: 2.371 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00705/0.1333, allocations: 2.646 MB / 395.1 MB, free: 15.71 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002326/0.1357, allocations: 0.9828 MB / 396.1 MB, free: 14.73 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01038/0.146, allocations: 6.982 MB / 403.1 MB, free: 7.734 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004851/0.1509, allocations: 3.571 MB / 406.7 MB, free: 4.094 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003863/0.1547, allocations: 2.266 MB / 408.9 MB, free: 1.82 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005379/0.1601, allocations: 3.36 MB / 412.3 MB, free: 14.45 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001299/0.1614, allocations: 484 kB / 412.8 MB, free: 13.98 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003049/0.1645, allocations: 1.4 MB / 414.2 MB, free: 12.57 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003282/0.1678, allocations: 2.945 MB / 417.1 MB, free: 9.621 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003821/0.1716, allocations: 2.407 MB / 419.5 MB, free: 7.199 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01347/0.185, allocations: 10.54 MB / 430 MB, free: 12.62 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.123e-06/0.1851, allocations: 0 / 430 MB, free: 12.62 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.1851, allocations: 0 / 430 MB, free: 12.62 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003158/0.1854, allocations: 0 / 430 MB, free: 12.62 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.01762/0.203, allocations: 7.388 MB / 437.4 MB, free: 5.156 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.204e-05/0.203, allocations: 8.922 kB / 437.4 MB, free: 5.148 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01689/0.2199, allocations: 4.084 MB / 441.5 MB, free: 1.055 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009789/0.2297, allocations: 4.118 MB / 445.6 MB, free: 12.88 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002767/0.23, allocations: 320.4 kB / 446 MB, free: 12.57 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001112/0.2311, allocations: 431.6 kB / 446.4 MB, free: 12.14 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02779/0.2589, allocations: 15.81 MB / 462.2 MB, free: 11.39 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001684/0.2591, allocations: 63.47 kB / 462.3 MB, free: 11.32 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007208/0.2598, allocations: 207.8 kB / 462.5 MB, free: 11.12 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005228/0.265, allocations: 3.216 MB / 465.7 MB, free: 7.898 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2109/0.4759, allocations: 14.1 MB / 479.8 MB, free: 79.9 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05626/0.5322, allocations: 53.59 MB / 0.5209 GB, free: 36.91 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01161/0.5438, allocations: 5.531 MB / 0.5263 GB, free: 31.38 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003564/0.5474, allocations: 3.345 MB / 0.5295 GB, free: 28.02 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01664/0.564, allocations: 12.05 MB / 0.5413 GB, free: 16.18 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.358e-05/0.5641, allocations: 64.5 kB / 0.5413 GB, free: 16.11 MB / 430.1 MB Notification: Performance of pre-optimization done (n=289): time 5.501e-06/0.5641, allocations: 0 / 0.5413 GB, free: 16.11 MB / 430.1 MB Notification: Performance of matching and sorting (n=339): time 0.149/0.713, allocations: 43.38 MB / 0.5837 GB, free: 5.141 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001463/0.7132, allocations: 217.9 kB / 0.5839 GB, free: 4.883 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007198/0.7204, allocations: 5.21 MB / 0.589 GB, free: 15.73 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007133/0.7211, allocations: 75 kB / 0.5891 GB, free: 15.65 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003358/0.7245, allocations: 4.561 MB / 0.5935 GB, free: 11.05 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001631/0.7261, allocations: 1.314 MB / 0.5948 GB, free: 9.723 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002775/0.7289, allocations: 1.857 MB / 0.5966 GB, free: 7.852 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001287/0.729, allocations: 309.1 kB / 0.5969 GB, free: 7.547 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00717/0.7362, allocations: 4.796 MB / 0.6016 GB, free: 2.742 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01121/0.7474, allocations: 9.84 MB / 0.6112 GB, free: 6.441 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02054/0.7679, allocations: 15.55 MB / 0.6264 GB, free: 4.418 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001622/0.7681, allocations: 48 kB / 0.6265 GB, free: 4.371 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1185) (initialization): time 0.049/0.8171, allocations: 19.5 MB / 0.6455 GB, free: 0.8281 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001448/0.8172, allocations: 80 kB / 0.6456 GB, free: 0.75 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002204/0.8174, allocations: 172 kB / 0.6457 GB, free: 0.582 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02528/0.8427, allocations: 5.948 MB / 0.6515 GB, free: 10.62 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007752/0.8505, allocations: 2.109 MB / 0.6536 GB, free: 8.512 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.219/1.069, allocations: 25.67 MB / 0.6787 GB, free: 168.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00679/1.076, allocations: 0.55 MB / 0.6792 GB, free: 168.1 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008064/1.077, allocations: 0.5107 MB / 0.6797 GB, free: 168 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 (1094): * Single equations (assignments): 1086 * 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.003819/1.081, allocations: 3.1 MB / 0.6827 GB, free: 166.9 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007965/1.082, allocations: 488.2 kB / 0.6832 GB, free: 166.9 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02945/1.111, allocations: 12.87 MB / 0.6958 GB, free: 162.9 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.777e-05/1.111, allocations: 50.25 kB / 0.6958 GB, free: 162.9 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.583e-05/1.111, allocations: 11.5 kB / 0.6958 GB, free: 162.9 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.438e-05/1.111, allocations: 14.77 kB / 0.6958 GB, free: 162.9 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04329/1.155, allocations: 22.19 MB / 0.7175 GB, free: 143.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.889e-05/1.155, allocations: 15.92 kB / 0.7175 GB, free: 143.4 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003039/1.158, allocations: 0.5702 MB / 0.7181 GB, free: 142.8 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01928/1.177, allocations: 4.971 MB / 0.7229 GB, free: 137.9 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006204/1.177, allocations: 55.91 kB / 0.723 GB, free: 137.8 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02201/1.2, allocations: 20.91 MB / 0.7434 GB, free: 116.8 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.029e-06/1.2, allocations: 7.938 kB / 0.7434 GB, free: 116.8 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03276/1.232, allocations: 17.39 MB / 0.7604 GB, free: 99.55 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001248/1.234, allocations: 442.8 kB / 0.7608 GB, free: 99.38 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001002/1.235, allocations: 59.66 kB / 0.7609 GB, free: 99.33 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002953/1.237, allocations: 263.2 kB / 0.7611 GB, free: 99.07 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006805/1.238, allocations: 201.5 kB / 0.7613 GB, free: 98.88 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002696/1.238, allocations: 87.98 kB / 0.7614 GB, free: 98.79 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.003739/1.242, allocations: 3.002 MB / 0.7643 GB, free: 95.79 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.01e-07/1.242, allocations: 3.594 kB / 0.7643 GB, free: 95.79 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.006769/1.249, allocations: 1.752 MB / 0.766 GB, free: 94.05 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 (254): * Single equations (assignments): 246 * 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.0005184/1.249, allocations: 202.4 kB / 0.7662 GB, free: 93.86 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01223/1.262, allocations: 10.48 MB / 0.7765 GB, free: 83.43 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 8.045e-06/1.262, allocations: 4 kB / 0.7765 GB, free: 83.42 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004474/1.266, allocations: 3.789 MB / 0.7802 GB, free: 79.62 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003014/1.269, allocations: 0.5175 MB / 0.7807 GB, free: 79.12 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01908/1.288, allocations: 16.3 MB / 0.7966 GB, free: 62.74 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003938/1.292, allocations: 4.115 MB / 0.8006 GB, free: 58.59 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.005475/1.298, allocations: 2.916 MB / 0.8035 GB, free: 55.66 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001193/1.299, allocations: 336.4 kB / 0.8038 GB, free: 55.34 MB / 0.5294 GB Notification: Performance of SimCode: time 7.32e-07/1.299, allocations: 0 / 0.8038 GB, free: 55.34 MB / 0.5294 GB Notification: Performance of Templates: time 0.2947/1.594, allocations: 72.08 MB / 0.8742 GB, free: 182.3 MB / 0.545 GB " [Timeout remaining time 658] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.makefile [Timeout 660] (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 & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2 -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) [Timeout 480] 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: 7.714750231010839]