Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,fileNamePrefix="Modelica_4_1_0-beta_om_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 trunk/package.mo): time 0.001461/0.001461, allocations: 102.8 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001408/0.001408, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.459/1.459, allocations: 227.7 MB / 247 MB, free: 10.29 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.00192/0.00192, allocations: 65.25 kB / 307.3 MB, free: 404 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1031/0.1051, allocations: 50.54 MB / 357.9 MB, free: 13.84 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.1743/0.2794, allocations: 14.97 MB / 372.8 MB, free: 9.145 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00898/0.2884, allocations: 4.83 MB / 377.7 MB, free: 8.945 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002623/0.2911, allocations: 96.69 kB / 377.8 MB, free: 8.926 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005771/0.2969, allocations: 3.158 MB / 380.9 MB, free: 8.066 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007071/0.304, allocations: 2.505 MB / 383.4 MB, free: 7.184 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002657/0.3067, allocations: 0.9951 MB / 384.4 MB, free: 6.84 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01134/0.3181, allocations: 7.034 MB / 391.5 MB, free: 4.172 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006102/0.3242, allocations: 4.336 MB / 395.8 MB, free: 1.715 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004204/0.3285, allocations: 2.213 MB / 398 MB, free: 0.6094 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004507/0.333, allocations: 3.222 MB / 401.2 MB, free: 14.82 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00124/0.3343, allocations: 488 kB / 401.7 MB, free: 14.34 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003271/0.3375, allocations: 1.485 MB / 403.2 MB, free: 12.92 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003265/0.3408, allocations: 2.827 MB / 406 MB, free: 10.09 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004556/0.3454, allocations: 3.289 MB / 409.3 MB, free: 6.801 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01255/0.358, allocations: 10.12 MB / 419.4 MB, free: 12.91 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.867e-06/0.358, allocations: 0 / 419.4 MB, free: 12.91 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.358, allocations: 0 / 419.4 MB, free: 12.91 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0003673/0.3584, allocations: 0 / 419.4 MB, free: 12.91 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: 2242 * Number of variables: 2242 Notification: Performance of Generate backend data structure: time 0.02231/0.3807, allocations: 7.448 MB / 426.9 MB, free: 5.539 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.456e-05/0.3808, allocations: 8.031 kB / 426.9 MB, free: 5.531 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003206/0.384, allocations: 1.139 MB / 428 MB, free: 4.434 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04623/0.4303, allocations: 7.508 MB / 435.5 MB, free: 12.91 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01253/0.4428, allocations: 4.57 MB / 440.1 MB, free: 8.328 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004147/0.4433, allocations: 318.8 kB / 440.4 MB, free: 8.07 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002476/0.4458, allocations: 438.4 kB / 440.8 MB, free: 7.699 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03108/0.4769, allocations: 15.61 MB / 456.4 MB, free: 7.336 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001867/0.4771, allocations: 63.36 kB / 456.5 MB, free: 7.273 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008011/0.4779, allocations: 205.8 kB / 456.7 MB, free: 7.082 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005649/0.4836, allocations: 3.22 MB / 459.9 MB, free: 3.855 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0315/0.5151, allocations: 13.91 MB / 473.8 MB, free: 5.926 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08733/0.6025, allocations: 57.36 MB / 0.5187 GB, free: 11 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01514/0.6177, allocations: 6.487 MB / 0.5251 GB, free: 4.254 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005378/0.6231, allocations: 3.578 MB / 0.5286 GB, free: 0.6602 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1852/0.8083, allocations: 14.3 MB / 0.5425 GB, free: 133.5 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.938e-05/0.8084, allocations: 59.47 kB / 0.5426 GB, free: 133.4 MB / 446.1 MB Notification: Performance of pre-optimization done (n=286): time 6.081e-06/0.8084, allocations: 0 / 0.5426 GB, free: 133.4 MB / 446.1 MB Notification: Performance of matching and sorting (n=336): time 0.1384/0.9468, allocations: 41.59 MB / 0.5832 GB, free: 109.5 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.613e-05/0.9469, allocations: 217.9 kB / 0.5834 GB, free: 109.2 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00589/0.9528, allocations: 5.486 MB / 0.5888 GB, free: 103.8 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007695/0.9536, allocations: 77.38 kB / 0.5889 GB, free: 103.7 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001722/0.9554, allocations: 4.418 MB / 0.5932 GB, free: 99.26 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001214/0.9566, allocations: 1.239 MB / 0.5944 GB, free: 98.04 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002128/0.9587, allocations: 1.777 MB / 0.5961 GB, free: 96.24 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.214e-05/0.9588, allocations: 301.1 kB / 0.5964 GB, free: 95.95 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005381/0.9642, allocations: 4.624 MB / 0.6009 GB, free: 91.31 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008001/0.9722, allocations: 9.595 MB / 0.6103 GB, free: 79.27 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01484/0.9871, allocations: 15.26 MB / 0.6252 GB, free: 61.55 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001458/0.9873, allocations: 48 kB / 0.6252 GB, free: 61.5 MB / 446.1 MB Notification: Performance of matching and sorting (n=1148) (initialization): time 0.04216/1.029, allocations: 18.96 MB / 0.6438 GB, free: 42.49 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001277/1.03, allocations: 80 kB / 0.6438 GB, free: 42.41 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002949/1.03, allocations: 176 kB / 0.644 GB, free: 42.24 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0221/1.052, allocations: 5.773 MB / 0.6496 GB, free: 36.46 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006812/1.059, allocations: 2.055 MB / 0.6516 GB, free: 34.4 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02774/1.087, allocations: 25.63 MB / 0.6767 GB, free: 8.48 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00795/1.095, allocations: 0.5538 MB / 0.6772 GB, free: 7.93 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001684/1.096, allocations: 0.5 MB / 0.6777 GB, free: 7.43 MB / 446.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.005731/1.102, allocations: 3.09 MB / 0.6807 GB, free: 4.328 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00123/1.103, allocations: 0.4975 MB / 0.6812 GB, free: 3.824 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2308/1.334, allocations: 12.59 MB / 0.6935 GB, free: 137.3 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001098/1.334, allocations: 56.12 kB / 0.6936 GB, free: 137.3 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.351e-05/1.334, allocations: 8.469 kB / 0.6936 GB, free: 137.3 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.002e-05/1.334, allocations: 19.09 kB / 0.6936 GB, free: 137.3 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05306/1.387, allocations: 24.25 MB / 0.7173 GB, free: 129.4 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.91e-05/1.388, allocations: 7.875 kB / 0.7173 GB, free: 129.4 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003074/1.391, allocations: 0.5665 MB / 0.7178 GB, free: 129.4 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01933/1.41, allocations: 4.819 MB / 0.7225 GB, free: 128.7 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007916/1.411, allocations: 59.59 kB / 0.7226 GB, free: 128.6 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02223/1.433, allocations: 20.92 MB / 0.743 GB, free: 116.5 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.662e-06/1.433, allocations: 7.875 kB / 0.743 GB, free: 116.5 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03516/1.468, allocations: 16.99 MB / 0.7596 GB, free: 101.7 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001582/1.47, allocations: 0.5242 MB / 0.7601 GB, free: 101.5 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001207/1.471, allocations: 51.94 kB / 0.7602 GB, free: 101.4 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003077/1.474, allocations: 255.6 kB / 0.7604 GB, free: 101.2 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007536/1.475, allocations: 199 kB / 0.7606 GB, free: 101 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002525/1.475, allocations: 90.64 kB / 0.7607 GB, free: 100.9 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00429/1.48, allocations: 3.416 MB / 0.764 GB, free: 97.49 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.01e-07/1.48, allocations: 2.438 kB / 0.764 GB, free: 97.49 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.007504/1.487, allocations: 1.684 MB / 0.7657 GB, free: 95.82 MB / 462.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.03284/1.52, allocations: 17.65 MB / 0.7829 GB, free: 78.26 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.02129/1.541, allocations: 15.25 MB / 0.7978 GB, free: 63.09 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.412e-05/1.541, allocations: 4 kB / 0.7978 GB, free: 63.09 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005085/1.546, allocations: 4.015 MB / 0.8017 GB, free: 59.07 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004182/1.551, allocations: 0.6491 MB / 0.8024 GB, free: 58.45 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3497/1.9, allocations: 98.18 MB / 0.8982 GB, free: 129.4 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006901/1.907, allocations: 4.625 MB / 0.9028 GB, free: 127.8 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.006618/1.914, allocations: 2.971 MB / 0.9057 GB, free: 127.7 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003676/1.918, allocations: 2.915 MB / 0.9085 GB, free: 125.2 MB / 478.1 MB Notification: Performance of SimCode: time 1.643e-06/1.918, allocations: 0 / 0.9085 GB, free: 125.2 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3974/2.315, allocations: 130.4 MB / 1.036 GB, free: 138.4 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.85/15.16, allocations: 9.359 kB / 1.036 GB, free: 138.4 MB / 478.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_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_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2.fmu > Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1)