Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009661/0.0009662, allocations: 181.4 kB / 17.01 MB, free: 5.121 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.257/1.257, allocations: 205.4 MB / 223.1 MB, free: 9.129 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008106/0.0008105, allocations: 101 kB / 271.5 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002501/0.0002501, allocations: 8 kB / 328.3 MB, free: 15.44 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2087/0.2089, allocations: 47.57 MB / 375.9 MB, free: 45.65 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1067/0.3156, allocations: 102.9 MB / 478.8 MB, free: 9.691 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002522/0.3159, allocations: 91.95 kB / 478.9 MB, free: 9.602 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.463/0.779, allocations: 140.1 MB / 0.6045 GB, free: 11.39 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.646e-06/0.779, allocations: 3.938 kB / 0.6045 GB, free: 11.39 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0004946/0.7795, allocations: 152 kB / 0.6047 GB, free: 11.24 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2349 * Number of variables: 2349 Notification: Performance of Generate backend data structure: time 0.02264/0.8022, allocations: 8.25 MB / 0.6127 GB, free: 2.902 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.637e-05/0.8023, allocations: 8.031 kB / 0.6127 GB, free: 2.895 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005697/0.808, allocations: 1.194 MB / 0.6139 GB, free: 1.691 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04274/0.8507, allocations: 11.72 MB / 0.6254 GB, free: 5.945 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02708/0.8779, allocations: 10.58 MB / 0.6357 GB, free: 11.28 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005458/0.8785, allocations: 0.5176 MB / 0.6362 GB, free: 10.76 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003351/0.8818, allocations: 0.7066 MB / 0.6369 GB, free: 10.05 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2295/1.111, allocations: 17.38 MB / 0.6539 GB, free: 59.04 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002433/1.112, allocations: 98.55 kB / 0.654 GB, free: 59.04 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007976/1.112, allocations: 327.8 kB / 0.6543 GB, free: 59.04 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001587/1.114, allocations: 1.464 MB / 0.6557 GB, free: 59.03 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02401/1.138, allocations: 14.49 MB / 0.6699 GB, free: 58.98 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06914/1.207, allocations: 73.3 MB / 0.7414 GB, free: 13.33 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01977/1.227, allocations: 8.774 MB / 0.75 GB, free: 10.89 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0237/1.251, allocations: 17.74 MB / 0.7673 GB, free: 2.016 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.311e-05/1.251, allocations: 66.23 kB / 0.7674 GB, free: 1.949 MB / 410.7 MB Notification: Performance of pre-optimization done (n=281): time 6.162e-06/1.251, allocations: 2.953 kB / 0.7674 GB, free: 1.949 MB / 410.7 MB Notification: Performance of matching and sorting (n=374): time 0.3906/1.642, allocations: 70.41 MB / 0.8361 GB, free: 90.48 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001103/1.642, allocations: 374.7 kB / 0.8365 GB, free: 90.07 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008454/1.65, allocations: 5.548 MB / 0.8419 GB, free: 89.6 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009598/1.651, allocations: 81.77 kB / 0.842 GB, free: 89.57 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00286/1.654, allocations: 4.889 MB / 0.8468 GB, free: 87.24 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001682/1.656, allocations: 1.373 MB / 0.8481 GB, free: 86.43 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006562/1.656, allocations: 178.7 kB / 0.8483 GB, free: 86.43 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0003732/1.657, allocations: 0.6835 MB / 0.849 GB, free: 86.11 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00657/1.663, allocations: 5.495 MB / 0.8543 GB, free: 86.08 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008332/1.672, allocations: 10.46 MB / 0.8645 GB, free: 79.17 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008013/1.68, allocations: 7.411 MB / 0.8718 GB, free: 76.32 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001138/1.68, allocations: 55.48 kB / 0.8718 GB, free: 76.32 MB / 442.7 MB Notification: Performance of matching and sorting (n=1165) (initialization): time 0.03751/1.717, allocations: 21.36 MB / 0.8927 GB, free: 69.61 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.556e-05/1.718, allocations: 77.47 kB / 0.8928 GB, free: 69.57 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001541/1.718, allocations: 175.3 kB / 0.8929 GB, free: 69.4 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01786/1.736, allocations: 6.525 MB / 0.8993 GB, free: 65.04 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006831/1.742, allocations: 2.051 MB / 0.9013 GB, free: 63.31 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03653/1.779, allocations: 33.56 MB / 0.9341 GB, free: 34.45 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00786/1.787, allocations: 0.6912 MB / 0.9347 GB, free: 33.92 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001571/1.789, allocations: 0.5173 MB / 0.9353 GB, free: 33.42 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 787 * Number of states: 0 () * Number of discrete variables: 51 (sensorJoint4.arrowColor[3],sensorJoint4.arrowColor[2],sensorJoint4.arrowColor[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],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],revolute4cut.cylinderColor[3],revolute4cut.cylinderColor[2],revolute4cut.cylinderColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1023): * Single equations (assignments): 1016 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(6,77.8%) 67,(2,100.0%) 18} * Non-linear torn systems: 1 {2 24} Notification: Performance of prepare postOptimizeDAE: time 0.006203/1.795, allocations: 3.439 MB / 0.9386 GB, free: 30.39 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001275/1.796, allocations: 0.5901 MB / 0.9392 GB, free: 29.8 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02709/1.823, allocations: 15.48 MB / 0.9543 GB, free: 14.87 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.773e-05/1.823, allocations: 52.53 kB / 0.9544 GB, free: 14.82 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.64e-05/1.823, allocations: 19.56 kB / 0.9544 GB, free: 14.8 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.054e-05/1.823, allocations: 19.94 kB / 0.9544 GB, free: 14.78 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2315/2.055, allocations: 30.5 MB / 0.9842 GB, free: 95.47 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.024e-05/2.055, allocations: 5.125 kB / 0.9842 GB, free: 95.47 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002844/2.058, allocations: 0.5735 MB / 0.9847 GB, free: 95.47 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01688/2.075, allocations: 6.15 MB / 0.9907 GB, free: 95.44 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007733/2.076, allocations: 60.62 kB / 0.9908 GB, free: 95.44 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03537/2.111, allocations: 31.92 MB / 1.022 GB, free: 88.55 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.779e-06/2.111, allocations: 10.05 kB / 1.022 GB, free: 88.54 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03339/2.144, allocations: 23.14 MB / 1.045 GB, free: 79.87 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004532/2.149, allocations: 1.586 MB / 1.046 GB, free: 79.37 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00127/2.15, allocations: 62.84 kB / 1.046 GB, free: 79.33 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003685/2.154, allocations: 402.8 kB / 1.047 GB, free: 79.29 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008299/2.155, allocations: 252.5 kB / 1.047 GB, free: 79.25 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003245/2.155, allocations: 94.61 kB / 1.047 GB, free: 79.22 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.005358/2.16, allocations: 3.952 MB / 1.051 GB, free: 77.91 MB / 458.7 MB Notification: Performance of sort global known variables: time 3.01e-07/2.16, allocations: 2.5 kB / 1.051 GB, free: 77.91 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.008345/2.169, allocations: 2.173 MB / 1.053 GB, free: 76.54 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 2 (revolute1.phi,revolute1.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 (243): * Single equations (assignments): 236 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(5,84.0%) 62,(2,100.0%) 15} * Non-linear torn systems: 1 {2 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.03307/2.202, allocations: 24.38 MB / 1.077 GB, free: 56.38 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01803/2.22, allocations: 13.91 MB / 1.09 GB, free: 44.61 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 9.228e-06/2.22, allocations: 0 / 1.09 GB, free: 44.61 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007743/2.228, allocations: 6.365 MB / 1.096 GB, free: 39.05 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004088/2.232, allocations: 0.8397 MB / 1.097 GB, free: 38.37 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3222/2.554, allocations: 198.6 MB / 1.291 GB, free: 11.71 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005881/2.56, allocations: 5.438 MB / 1.297 GB, free: 10.82 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.006953/2.567, allocations: 3.042 MB / 1.3 GB, free: 10.65 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004647/2.572, allocations: 3.398 MB / 1.303 GB, free: 9.367 MB / 0.4948 GB Notification: Performance of SimCode: time 5.71e-07/2.572, allocations: 0 / 1.303 GB, free: 9.367 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3898/2.962, allocations: 169.8 MB / 1.469 GB, free: 68.84 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001505/2.962, allocations: 225.4 kB / 1.469 GB, free: 68.6 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.695/8.657, allocations: 0 / 1.469 GB, free: 68.6 MB / 0.4948 GB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.mat does not exist to compare? outputFormat=mat