Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.Fourbar1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_3.2.3_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_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00121/0.00121, allocations: 114.5 kB / 17.73 MB, free: 5.301 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001026/0.001026, allocations: 187 kB / 18.66 MB, free: 4.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.532/1.532, allocations: 205.1 MB / 224.5 MB, free: 12.21 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001226/0.001226, allocations: 51.94 kB / 328.5 MB, free: 3.293 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1149/0.1162, allocations: 46.62 MB / 375.1 MB, free: 4.559 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.2775/0.3937, allocations: 16.02 MB / 391.2 MB, free: 3.891 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01515/0.4089, allocations: 5.145 MB / 396.3 MB, free: 480 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006151/0.4151, allocations: 112.9 kB / 396.4 MB, free: 456 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01012/0.4253, allocations: 4.447 MB / 400.9 MB, free: 14.36 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01008/0.4354, allocations: 2.543 MB / 403.4 MB, free: 13.13 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003706/0.4392, allocations: 1.159 MB / 404.6 MB, free: 12.41 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01356/0.4527, allocations: 7.498 MB / 412.1 MB, free: 8.348 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01021/0.463, allocations: 5.336 MB / 417.4 MB, free: 5.18 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007317/0.4703, allocations: 2.492 MB / 419.9 MB, free: 2.68 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00921/0.4796, allocations: 3.392 MB / 423.3 MB, free: 15.28 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003076/0.4827, allocations: 0.5039 MB / 423.8 MB, free: 14.77 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006148/0.4889, allocations: 1.494 MB / 425.3 MB, free: 13.28 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004254/0.4932, allocations: 2.996 MB / 428.3 MB, free: 10.27 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004938/0.4982, allocations: 3.36 MB / 431.6 MB, free: 6.895 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01245/0.5106, allocations: 10.38 MB / 442 MB, free: 12.48 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.963e-06/0.5107, allocations: 0 / 442 MB, free: 12.48 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.5107, allocations: 0 / 442 MB, free: 12.48 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003253/0.511, allocations: 0 / 442 MB, free: 12.48 MB / 366.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.02097/0.532, allocations: 7.629 MB / 449.6 MB, free: 4.77 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.909e-05/0.5321, allocations: 12.03 kB / 449.7 MB, free: 4.758 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.015/0.5471, allocations: 3.182 MB / 452.8 MB, free: 1.562 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01119/0.5583, allocations: 4.993 MB / 457.8 MB, free: 12.49 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002942/0.5586, allocations: 337.2 kB / 458.2 MB, free: 12.16 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001601/0.5603, allocations: 471.6 kB / 458.6 MB, free: 11.7 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0301/0.5904, allocations: 14.56 MB / 473.2 MB, free: 12.2 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003716/0.5908, allocations: 75.36 kB / 473.3 MB, free: 12.13 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001938/0.5927, allocations: 211.8 kB / 473.5 MB, free: 11.92 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00625/0.599, allocations: 2.832 MB / 476.3 MB, free: 9.086 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0299/0.6289, allocations: 13.21 MB / 489.5 MB, free: 11.84 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08722/0.7162, allocations: 58.28 MB / 0.535 GB, free: 16 kB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01935/0.7356, allocations: 7.73 MB / 0.5425 GB, free: 8.129 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007632/0.7433, allocations: 5.055 MB / 0.5474 GB, free: 3.059 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2908/1.034, allocations: 12.79 MB / 0.5599 GB, free: 146.8 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.537e-05/1.034, allocations: 72.8 kB / 0.56 GB, free: 146.8 MB / 478.1 MB Notification: Performance of pre-optimization done (n=326): time 6.092e-06/1.034, allocations: 0.625 kB / 0.56 GB, free: 146.8 MB / 478.1 MB Notification: Performance of matching and sorting (n=572): time 2.163/3.197, allocations: 411.5 MB / 0.9619 GB, free: 132.9 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001061/3.197, allocations: 270.8 kB / 0.9621 GB, free: 132.7 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006884/3.204, allocations: 5.493 MB / 0.9675 GB, free: 129.2 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.002445/3.206, allocations: 109.7 kB / 0.9676 GB, free: 129.1 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002743/3.209, allocations: 3.954 MB / 0.9715 GB, free: 125.8 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002852/3.212, allocations: 2.009 MB / 0.9734 GB, free: 123.8 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004017/3.216, allocations: 2.178 MB / 0.9755 GB, free: 121.6 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 5.928e-05/3.216, allocations: 308.5 kB / 0.9758 GB, free: 121.3 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01243/3.228, allocations: 11.06 MB / 0.9866 GB, free: 110.3 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01455/3.243, allocations: 15.23 MB / 1.002 GB, free: 93.19 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.03075/3.274, allocations: 27.46 MB / 1.028 GB, free: 63.9 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001268/3.274, allocations: 40 kB / 1.028 GB, free: 63.86 MB / 494.1 MB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.6446/3.919, allocations: 141.1 MB / 1.166 GB, free: 101.8 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001227/3.919, allocations: 64 kB / 1.166 GB, free: 101.7 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002406/3.919, allocations: 140 kB / 1.166 GB, free: 101.6 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.07757/3.997, allocations: 34.69 MB / 1.2 GB, free: 67.8 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005816/4.002, allocations: 1.566 MB / 1.202 GB, free: 66.37 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.5711/4.574, allocations: 203.6 MB / 1.401 GB, free: 65.48 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0145/4.588, allocations: 1.716 MB / 1.402 GB, free: 63.77 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00283/4.591, allocations: 0.5457 MB / 1.403 GB, free: 63.23 MB / 0.4981 GB 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.006987/4.598, allocations: 3.091 MB / 1.406 GB, free: 60.27 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001953/4.6, allocations: 0.5749 MB / 1.406 GB, free: 60 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.6312/5.231, allocations: 136.7 MB / 1.54 GB, free: 107.7 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.067e-05/5.231, allocations: 60 kB / 1.54 GB, free: 107.7 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001658/5.232, allocations: 59.12 kB / 1.54 GB, free: 107.6 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001288/5.232, allocations: 31.89 kB / 1.54 GB, free: 107.6 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.6199/5.852, allocations: 205.9 MB / 1.741 GB, free: 120.2 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.247e-05/5.852, allocations: 9.016 kB / 1.741 GB, free: 120.2 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001473/5.853, allocations: 333.4 kB / 1.741 GB, free: 119.9 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.07081/5.924, allocations: 33.42 MB / 1.774 GB, free: 91.46 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001594/5.926, allocations: 98.03 kB / 1.774 GB, free: 91.36 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4602/6.386, allocations: 186.2 MB / 1.956 GB, free: 94.28 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.156e-06/6.386, allocations: 10.77 kB / 1.956 GB, free: 94.27 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.6269/7.013, allocations: 152.6 MB / 2.105 GB, free: 127.6 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007005/7.02, allocations: 3.011 MB / 2.108 GB, free: 126.2 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002773/7.023, allocations: 93.81 kB / 2.108 GB, free: 126.2 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009963/7.033, allocations: 1.484 MB / 2.109 GB, free: 124.8 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004678/7.037, allocations: 0.4935 MB / 2.11 GB, free: 124.3 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001605/7.039, allocations: 146.8 kB / 2.11 GB, free: 124.2 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.005514/7.045, allocations: 3.503 MB / 2.113 GB, free: 121.7 MB / 0.5137 GB Notification: Performance of sort global known variables: time 5.81e-07/7.045, allocations: 0 / 2.113 GB, free: 121.7 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.01671/7.061, allocations: 3.854 MB / 2.117 GB, free: 118.2 MB / 0.5137 GB 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.001862/7.063, allocations: 249.9 kB / 2.117 GB, free: 118 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0543/7.118, allocations: 33.81 MB / 2.15 GB, free: 84.43 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.338e-05/7.118, allocations: 2.297 kB / 2.15 GB, free: 84.43 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.03927/7.157, allocations: 20.56 MB / 2.171 GB, free: 63.92 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007395/7.164, allocations: 0.7801 MB / 2.171 GB, free: 63.16 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03883/7.203, allocations: 27.13 MB / 2.198 GB, free: 36.02 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01115/7.214, allocations: 5.114 MB / 2.203 GB, free: 30.9 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.007397/7.222, allocations: 2.062 MB / 2.205 GB, free: 28.88 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001235/7.223, allocations: 311.4 kB / 2.205 GB, free: 28.57 MB / 0.5137 GB Notification: Performance of SimCode: time 1.302e-06/7.223, allocations: 0 / 2.205 GB, free: 28.57 MB / 0.5137 GB Notification: Performance of Templates: time 0.8701/8.093, allocations: 276.7 MB / 2.475 GB, free: 116.5 MB / 0.5137 GB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar1/Fourbar1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches