Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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) 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: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2",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.001133/0.001133, allocations: 114.4 kB / 17.74 MB, free: 5.355 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.00122/0.00122, allocations: 183.1 kB / 18.66 MB, free: 4.434 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.326/1.326, allocations: 205.1 MB / 224.5 MB, free: 12.29 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.001831/0.001831, allocations: 60.38 kB / 328 MB, free: 3.824 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1089/0.1107, allocations: 46.62 MB / 374.6 MB, free: 5.098 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.2185/0.3293, allocations: 15.07 MB / 389.7 MB, free: 4.543 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01093/0.3403, allocations: 4.818 MB / 394.5 MB, free: 1.516 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004125/0.3444, allocations: 97.06 kB / 394.6 MB, free: 1.496 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006699/0.3512, allocations: 3.162 MB / 397.8 MB, free: 40 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009077/0.3603, allocations: 2.637 MB / 400.4 MB, free: 14.82 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003002/0.3634, allocations: 0.9912 MB / 401.4 MB, free: 14.43 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01142/0.3748, allocations: 6.642 MB / 408.1 MB, free: 11.04 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006388/0.3812, allocations: 4.351 MB / 412.4 MB, free: 8.492 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004731/0.386, allocations: 2.236 MB / 414.7 MB, free: 7.223 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00533/0.3914, allocations: 3.252 MB / 417.9 MB, free: 4.523 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001831/0.3932, allocations: 488 kB / 418.4 MB, free: 4.047 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004185/0.3974, allocations: 1.494 MB / 419.9 MB, free: 2.551 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004097/0.4015, allocations: 2.899 MB / 422.8 MB, free: 15.64 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005583/0.4072, allocations: 3.324 MB / 426.1 MB, free: 12.3 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01336/0.4205, allocations: 10.65 MB / 436.7 MB, free: 1.613 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.338e-06/0.4206, allocations: 0 / 436.7 MB, free: 1.613 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.504e-06/0.4206, allocations: 0 / 436.7 MB, free: 1.613 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0003761/0.421, allocations: 0 / 436.7 MB, free: 1.613 MB / 350.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.01966/0.4407, allocations: 7.689 MB / 444.4 MB, free: 9.828 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.581e-05/0.4407, allocations: 12.03 kB / 444.4 MB, free: 9.816 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002126/0.4429, allocations: 1.141 MB / 445.6 MB, free: 8.66 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04194/0.4848, allocations: 7.555 MB / 453.1 MB, free: 1.09 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01131/0.4962, allocations: 5.206 MB / 458.3 MB, free: 11.82 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002859/0.4965, allocations: 320.4 kB / 458.7 MB, free: 11.51 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001585/0.4981, allocations: 431.6 kB / 459.1 MB, free: 11.09 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02647/0.5246, allocations: 15.61 MB / 474.7 MB, free: 10.55 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002335/0.5249, allocations: 63.52 kB / 474.8 MB, free: 10.49 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001052/0.5259, allocations: 199.8 kB / 474.9 MB, free: 10.29 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005032/0.531, allocations: 3.22 MB / 478.2 MB, free: 7.07 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02926/0.5603, allocations: 13.91 MB / 492.1 MB, free: 9.141 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08177/0.6421, allocations: 57.22 MB / 0.5364 GB, free: 14.35 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01442/0.6566, allocations: 6.496 MB / 0.5428 GB, free: 7.605 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005279/0.6619, allocations: 3.566 MB / 0.5463 GB, free: 4.023 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2476/0.9095, allocations: 14.32 MB / 0.5602 GB, free: 144.1 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.334e-05/0.9096, allocations: 65.45 kB / 0.5603 GB, free: 144 MB / 478.1 MB Notification: Performance of pre-optimization done (n=286): time 6.301e-06/0.9096, allocations: 0 / 0.5603 GB, free: 144 MB / 478.1 MB Notification: Performance of matching and sorting (n=336): time 0.1504/1.06, allocations: 42.07 MB / 0.6014 GB, free: 122.6 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.995e-05/1.06, allocations: 225.8 kB / 0.6016 GB, free: 122.3 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007328/1.068, allocations: 5.53 MB / 0.607 GB, free: 116.9 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001203/1.069, allocations: 73.7 kB / 0.6071 GB, free: 116.8 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003448/1.072, allocations: 4.605 MB / 0.6116 GB, free: 112.6 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002311/1.075, allocations: 1.306 MB / 0.6128 GB, free: 111.3 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00282/1.077, allocations: 1.782 MB / 0.6146 GB, free: 109.5 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 8.374e-05/1.078, allocations: 305.1 kB / 0.6149 GB, free: 109.2 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005062/1.083, allocations: 4.616 MB / 0.6194 GB, free: 104.6 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006509/1.089, allocations: 9.594 MB / 0.6287 GB, free: 92.54 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01301/1.102, allocations: 15.26 MB / 0.6436 GB, free: 74.8 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001057/1.102, allocations: 48 kB / 0.6437 GB, free: 74.76 MB / 478.1 MB Notification: Performance of matching and sorting (n=1148) (initialization): time 0.03789/1.14, allocations: 18.99 MB / 0.6622 GB, free: 55.72 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001739/1.14, allocations: 80 kB / 0.6623 GB, free: 55.64 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002221/1.141, allocations: 172 kB / 0.6625 GB, free: 55.47 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02144/1.162, allocations: 5.773 MB / 0.6681 GB, free: 49.69 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006586/1.169, allocations: 2.055 MB / 0.6701 GB, free: 47.63 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02834/1.197, allocations: 25.64 MB / 0.6952 GB, free: 21.7 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008117/1.205, allocations: 0.5462 MB / 0.6957 GB, free: 21.16 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001942/1.207, allocations: 0.5038 MB / 0.6962 GB, free: 20.66 MB / 478.1 MB 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 (1057): * Single equations (assignments): 1049 * 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.006891/1.214, allocations: 3.11 MB / 0.6992 GB, free: 17.53 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001639/1.216, allocations: 0.52 MB / 0.6997 GB, free: 17.01 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03181/1.248, allocations: 12.6 MB / 0.712 GB, free: 4.336 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.019e-05/1.248, allocations: 52 kB / 0.7121 GB, free: 4.285 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.63e-05/1.248, allocations: 12 kB / 0.7121 GB, free: 4.273 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.604e-05/1.248, allocations: 15.94 kB / 0.7121 GB, free: 4.258 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2644/1.512, allocations: 24.2 MB / 0.7358 GB, free: 144.1 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.707e-05/1.512, allocations: 6.969 kB / 0.7358 GB, free: 144.1 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003234/1.516, allocations: 0.5739 MB / 0.7363 GB, free: 144.1 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02005/1.536, allocations: 4.814 MB / 0.741 GB, free: 144.1 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007906/1.537, allocations: 55.77 kB / 0.7411 GB, free: 144.1 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02534/1.562, allocations: 20.91 MB / 0.7615 GB, free: 134.2 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.562e-06/1.562, allocations: 11.56 kB / 0.7615 GB, free: 134.2 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03157/1.594, allocations: 17.02 MB / 0.7781 GB, free: 127.2 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003025/1.597, allocations: 1.26 MB / 0.7794 GB, free: 126.7 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001022/1.598, allocations: 51.72 kB / 0.7794 GB, free: 126.6 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003087/1.601, allocations: 257.3 kB / 0.7796 GB, free: 126.5 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007702/1.602, allocations: 187.9 kB / 0.7798 GB, free: 126.4 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002735/1.602, allocations: 82.17 kB / 0.7799 GB, free: 126.4 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.004704/1.606, allocations: 3.453 MB / 0.7833 GB, free: 124.7 MB / 494.1 MB Notification: Performance of sort global known variables: time 3.6e-07/1.607, allocations: 0 / 0.7833 GB, free: 124.7 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.007002/1.614, allocations: 1.706 MB / 0.7849 GB, free: 123.7 MB / 494.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 (251): * Single equations (assignments): 243 * 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.03115/1.645, allocations: 17.68 MB / 0.8022 GB, free: 106.2 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01372/1.658, allocations: 10.63 MB / 0.8126 GB, free: 95.67 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 8.436e-06/1.658, allocations: 0 / 0.8126 GB, free: 95.67 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004657/1.663, allocations: 4.016 MB / 0.8165 GB, free: 91.64 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003896/1.667, allocations: 0.6559 MB / 0.8172 GB, free: 91.03 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1342/1.801, allocations: 86.34 MB / 0.9015 GB, free: 13.08 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007079/1.808, allocations: 4.628 MB / 0.906 GB, free: 8.426 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.007456/1.816, allocations: 2.983 MB / 0.9089 GB, free: 5.438 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005648/1.822, allocations: 2.921 MB / 0.9118 GB, free: 2.516 MB / 0.4981 GB Notification: Performance of SimCode: time 1.142e-06/1.822, allocations: 0 / 0.9118 GB, free: 2.516 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3704/2.192, allocations: 125.6 MB / 1.034 GB, free: 68.12 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 37.51/39.7, allocations: 12.92 kB / 1.034 GB, free: 68.11 MB / 0.4981 GB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar2/Fourbar2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches