Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.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.Fourbar1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001159/0.001159, allocations: 115.8 kB / 18.4 MB, free: 4.754 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001181/0.001181, allocations: 203.4 kB / 19.35 MB, free: 3.809 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.357/1.357, allocations: 227.4 MB / 247.5 MB, free: 10.38 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001306/0.001306, allocations: 54.38 kB / 308.4 MB, free: 15.89 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1174/0.1187, allocations: 50.54 MB / 358.9 MB, free: 13.33 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.2443/0.3631, allocations: 15.86 MB / 374.8 MB, free: 9.691 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01188/0.375, allocations: 5.133 MB / 379.9 MB, free: 9.113 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003902/0.3789, allocations: 113.2 kB / 380 MB, free: 9.09 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009839/0.3888, allocations: 4.427 MB / 384.4 MB, free: 7.734 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00908/0.3979, allocations: 2.484 MB / 386.9 MB, free: 6.816 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003172/0.4011, allocations: 1.159 MB / 388.1 MB, free: 6.371 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01302/0.4142, allocations: 8.1 MB / 396.2 MB, free: 2.773 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007351/0.4216, allocations: 5.313 MB / 401.5 MB, free: 15.72 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005841/0.4275, allocations: 2.461 MB / 404 MB, free: 13.84 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00583/0.4333, allocations: 3.353 MB / 407.3 MB, free: 10.48 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001559/0.4349, allocations: 0.5038 MB / 407.8 MB, free: 9.973 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003657/0.4386, allocations: 1.49 MB / 409.3 MB, free: 8.48 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003394/0.442, allocations: 2.93 MB / 412.2 MB, free: 5.543 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005058/0.4471, allocations: 3.329 MB / 415.6 MB, free: 2.195 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01234/0.4594, allocations: 10.29 MB / 425.8 MB, free: 7.867 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.154e-05/0.4595, allocations: 0 / 425.8 MB, free: 7.867 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.277e-06/0.4595, allocations: 7.938 kB / 425.9 MB, free: 7.859 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0003925/0.4599, allocations: 3.938 kB / 425.9 MB, free: 7.855 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2058 * Number of variables: 2058 Notification: Performance of Generate backend data structure: time 0.02154/0.4814, allocations: 7.626 MB / 433.5 MB, free: 148 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.839e-05/0.4815, allocations: 12.03 kB / 433.5 MB, free: 136 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01471/0.4962, allocations: 3.296 MB / 436.8 MB, free: 12.82 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0138/0.5101, allocations: 4.75 MB / 441.5 MB, free: 7.988 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003733/0.5105, allocations: 341.2 kB / 441.9 MB, free: 7.652 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002265/0.5128, allocations: 463.5 kB / 442.3 MB, free: 7.199 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02734/0.5401, allocations: 14.56 MB / 456.9 MB, free: 7.703 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002045/0.5404, allocations: 75.33 kB / 457 MB, free: 7.629 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005845/0.541, allocations: 207.8 kB / 457.2 MB, free: 7.426 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005036/0.546, allocations: 2.836 MB / 460 MB, free: 4.574 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02743/0.5735, allocations: 13.21 MB / 473.2 MB, free: 7.336 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07744/0.651, allocations: 58.25 MB / 0.519 GB, free: 11.54 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01772/0.6687, allocations: 7.721 MB / 0.5266 GB, free: 3.664 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.2225/0.8912, allocations: 5.043 MB / 0.5315 GB, free: 139.5 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02514/0.9164, allocations: 12.81 MB / 0.544 GB, free: 134.7 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.576e-05/0.9165, allocations: 69.61 kB / 0.5441 GB, free: 134.7 MB / 446.1 MB Notification: Performance of pre-optimization done (n=326): time 5.701e-06/0.9165, allocations: 0 / 0.5441 GB, free: 134.7 MB / 446.1 MB Notification: Performance of matching and sorting (n=572): time 1.909/2.826, allocations: 411.6 MB / 0.946 GB, free: 87.47 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001259/2.826, allocations: 277.6 kB / 0.9463 GB, free: 87.15 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006548/2.833, allocations: 5.436 MB / 0.9516 GB, free: 81.9 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001549/2.834, allocations: 113.7 kB / 0.9517 GB, free: 81.79 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001713/2.836, allocations: 3.936 MB / 0.9555 GB, free: 78.54 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002504/2.838, allocations: 2.015 MB / 0.9575 GB, free: 76.54 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003874/2.842, allocations: 2.175 MB / 0.9596 GB, free: 74.35 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.582e-05/2.842, allocations: 309 kB / 0.9599 GB, free: 74.05 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01251/2.855, allocations: 11.06 MB / 0.9707 GB, free: 62.98 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01509/2.87, allocations: 15.24 MB / 0.9856 GB, free: 45.9 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02884/2.899, allocations: 27.45 MB / 1.012 GB, free: 16.6 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001152/2.899, allocations: 47.94 kB / 1.012 GB, free: 16.55 MB / 462.1 MB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.5204/3.419, allocations: 141.1 MB / 1.15 GB, free: 40.99 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.534e-05/3.419, allocations: 64 kB / 1.15 GB, free: 40.93 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001397/3.42, allocations: 143.5 kB / 1.15 GB, free: 40.79 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.07395/3.494, allocations: 34.71 MB / 1.184 GB, free: 6.094 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006665/3.5, allocations: 1.567 MB / 1.186 GB, free: 4.523 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.7499/4.25, allocations: 203.6 MB / 1.385 GB, free: 122.9 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01468/4.265, allocations: 1.725 MB / 1.386 GB, free: 122.8 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002962/4.268, allocations: 0.5371 MB / 1.387 GB, free: 122.7 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 632 * Number of states: 0 () * Number of discrete variables: 54 (b0.color[3],b0.color[2],b0.color[1],j5.cylinderColor[3],j5.cylinderColor[2],j5.cylinderColor[1],j4.cylinderColor[3],j4.cylinderColor[2],j4.cylinderColor[1],j3.cylinderColor[3],j3.cylinderColor[2],j3.cylinderColor[1],rev1.cylinderColor[3],rev1.cylinderColor[2],rev1.cylinderColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[1],b3.color[3],b3.color[2],b3.color[1],b3.body.sphereColor[3],b3.body.sphereColor[2],b3.body.sphereColor[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 (840): * Single equations (assignments): 833 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(20,164,40.5%), (16,102,51.6%), (2,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(12,76)} Notification: Performance of prepare postOptimizeDAE: time 0.008485/4.276, allocations: 3.093 MB / 1.39 GB, free: 121.4 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002135/4.279, allocations: 0.5724 MB / 1.391 GB, free: 121.4 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2914/4.57, allocations: 136.8 MB / 1.524 GB, free: 15.07 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001887/4.57, allocations: 60 kB / 1.524 GB, free: 15.01 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0003156/4.571, allocations: 59.06 kB / 1.524 GB, free: 14.96 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001957/4.571, allocations: 31.89 kB / 1.524 GB, free: 14.93 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.7884/5.359, allocations: 206.1 MB / 1.725 GB, free: 127.5 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.147e-05/5.359, allocations: 7.312 kB / 1.725 GB, free: 127.5 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001437/5.361, allocations: 327.8 kB / 1.726 GB, free: 127.5 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.07892/5.44, allocations: 33.43 MB / 1.758 GB, free: 123.7 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002912/5.443, allocations: 105.3 kB / 1.759 GB, free: 123.6 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4384/5.881, allocations: 186.2 MB / 1.94 GB, free: 109.7 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.036e-05/5.881, allocations: 14.06 kB / 1.94 GB, free: 109.7 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5519/6.433, allocations: 152.6 MB / 2.089 GB, free: 121.1 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001795/6.435, allocations: 0.6288 MB / 2.09 GB, free: 121 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002919/6.438, allocations: 100.6 kB / 2.09 GB, free: 120.9 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008878/6.447, allocations: 1.491 MB / 2.092 GB, free: 120.9 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003642/6.45, allocations: 496.4 kB / 2.092 GB, free: 120.8 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001012/6.451, allocations: 143.3 kB / 2.092 GB, free: 120.7 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.007624/6.459, allocations: 3.464 MB / 2.096 GB, free: 119.6 MB / 478.1 MB Notification: Performance of sort global known variables: time 6.02e-07/6.459, allocations: 0 / 2.096 GB, free: 119.6 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0194/6.478, allocations: 3.843 MB / 2.099 GB, free: 119.3 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * 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 (165): * Single equations (assignments): 158 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(20,157,40.5%), (16,99,51.6%), (2,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(12,86)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002131/6.481, allocations: 251 kB / 2.1 GB, free: 119.1 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.07846/6.559, allocations: 33.83 MB / 2.133 GB, free: 90.31 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.388e-05/6.559, allocations: 2.469 kB / 2.133 GB, free: 90.31 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.03736/6.597, allocations: 20.56 MB / 2.153 GB, free: 69.78 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009039/6.606, allocations: 0.7785 MB / 2.153 GB, free: 69.02 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03904/6.645, allocations: 27.09 MB / 2.18 GB, free: 41.95 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008001/6.653, allocations: 5.093 MB / 2.185 GB, free: 36.84 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.004523/6.657, allocations: 2.057 MB / 2.187 GB, free: 34.77 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001023/6.658, allocations: 303.4 kB / 2.187 GB, free: 34.48 MB / 478.1 MB Notification: Performance of SimCode: time 1.092e-06/6.658, allocations: 0 / 2.187 GB, free: 34.48 MB / 478.1 MB Notification: Performance of Templates: time 0.7214/7.38, allocations: 272.7 MB / 2.453 GB, free: 112.7 MB / 494.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1 -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar1/Fourbar1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches