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.002188/0.002188, allocations: 178.4 kB / 8.697 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.955/1.955, allocations: 205.3 MB / 214.4 MB, free: 1.672 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001157/0.001156, allocations: 90.38 kB / 262.4 MB, free: 1.621 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.065e-05/2.082e-05, allocations: 0 / 315.6 MB, free: 22.61 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1312/0.1312, allocations: 47.58 MB / 363.2 MB, free: 6.969 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4367/0.568, allocations: 102.4 MB / 465.5 MB, free: 9.609 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003002/0.5683, allocations: 85.64 kB / 465.6 MB, free: 9.566 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6671/1.235, allocations: 137.1 MB / 0.5886 GB, free: 87.97 MB / 410.7 MB Notification: Performance of FrontEnd: time 5.771e-06/1.236, allocations: 0 / 0.5886 GB, free: 87.97 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004626/1.236, allocations: 151.6 kB / 0.5888 GB, free: 87.96 MB / 410.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.02818/1.264, allocations: 7.501 MB / 0.5961 GB, free: 83.93 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.874e-05/1.264, allocations: 10.53 kB / 0.5961 GB, free: 83.93 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04449/1.309, allocations: 11.73 MB / 0.6076 GB, free: 76.12 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02657/1.335, allocations: 10.52 MB / 0.6178 GB, free: 65.68 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003591/1.336, allocations: 231.1 kB / 0.618 GB, free: 65.45 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00381/1.34, allocations: 431.7 kB / 0.6185 GB, free: 65.03 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02048/1.36, allocations: 9.852 MB / 0.6281 GB, free: 55.18 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03562/1.396, allocations: 14.62 MB / 0.6424 GB, free: 39.24 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005006/1.396, allocations: 91.23 kB / 0.6424 GB, free: 39.15 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001808/1.398, allocations: 43.94 kB / 0.6425 GB, free: 39.11 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001795/1.4, allocations: 1.456 MB / 0.6439 GB, free: 37.66 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4363/1.836, allocations: 71.43 MB / 0.7137 GB, free: 56.17 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01036/1.847, allocations: 6.014 MB / 0.7195 GB, free: 55.5 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007138/1.854, allocations: 4.618 MB / 0.724 GB, free: 55.47 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001148/1.855, allocations: 0.8693 MB / 0.7249 GB, free: 54.81 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.415e-05/1.855, allocations: 66.72 kB / 0.725 GB, free: 54.77 MB / 426.7 MB Notification: Performance of pre-optimization done (n=292): time 6.552e-06/1.855, allocations: 4.781 kB / 0.725 GB, free: 54.77 MB / 426.7 MB Notification: Performance of matching and sorting (n=385): time 0.1297/1.985, allocations: 53.42 MB / 0.7771 GB, free: 40.87 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001363/1.985, allocations: 379.3 kB / 0.7775 GB, free: 40.42 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008794/1.994, allocations: 4.854 MB / 0.7822 GB, free: 36.26 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001598/1.995, allocations: 29.7 kB / 0.7823 GB, free: 36.23 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004327/2, allocations: 4.913 MB / 0.7871 GB, free: 31.93 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002807/2.003, allocations: 1.366 MB / 0.7884 GB, free: 30.7 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008347/2.003, allocations: 0 / 0.7884 GB, free: 30.7 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0005159/2.004, allocations: 0.6995 MB / 0.7891 GB, free: 30.1 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008414/2.012, allocations: 5.321 MB / 0.7943 GB, free: 25.29 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01474/2.027, allocations: 10.37 MB / 0.8044 GB, free: 13.29 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01153/2.039, allocations: 7.302 MB / 0.8115 GB, free: 7.223 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003647/2.039, allocations: 52.98 kB / 0.8116 GB, free: 7.172 MB / 426.7 MB Notification: Performance of matching and sorting (n=1197) (initialization): time 0.05119/2.09, allocations: 20.26 MB / 0.8314 GB, free: 6.816 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004001/2.091, allocations: 80 kB / 0.8314 GB, free: 6.738 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005985/2.092, allocations: 176 kB / 0.8316 GB, free: 6.566 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02267/2.114, allocations: 6.517 MB / 0.838 GB, free: 2.137 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009105/2.123, allocations: 2.109 MB / 0.84 GB, free: 24 kB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04676/2.17, allocations: 30.48 MB / 0.8698 GB, free: 1.195 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01147/2.182, allocations: 0.5273 MB / 0.8703 GB, free: 0.668 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003062/2.185, allocations: 0.5273 MB / 0.8708 GB, free: 144 kB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 808 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1053): * Single equations (assignments): 1046 * 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%) 69,(2,100.0%) 18} * Non-linear torn systems: 1 {2 24} Notification: Performance of prepare postOptimizeDAE: time 0.3492/2.534, allocations: 0.544 MB / 0.8714 GB, free: 127.2 MB / 474.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.03667/2.571, allocations: 14.8 MB / 0.8858 GB, free: 127 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002716/2.574, allocations: 0.5598 MB / 0.8864 GB, free: 127 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03112/2.605, allocations: 15.18 MB / 0.9012 GB, free: 126.7 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.56e-05/2.605, allocations: 50.77 kB / 0.9012 GB, free: 126.7 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.452e-05/2.605, allocations: 17.25 kB / 0.9013 GB, free: 126.7 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.837e-05/2.605, allocations: 23.22 kB / 0.9013 GB, free: 126.7 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0564/2.661, allocations: 29.41 MB / 0.93 GB, free: 115 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.529e-05/2.661, allocations: 4.281 kB / 0.93 GB, free: 115 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003458/2.665, allocations: 0.5971 MB / 0.9306 GB, free: 115 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01878/2.684, allocations: 6.113 MB / 0.9366 GB, free: 114 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001057/2.685, allocations: 8.469 kB / 0.9366 GB, free: 114 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03414/2.719, allocations: 28.58 MB / 0.9645 GB, free: 96.2 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.346e-06/2.719, allocations: 4 kB / 0.9645 GB, free: 96.2 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03637/2.755, allocations: 22.92 MB / 0.9869 GB, free: 74.45 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004709/2.76, allocations: 1.545 MB / 0.9884 GB, free: 72.88 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002737/2.763, allocations: 11.98 kB / 0.9884 GB, free: 72.87 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006266/2.769, allocations: 352.9 kB / 0.9887 GB, free: 72.53 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001446/2.771, allocations: 256.7 kB / 0.989 GB, free: 72.28 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004349/2.771, allocations: 100.7 kB / 0.9891 GB, free: 72.18 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.005758/2.777, allocations: 3.325 MB / 0.9923 GB, free: 68.86 MB / 474.7 MB Notification: Performance of sort global known variables: time 2.3e-07/2.777, allocations: 0 / 0.9923 GB, free: 68.86 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01043/2.787, allocations: 1.934 MB / 0.9942 GB, free: 66.95 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 2 (revolute1.phi,revolute1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (254): * Single equations (assignments): 247 * 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.03555/2.823, allocations: 24.28 MB / 1.018 GB, free: 42.57 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01884/2.842, allocations: 13.4 MB / 1.031 GB, free: 29.16 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 9.919e-06/2.842, allocations: 0 / 1.031 GB, free: 29.16 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.2808/3.123, allocations: 6.186 MB / 1.037 GB, free: 129.9 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006456/3.129, allocations: 0.7146 MB / 1.038 GB, free: 129.9 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0622/3.192, allocations: 18.8 MB / 1.056 GB, free: 127.2 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01062/3.202, allocations: 5.441 MB / 1.061 GB, free: 126.3 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.009746/3.212, allocations: 3.113 MB / 1.064 GB, free: 126.3 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007487/3.22, allocations: 3.401 MB / 1.068 GB, free: 126.3 MB / 474.7 MB Notification: Performance of SimCode: time 1.112e-06/3.22, allocations: 0 / 1.068 GB, free: 126.3 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5167/3.736, allocations: 161.3 MB / 1.225 GB, free: 114.5 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001602/3.737, allocations: 146.5 kB / 1.225 GB, free: 114.4 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.226/10.96, allocations: 0 / 1.225 GB, free: 114.4 MB / 474.7 MB (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