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: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1",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.001057/0.001057, allocations: 96.5 kB / 16.95 MB, free: 6.453 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.001323/0.001323, allocations: 183.7 kB / 17.84 MB, free: 6.004 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.567/1.567, allocations: 205.4 MB / 224 MB, free: 13.16 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.0006901/0.0006903, allocations: 12 kB / 280.9 MB, free: 3.625 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1133/0.114, allocations: 47.57 MB / 328.4 MB, free: 3.98 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.2885/0.4026, allocations: 68.43 MB / 396.9 MB, free: 8.613 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.03773/0.4404, allocations: 14.31 MB / 411.2 MB, free: 6.941 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01855/0.459, allocations: 339.6 kB / 411.5 MB, free: 6.883 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01238/0.4714, allocations: 3.57 MB / 415.1 MB, free: 5.133 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03343/0.5049, allocations: 10.47 MB / 425.6 MB, free: 144 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00594/0.5108, allocations: 1.017 MB / 426.6 MB, free: 15.86 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.07347/0.5843, allocations: 51.7 MB / 478.3 MB, free: 0.6797 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0134/0.5978, allocations: 6.616 MB / 484.9 MB, free: 10 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005522/0.6034, allocations: 2.032 MB / 486.9 MB, free: 7.961 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00666/0.6101, allocations: 3.162 MB / 490.1 MB, free: 4.789 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001971/0.6121, allocations: 220 kB / 490.3 MB, free: 4.574 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004238/0.6164, allocations: 1.092 MB / 491.4 MB, free: 3.48 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004756/0.6212, allocations: 2.622 MB / 494 MB, free: 0.8516 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003306/0.6245, allocations: 1.232 MB / 495.2 MB, free: 15.61 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01193/0.6365, allocations: 8.156 MB / 0.4916 GB, free: 7.438 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.376e-06/0.6365, allocations: 0 / 0.4916 GB, free: 7.438 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.066e-06/0.6365, allocations: 0 / 0.4916 GB, free: 7.438 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.000459/0.637, allocations: 0 / 0.4916 GB, free: 7.438 MB / 398.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.01885/0.6559, allocations: 6.655 MB / 0.4981 GB, free: 0.6992 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.444e-05/0.6559, allocations: 8.031 kB / 0.4981 GB, free: 0.6914 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003924/0.6599, allocations: 1.086 MB / 0.4992 GB, free: 15.59 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04728/0.7072, allocations: 8.522 MB / 0.5075 GB, free: 7.051 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01586/0.7231, allocations: 6.112 MB / 0.5135 GB, free: 0.8594 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000438/0.7236, allocations: 340.7 kB / 0.5138 GB, free: 0.5234 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002169/0.7258, allocations: 467.5 kB / 0.5142 GB, free: 68 kB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03308/0.7589, allocations: 14.46 MB / 0.5284 GB, free: 0.6758 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004243/0.7593, allocations: 75.36 kB / 0.5284 GB, free: 0.6016 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001981/0.7613, allocations: 215.8 kB / 0.5286 GB, free: 400 kB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005804/0.7672, allocations: 2.84 MB / 0.5314 GB, free: 13.54 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02995/0.7971, allocations: 12.98 MB / 0.5441 GB, free: 0.5391 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3202/1.117, allocations: 58.31 MB / 0.601 GB, free: 122.3 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01569/1.133, allocations: 7.668 MB / 0.6085 GB, free: 114.5 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006119/1.139, allocations: 5.008 MB / 0.6134 GB, free: 109.5 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01871/1.158, allocations: 12.7 MB / 0.6258 GB, free: 96.75 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.473e-05/1.158, allocations: 64.7 kB / 0.6259 GB, free: 96.68 MB / 446.1 MB Notification: Performance of pre-optimization done (n=326): time 7.184e-06/1.158, allocations: 0 / 0.6259 GB, free: 96.68 MB / 446.1 MB Notification: Performance of matching and sorting (n=572): time 1.82/2.978, allocations: 407.1 MB / 1.023 GB, free: 31.11 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001202/2.979, allocations: 273.6 kB / 1.024 GB, free: 30.79 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007613/2.986, allocations: 5.525 MB / 1.029 GB, free: 25.29 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001905/2.988, allocations: 109.7 kB / 1.029 GB, free: 25.17 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.2376/3.226, allocations: 4.011 MB / 1.033 GB, free: 147.7 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.004156/3.23, allocations: 2.006 MB / 1.035 GB, free: 146.5 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00162/3.232, allocations: 181 kB / 1.035 GB, free: 146.5 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0005904/3.232, allocations: 0.698 MB / 1.036 GB, free: 146.1 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01887/3.251, allocations: 10.84 MB / 1.046 GB, free: 142.7 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01965/3.271, allocations: 14.96 MB / 1.061 GB, free: 133.1 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01811/3.289, allocations: 12.68 MB / 1.073 GB, free: 127.8 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001613/3.289, allocations: 39.31 kB / 1.074 GB, free: 127.8 MB / 446.1 MB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.5659/3.855, allocations: 140.3 MB / 1.211 GB, free: 129.1 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001053/3.855, allocations: 66.23 kB / 1.211 GB, free: 129.1 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000165/3.855, allocations: 138.4 kB / 1.211 GB, free: 129.1 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.07741/3.933, allocations: 34.64 MB / 1.245 GB, free: 112.7 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005111/3.938, allocations: 1.48 MB / 1.246 GB, free: 111.4 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.5495/4.488, allocations: 189.9 MB / 1.431 GB, free: 81.55 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01359/4.501, allocations: 1.699 MB / 1.433 GB, free: 80.56 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003313/4.505, allocations: 0.5341 MB / 1.434 GB, free: 80.1 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 626 * 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 (783): * Single equations (assignments): 776 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(20,40.5%) 164,(17,42.9%) 101,(2,100.0%) 7} * Non-linear torn systems: 1 {12 76} Notification: Performance of prepare postOptimizeDAE: time 0.01017/4.515, allocations: 3.091 MB / 1.437 GB, free: 77.53 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003491/4.518, allocations: 0.5883 MB / 1.437 GB, free: 77.26 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.5277/5.046, allocations: 136.4 MB / 1.57 GB, free: 99 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001152/5.046, allocations: 60 kB / 1.571 GB, free: 98.95 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.000194/5.046, allocations: 57.12 kB / 1.571 GB, free: 98.89 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001394/5.047, allocations: 35.84 kB / 1.571 GB, free: 98.86 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.6052/5.652, allocations: 206.1 MB / 1.772 GB, free: 89.1 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.219e-05/5.652, allocations: 7.125 kB / 1.772 GB, free: 89.1 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001494/5.653, allocations: 329.7 kB / 1.772 GB, free: 88.79 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.06716/5.721, allocations: 33.76 MB / 1.805 GB, free: 57.18 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001832/5.722, allocations: 100.7 kB / 1.805 GB, free: 57.09 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.476/6.199, allocations: 173 MB / 1.974 GB, free: 48.36 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.105e-06/6.199, allocations: 13.81 kB / 1.974 GB, free: 48.36 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5458/6.744, allocations: 152.2 MB / 2.123 GB, free: 58 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006354/6.751, allocations: 3.012 MB / 2.126 GB, free: 55.3 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003419/6.754, allocations: 92 kB / 2.126 GB, free: 55.21 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009047/6.763, allocations: 1.486 MB / 2.127 GB, free: 53.72 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003608/6.767, allocations: 0.4938 MB / 2.128 GB, free: 53.23 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001166/6.768, allocations: 145.2 kB / 2.128 GB, free: 53.09 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.005619/6.774, allocations: 3.529 MB / 2.131 GB, free: 49.59 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.7e-07/6.774, allocations: 0 / 2.131 GB, free: 49.59 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.01523/6.789, allocations: 3.8 MB / 2.135 GB, free: 45.8 MB / 462.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 (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(20,40.5%) 157,(16,51.6%) 99,(2,100.0%) 7} * Non-linear torn systems: 1 {12 86} Notification: Performance of Backend phase and start with SimCode phase: time 0.5535/7.343, allocations: 152.7 MB / 2.284 GB, free: 57.93 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.05352/7.396, allocations: 33.34 MB / 2.317 GB, free: 24.66 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.391e-05/7.396, allocations: 7.219 kB / 2.317 GB, free: 24.66 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.2546/7.651, allocations: 20.45 MB / 2.337 GB, free: 141.2 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007529/7.658, allocations: 0.8037 MB / 2.337 GB, free: 141.2 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6007/8.259, allocations: 213.5 MB / 2.546 GB, free: 115.1 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005918/8.265, allocations: 5.116 MB / 2.551 GB, free: 110.8 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.004634/8.27, allocations: 2.067 MB / 2.553 GB, free: 108.8 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003709/8.273, allocations: 3.037 MB / 2.556 GB, free: 105.8 MB / 462.1 MB Notification: Performance of SimCode: time 1.183e-06/8.273, allocations: 0 / 2.556 GB, free: 105.8 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8116/9.085, allocations: 324.1 MB / 2.873 GB, free: 120 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001365/9.085, allocations: 227.5 kB / 2.873 GB, free: 119.7 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.067/17.15, allocations: 0 / 2.873 GB, free: 119.7 MB / 478.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat does not exist to compare? outputFormat=mat