Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001624/0.001624, allocations: 198.1 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.863/1.863, allocations: 225.6 MB / 234.8 MB, free: 3.242 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009095/0.0009096, allocations: 95.12 kB / 286.7 MB, free: 5.293 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.734e-05/1.737e-05, allocations: 0 / 343.8 MB, free: 8.172 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1161/0.1162, allocations: 51.46 MB / 395.3 MB, free: 4.668 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3979/0.5141, allocations: 101.3 MB / 496.6 MB, free: 7.859 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002821/0.5144, allocations: 85.64 kB / 496.7 MB, free: 7.816 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5662/1.081, allocations: 128.5 MB / 0.6105 GB, free: 74.37 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.873e-06/1.081, allocations: 0 / 0.6105 GB, free: 74.37 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0002778/1.081, allocations: 118.8 kB / 0.6106 GB, free: 74.36 MB / 442.7 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.01862/1.1, allocations: 6.343 MB / 0.6168 GB, free: 71.93 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.004e-05/1.1, allocations: 8.75 kB / 0.6168 GB, free: 71.93 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03348/1.133, allocations: 8.316 MB / 0.625 GB, free: 71.49 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01918/1.152, allocations: 6.326 MB / 0.6311 GB, free: 70.68 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004281/1.153, allocations: 187.5 kB / 0.6313 GB, free: 70.68 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003331/1.156, allocations: 362.7 kB / 0.6317 GB, free: 70.67 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01754/1.174, allocations: 10.13 MB / 0.6415 GB, free: 69.94 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0293/1.203, allocations: 14.07 MB / 0.6553 GB, free: 62.89 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005437/1.204, allocations: 70.08 kB / 0.6554 GB, free: 62.85 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002982/1.207, allocations: 36.88 kB / 0.6554 GB, free: 62.85 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002165/1.209, allocations: 1.623 MB / 0.657 GB, free: 62.55 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07005/1.279, allocations: 61.46 MB / 0.717 GB, free: 16.27 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005912/1.285, allocations: 5.569 MB / 0.7224 GB, free: 10.88 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003341/1.288, allocations: 3.369 MB / 0.7257 GB, free: 7.773 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01904/1.307, allocations: 13.98 MB / 0.7394 GB, free: 11.27 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.979e-05/1.307, allocations: 60.52 kB / 0.7394 GB, free: 11.2 MB / 458.7 MB Notification: Performance of pre-optimization done (n=286): time 6.402e-06/1.307, allocations: 3.938 kB / 0.7394 GB, free: 11.2 MB / 458.7 MB Notification: Performance of matching and sorting (n=336): time 0.3202/1.628, allocations: 30.81 MB / 0.7695 GB, free: 83.85 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.087e-05/1.628, allocations: 210.6 kB / 0.7697 GB, free: 83.63 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006637/1.634, allocations: 4.273 MB / 0.7739 GB, free: 83.21 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000759/1.635, allocations: 25.7 kB / 0.7739 GB, free: 83.18 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002569/1.638, allocations: 4.532 MB / 0.7783 GB, free: 80.64 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001559/1.639, allocations: 1.21 MB / 0.7795 GB, free: 79.92 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004616/1.64, allocations: 0 / 0.7795 GB, free: 79.92 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0004632/1.64, allocations: 0.6972 MB / 0.7802 GB, free: 79.59 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005144/1.645, allocations: 4.372 MB / 0.7845 GB, free: 79.57 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01183/1.657, allocations: 9.569 MB / 0.7938 GB, free: 72.86 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01161/1.669, allocations: 6.349 MB / 0.8 GB, free: 71.45 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003257/1.669, allocations: 53.84 kB / 0.8001 GB, free: 71.45 MB / 458.7 MB Notification: Performance of matching and sorting (n=1199) (initialization): time 0.04629/1.716, allocations: 17.66 MB / 0.8173 GB, free: 66.51 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002952/1.716, allocations: 88.31 kB / 0.8174 GB, free: 66.51 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003791/1.716, allocations: 183.8 kB / 0.8176 GB, free: 66.51 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0214/1.738, allocations: 5.626 MB / 0.8231 GB, free: 65.66 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008157/1.746, allocations: 2.138 MB / 0.8252 GB, free: 65.41 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0262/1.772, allocations: 21.62 MB / 0.8463 GB, free: 55.12 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009124/1.781, allocations: 385.8 kB / 0.8466 GB, free: 55.1 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002371/1.784, allocations: 0.5314 MB / 0.8472 GB, free: 55.03 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 843 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1108): * Single equations (assignments): 1100 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 42} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003621/1.787, allocations: 0.5615 MB / 0.8477 GB, free: 54.56 MB / 458.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02942/1.817, allocations: 11.86 MB / 0.8593 GB, free: 51.04 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001963/1.819, allocations: 479.5 kB / 0.8598 GB, free: 50.78 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03078/1.85, allocations: 12.02 MB / 0.8715 GB, free: 43.46 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001136/1.85, allocations: 55.95 kB / 0.8715 GB, free: 43.41 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.388e-05/1.85, allocations: 8 kB / 0.8716 GB, free: 43.41 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.2e-05/1.85, allocations: 17.83 kB / 0.8716 GB, free: 43.4 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04635/1.896, allocations: 22.45 MB / 0.8935 GB, free: 24 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.957e-05/1.896, allocations: 10.08 kB / 0.8935 GB, free: 24 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00317/1.9, allocations: 0.5739 MB / 0.8941 GB, free: 23.42 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01792/1.918, allocations: 4.629 MB / 0.8986 GB, free: 18.79 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009191/1.919, allocations: 18.11 kB / 0.8986 GB, free: 18.77 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3055/2.224, allocations: 17.34 MB / 0.9155 GB, free: 74.71 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.427e-05/2.224, allocations: 10.23 kB / 0.9155 GB, free: 74.71 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0326/2.257, allocations: 16.96 MB / 0.9321 GB, free: 73.2 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001634/2.258, allocations: 0.4947 MB / 0.9326 GB, free: 73.11 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009875/2.259, allocations: 8.609 kB / 0.9326 GB, free: 73.11 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002811/2.262, allocations: 207.8 kB / 0.9328 GB, free: 73.1 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000519/2.263, allocations: 188 kB / 0.933 GB, free: 73.1 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002555/2.263, allocations: 87.16 kB / 0.9331 GB, free: 73.1 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.004264/2.267, allocations: 2.84 MB / 0.9358 GB, free: 72.92 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.573e-06/2.267, allocations: 1.125 kB / 0.9358 GB, free: 72.92 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01038/2.278, allocations: 1.5 MB / 0.9373 GB, free: 72.92 MB / 458.7 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 () * 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 (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.03485/2.313, allocations: 18.68 MB / 0.9555 GB, free: 69.82 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01709/2.33, allocations: 10 MB / 0.9653 GB, free: 66.41 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.05e-05/2.33, allocations: 3.625 kB / 0.9653 GB, free: 66.41 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005403/2.335, allocations: 3.814 MB / 0.969 GB, free: 64.82 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003718/2.339, allocations: 459.9 kB / 0.9695 GB, free: 64.62 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04386/2.383, allocations: 15.17 MB / 0.9843 GB, free: 59.28 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01055/2.393, allocations: 4.746 MB / 0.9889 GB, free: 57.7 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.009897/2.403, allocations: 3.075 MB / 0.9919 GB, free: 57.65 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005657/2.409, allocations: 2.911 MB / 0.9948 GB, free: 55.25 MB / 458.7 MB Notification: Performance of SimCode: time 1.192e-06/2.409, allocations: 0 / 0.9948 GB, free: 55.25 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4734/2.882, allocations: 127.7 MB / 1.119 GB, free: 82.39 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001466/2.883, allocations: 142.5 kB / 1.12 GB, free: 82.2 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.879/8.761, allocations: 1.125 kB / 1.12 GB, free: 82.2 MB / 474.7 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat does not exist to compare? outputFormat=mat