Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.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 4.0.0+maint.om/package.mo", uses=false) 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.Fourbar_analytic,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001197/0.001197, allocations: 105.8 kB / 16.92 MB, free: 6.145 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.001432/0.001432, allocations: 187.4 kB / 17.85 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.341/1.341, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001032/0.001032, allocations: 51.14 kB / 300.7 MB, free: 5.754 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09551/0.09656, allocations: 49.45 MB / 350.2 MB, free: 4.301 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic): time 0.01484/0.1114, allocations: 13.49 MB / 363.7 MB, free: 6.734 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009327/0.1208, allocations: 4.842 MB / 368.5 MB, free: 1.879 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001688/0.1225, allocations: 91.75 kB / 368.6 MB, free: 1.789 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.1818/0.3044, allocations: 4.181 MB / 372.8 MB, free: 9.352 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005539/0.31, allocations: 2.148 MB / 374.9 MB, free: 9.254 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002347/0.3123, allocations: 1.1 MB / 376 MB, free: 9.23 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.008536/0.3209, allocations: 5.974 MB / 382 MB, free: 9.184 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006577/0.3275, allocations: 5.313 MB / 387.3 MB, free: 7.281 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005593/0.3331, allocations: 2.159 MB / 389.5 MB, free: 6.305 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004042/0.3372, allocations: 2.87 MB / 392.3 MB, free: 4.711 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001109/0.3383, allocations: 0.4903 MB / 392.8 MB, free: 4.711 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003141/0.3415, allocations: 1.633 MB / 394.5 MB, free: 4.172 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002019/0.3435, allocations: 2.576 MB / 397 MB, free: 2.375 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002857/0.3464, allocations: 2.96 MB / 400 MB, free: 15.41 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0105/0.3569, allocations: 9.429 MB / 409.4 MB, free: 6.188 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.96e-06/0.3569, allocations: 0 / 409.4 MB, free: 6.188 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.515e-06/0.357, allocations: 0 / 409.4 MB, free: 6.188 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003043/0.3573, allocations: 4 kB / 409.4 MB, free: 6.184 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1743 * Number of variables: 1743 Notification: Performance of Generate backend data structure: time 0.01465/0.3719, allocations: 6.201 MB / 415.6 MB, free: 12 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.091e-05/0.372, allocations: 12.03 kB / 415.6 MB, free: 0 / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001391/0.3734, allocations: 0.9243 MB / 416.6 MB, free: 15.1 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04724/0.4206, allocations: 6.023 MB / 422.6 MB, free: 9.059 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01042/0.4311, allocations: 4.385 MB / 427 MB, free: 4.676 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003082/0.4314, allocations: 308.5 kB / 427.3 MB, free: 4.406 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001672/0.4331, allocations: 451.7 kB / 427.7 MB, free: 4.004 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0243/0.4574, allocations: 12.31 MB / 440 MB, free: 7.07 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002173/0.4577, allocations: 55.5 kB / 440.1 MB, free: 7.016 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001073/0.4588, allocations: 190.8 kB / 440.3 MB, free: 6.867 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003214/0.462, allocations: 2.033 MB / 442.3 MB, free: 4.84 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02101/0.483, allocations: 10.36 MB / 452.7 MB, free: 10.47 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05683/0.5399, allocations: 44.13 MB / 496.8 MB, free: 13.31 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01333/0.5533, allocations: 4.8 MB / 0.4898 GB, free: 8.375 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002685/0.556, allocations: 1.965 MB / 0.4918 GB, free: 6.398 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01128/0.5673, allocations: 7.004 MB / 0.4986 GB, free: 15.17 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.574e-05/0.5674, allocations: 59.5 kB / 0.4986 GB, free: 15.1 MB / 430.1 MB Notification: Performance of pre-optimization done (n=179): time 4.909e-06/0.5674, allocations: 0 / 0.4986 GB, free: 15.1 MB / 430.1 MB Notification: Performance of matching and sorting (n=223): time 0.06582/0.6332, allocations: 19.08 MB / 0.5173 GB, free: 11.98 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001224/0.6333, allocations: 213.8 kB / 0.5175 GB, free: 11.73 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007436/0.6408, allocations: 4.481 MB / 0.5219 GB, free: 7.23 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002921/0.6411, allocations: 61.7 kB / 0.5219 GB, free: 7.164 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002713/0.6438, allocations: 3.561 MB / 0.5254 GB, free: 3.602 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001015/0.6449, allocations: 0.8341 MB / 0.5262 GB, free: 2.773 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002181/0.6471, allocations: 1.274 MB / 0.5275 GB, free: 1.488 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 9.156e-05/0.6472, allocations: 301.1 kB / 0.5277 GB, free: 1.191 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.1673/0.8144, allocations: 2.222 MB / 0.5299 GB, free: 145.3 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00588/0.8204, allocations: 5.979 MB / 0.5358 GB, free: 140.4 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01007/0.8305, allocations: 8.915 MB / 0.5445 GB, free: 132.9 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001917/0.8307, allocations: 37.78 kB / 0.5445 GB, free: 132.9 MB / 446.1 MB Notification: Performance of matching and sorting (n=830) (initialization): time 0.01899/0.8497, allocations: 9.041 MB / 0.5533 GB, free: 129.8 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.975e-05/0.8498, allocations: 63.66 kB / 0.5534 GB, free: 129.8 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000159/0.85, allocations: 133.3 kB / 0.5535 GB, free: 129.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003473/0.8535, allocations: 1.206 MB / 0.5547 GB, free: 129.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00452/0.858, allocations: 1.41 MB / 0.5561 GB, free: 129.4 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009577/0.8676, allocations: 8.046 MB / 0.5639 GB, free: 125.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005801/0.8734, allocations: 343 kB / 0.5642 GB, free: 125.1 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001276/0.8747, allocations: 382.2 kB / 0.5646 GB, free: 125 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 599 * Number of states: 0 () * Number of discrete variables: 46 (jointSSP.prismatic.positiveBranch,b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],jointSSP.rod2Color[3],jointSSP.rod2Color[2],jointSSP.rod2Color[1],jointSSP.sphereColor[3],jointSSP.sphereColor[2],jointSSP.sphereColor[1],jointSSP.rod1Color[3],jointSSP.rod1Color[2],jointSSP.rod1Color[1],jointSSP.rod1.massColor[3],jointSSP.rod1.massColor[2],jointSSP.rod1.massColor[1],jointSSP.boxColor[3],jointSSP.boxColor[2],jointSSP.boxColor[1],b3.color[3],b3.color[2],b3.color[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[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],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (766): * Single equations (assignments): 762 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,40,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005607/0.8804, allocations: 2.487 MB / 0.567 GB, free: 123.9 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009919/0.8814, allocations: 406 kB / 0.5674 GB, free: 123.9 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007406/0.8888, allocations: 3.884 MB / 0.5712 GB, free: 122.1 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.654e-05/0.8888, allocations: 24 kB / 0.5712 GB, free: 122.1 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.041e-05/0.8889, allocations: 12 kB / 0.5713 GB, free: 122.1 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.602e-05/0.8889, allocations: 11.3 kB / 0.5713 GB, free: 122.1 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01952/0.9084, allocations: 10.18 MB / 0.5812 GB, free: 112.5 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.563e-05/0.9085, allocations: 4 kB / 0.5812 GB, free: 112.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001564/0.9101, allocations: 347.5 kB / 0.5815 GB, free: 112.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003114/0.9132, allocations: 0.9801 MB / 0.5825 GB, free: 111.2 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002538/0.9135, allocations: 47.5 kB / 0.5825 GB, free: 111.2 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007995/0.9215, allocations: 6.653 MB / 0.589 GB, free: 104.4 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.601e-06/0.9215, allocations: 7.938 kB / 0.5891 GB, free: 104.4 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009404/0.9309, allocations: 6.609 MB / 0.5955 GB, free: 97.81 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001166/0.9321, allocations: 451.8 kB / 0.5959 GB, free: 97.35 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009555/0.9331, allocations: 36 kB / 0.596 GB, free: 97.31 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002051/0.9351, allocations: 107.8 kB / 0.5961 GB, free: 97.21 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003815/0.9355, allocations: 148.7 kB / 0.5962 GB, free: 97.07 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001368/0.9357, allocations: 63.98 kB / 0.5963 GB, free: 97 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003569/0.9393, allocations: 2.832 MB / 0.599 GB, free: 94.17 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.9393, allocations: 0 / 0.599 GB, free: 94.17 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005485/0.9448, allocations: 1.172 MB / 0.6002 GB, free: 93.01 MB / 446.1 MB 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 (173): * Single equations (assignments): 169 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,30,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.008809/0.9536, allocations: 7.332 MB / 0.6073 GB, free: 85.59 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.009032/0.9626, allocations: 6.614 MB / 0.6138 GB, free: 79.01 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 9.377e-06/0.9627, allocations: 4.562 kB / 0.6138 GB, free: 79 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001995/0.9647, allocations: 1.834 MB / 0.6156 GB, free: 77.16 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002984/0.9677, allocations: 0.5653 MB / 0.6162 GB, free: 76.61 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06752/1.035, allocations: 59.5 MB / 0.6743 GB, free: 8.762 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00467/1.04, allocations: 3.871 MB / 0.678 GB, free: 4.855 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004545/1.044, allocations: 1.934 MB / 0.6799 GB, free: 2.914 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002796/1.047, allocations: 2.292 MB / 0.6822 GB, free: 0.6211 MB / 446.1 MB Notification: Performance of SimCode: time 1.092e-06/1.047, allocations: 0 / 0.6822 GB, free: 0.6211 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2973/1.345, allocations: 88.04 MB / 0.7681 GB, free: 103.4 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.43/12.78, allocations: 6.516 kB / 0.7681 GB, free: 103.4 MB / 462.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar_analytic/Fourbar_analytic.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches