Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001194/0.001194, allocations: 108.6 kB / 18.45 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00137/0.00137, allocations: 204 kB / 19.4 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.392/1.392, allocations: 227.4 MB / 247.6 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001164/0.001164, allocations: 55.91 kB / 359.4 MB, free: 12.9 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2653/0.2664, allocations: 50.54 MB / 409.9 MB, free: 1.566 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.0145/0.281, allocations: 14.97 MB / 424.9 MB, free: 2.527 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009785/0.2908, allocations: 4.83 MB / 429.7 MB, free: 13.68 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00232/0.2932, allocations: 91.75 kB / 429.8 MB, free: 13.59 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006015/0.2992, allocations: 3.153 MB / 433 MB, free: 10.43 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00619/0.3055, allocations: 2.51 MB / 435.5 MB, free: 7.91 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002296/0.3078, allocations: 0.9944 MB / 436.5 MB, free: 6.914 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.009091/0.3169, allocations: 7.033 MB / 443.5 MB, free: 15.86 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006051/0.323, allocations: 4.338 MB / 447.8 MB, free: 11.46 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004077/0.3271, allocations: 2.211 MB / 450.1 MB, free: 9.242 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004854/0.332, allocations: 3.228 MB / 453.3 MB, free: 6.004 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001667/0.3337, allocations: 484 kB / 453.8 MB, free: 5.531 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003662/0.3374, allocations: 1.494 MB / 455.2 MB, free: 4.035 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003766/0.3412, allocations: 2.86 MB / 458.1 MB, free: 1.168 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005179/0.3464, allocations: 3.215 MB / 461.3 MB, free: 13.93 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01214/0.3585, allocations: 10.36 MB / 471.7 MB, free: 3.539 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.151e-06/0.3586, allocations: 0 / 471.7 MB, free: 3.539 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.3586, allocations: 0 / 471.7 MB, free: 3.539 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003575/0.359, allocations: 0 / 471.7 MB, free: 3.539 MB / 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.01937/0.3783, allocations: 7.245 MB / 478.9 MB, free: 12.21 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.37e-05/0.3784, allocations: 8.031 kB / 478.9 MB, free: 12.2 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01712/0.3955, allocations: 3.939 MB / 482.9 MB, free: 8.25 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009786/0.4054, allocations: 4.106 MB / 487 MB, free: 4.082 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003436/0.4057, allocations: 320.4 kB / 487.3 MB, free: 3.766 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001985/0.4077, allocations: 435.5 kB / 487.7 MB, free: 3.34 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03129/0.439, allocations: 15.72 MB / 0.4916 GB, free: 2.691 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003792/0.4395, allocations: 51.53 kB / 0.4917 GB, free: 2.641 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002104/0.4416, allocations: 207.8 kB / 0.4919 GB, free: 2.438 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00542/0.447, allocations: 3.22 MB / 0.495 GB, free: 15.21 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02766/0.4747, allocations: 14.13 MB / 0.5088 GB, free: 1.062 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3169/0.7916, allocations: 57.49 MB / 0.565 GB, free: 84.23 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01268/0.8044, allocations: 6.565 MB / 0.5714 GB, free: 81.9 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004186/0.8086, allocations: 3.682 MB / 0.575 GB, free: 80.43 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02035/0.829, allocations: 14.63 MB / 0.5893 GB, free: 72.37 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.635e-05/0.8291, allocations: 63.47 kB / 0.5893 GB, free: 72.32 MB / 462.1 MB Notification: Performance of pre-optimization done (n=289): time 6.723e-06/0.8291, allocations: 1.375 kB / 0.5893 GB, free: 72.32 MB / 462.1 MB Notification: Performance of matching and sorting (n=339): time 0.1438/0.9729, allocations: 42.35 MB / 0.6307 GB, free: 30.33 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.743e-05/0.973, allocations: 210 kB / 0.6309 GB, free: 30.08 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006065/0.9791, allocations: 5.466 MB / 0.6362 GB, free: 24.63 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000809/0.9799, allocations: 81.06 kB / 0.6363 GB, free: 24.55 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00185/0.9818, allocations: 4.354 MB / 0.6405 GB, free: 20.2 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001263/0.983, allocations: 1.259 MB / 0.6418 GB, free: 18.95 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002304/0.9853, allocations: 1.852 MB / 0.6436 GB, free: 17.09 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.094e-05/0.9854, allocations: 305.1 kB / 0.6439 GB, free: 16.79 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005457/0.9909, allocations: 4.808 MB / 0.6486 GB, free: 11.97 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00764/0.9985, allocations: 9.803 MB / 0.6581 GB, free: 15.79 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02032/1.019, allocations: 15.58 MB / 0.6734 GB, free: 13.75 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001418/1.019, allocations: 48 kB / 0.6734 GB, free: 13.71 MB / 494.1 MB Notification: Performance of matching and sorting (n=1189) (initialization): time 0.04935/1.068, allocations: 19.56 MB / 0.6925 GB, free: 10.09 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001386/1.069, allocations: 82.81 kB / 0.6926 GB, free: 10.02 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002287/1.069, allocations: 176 kB / 0.6928 GB, free: 9.844 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02495/1.094, allocations: 5.941 MB / 0.6986 GB, free: 3.895 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007952/1.102, allocations: 2.106 MB / 0.7006 GB, free: 1.785 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03563/1.137, allocations: 26.15 MB / 0.7261 GB, free: 7.352 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007865/1.145, allocations: 0.5579 MB / 0.7267 GB, free: 6.793 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001976/1.147, allocations: 0.5039 MB / 0.7272 GB, free: 6.289 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 (1098): * Single equations (assignments): 1090 * 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.005841/1.153, allocations: 3.106 MB / 0.7302 GB, free: 3.172 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001125/1.154, allocations: 497.5 kB / 0.7307 GB, free: 2.68 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03349/1.188, allocations: 12.93 MB / 0.7433 GB, free: 5.672 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001243/1.188, allocations: 59.92 kB / 0.7434 GB, free: 5.613 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.723e-05/1.188, allocations: 12 kB / 0.7434 GB, free: 5.602 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.789e-05/1.188, allocations: 11.95 kB / 0.7434 GB, free: 5.59 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2692/1.457, allocations: 24.5 MB / 0.7673 GB, free: 192.2 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.289e-05/1.457, allocations: 3.969 kB / 0.7673 GB, free: 192.2 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003086/1.46, allocations: 0.5784 MB / 0.7679 GB, free: 192.2 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01991/1.48, allocations: 4.976 MB / 0.7728 GB, free: 191.4 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006565/1.481, allocations: 54.12 kB / 0.7728 GB, free: 191.4 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02308/1.504, allocations: 21.35 MB / 0.7937 GB, free: 173.5 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.994e-06/1.504, allocations: 14.94 kB / 0.7937 GB, free: 173.5 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03231/1.537, allocations: 17.45 MB / 0.8107 GB, free: 156.2 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001135/1.538, allocations: 0.5281 MB / 0.8112 GB, free: 155.9 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001266/1.539, allocations: 56 kB / 0.8113 GB, free: 155.8 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00339/1.542, allocations: 255.6 kB / 0.8115 GB, free: 155.6 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008545/1.543, allocations: 201.5 kB / 0.8117 GB, free: 155.4 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002968/1.544, allocations: 87.83 kB / 0.8118 GB, free: 155.3 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.00427/1.548, allocations: 3.398 MB / 0.8151 GB, free: 151.9 MB / 0.545 GB Notification: Performance of sort global known variables: time 3.7e-07/1.548, allocations: 0 / 0.8151 GB, free: 151.9 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.007235/1.555, allocations: 1.737 MB / 0.8168 GB, free: 150.2 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 (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.0008208/1.556, allocations: 206.2 kB / 0.817 GB, free: 150 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01311/1.569, allocations: 10.97 MB / 0.8277 GB, free: 139.1 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 8.175e-06/1.569, allocations: 0 / 0.8277 GB, free: 139.1 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.00501/1.574, allocations: 4.099 MB / 0.8317 GB, free: 135 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004181/1.578, allocations: 0.6154 MB / 0.8323 GB, free: 134.4 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02258/1.601, allocations: 16.62 MB / 0.8486 GB, free: 117.8 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006937/1.608, allocations: 4.599 MB / 0.8531 GB, free: 113.2 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00198/1.61, allocations: 411.3 kB / 0.8534 GB, free: 112.8 MB / 0.545 GB Notification: Performance of SimCode: time 1.473e-06/1.61, allocations: 0 / 0.8534 GB, free: 112.8 MB / 0.545 GB Notification: Performance of Templates: time 0.3708/1.981, allocations: 150.3 MB / 1 GB, free: 153.7 MB / 0.545 GB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches