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/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 trunk/package.mo", uses=false) 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) 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_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/ModelicaServices trunk/package.mo): time 0.001224/0.001223, allocations: 99.2 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001438/0.001439, allocations: 209.3 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.384/1.384, allocations: 227.3 MB / 245.9 MB, free: 10.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002384/0.0002384, allocations: 8 kB / 306.7 MB, free: 1.246 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1063/0.1066, allocations: 51.49 MB / 358.2 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.2828/0.3894, allocations: 45.71 MB / 403.9 MB, free: 9.453 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.03182/0.4213, allocations: 11.12 MB / 415 MB, free: 1.84 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0145/0.4359, allocations: 228.8 kB / 415.3 MB, free: 1.805 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01001/0.4459, allocations: 2.284 MB / 417.5 MB, free: 80 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02823/0.4742, allocations: 6.678 MB / 424.2 MB, free: 9.383 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003941/0.4781, allocations: 0.8308 MB / 425.1 MB, free: 8.551 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.07027/0.5484, allocations: 49.18 MB / 474.2 MB, free: 7.324 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008167/0.5566, allocations: 4.991 MB / 479.2 MB, free: 2.289 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003517/0.5602, allocations: 1.557 MB / 480.8 MB, free: 0.7266 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003848/0.5641, allocations: 2.259 MB / 483 MB, free: 14.46 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009692/0.5651, allocations: 236 kB / 483.3 MB, free: 14.23 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002529/0.5676, allocations: 1.092 MB / 484.4 MB, free: 13.14 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002468/0.5701, allocations: 2.389 MB / 486.7 MB, free: 10.74 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001881/0.572, allocations: 1.205 MB / 488 MB, free: 9.527 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009981/0.582, allocations: 8.068 MB / 496 MB, free: 1.441 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.187e-06/0.582, allocations: 0 / 496 MB, free: 1.441 MB / 398.1 MB Notification: Performance of FrontEnd: time 5.11e-06/0.582, allocations: 4 kB / 496 MB, free: 1.438 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003441/0.5824, allocations: 4 kB / 496 MB, free: 1.434 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: 2242 * Number of variables: 2242 Notification: Performance of Generate backend data structure: time 0.01545/0.5978, allocations: 6.438 MB / 0.4907 GB, free: 10.91 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.408e-05/0.5979, allocations: 8.031 kB / 0.4907 GB, free: 10.91 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003324/0.6012, allocations: 1.129 MB / 0.4918 GB, free: 9.762 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04866/0.6499, allocations: 9.766 MB / 0.5013 GB, free: 15.97 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01144/0.6614, allocations: 4.311 MB / 0.5055 GB, free: 11.6 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003084/0.6618, allocations: 324 kB / 0.5059 GB, free: 11.28 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002143/0.6639, allocations: 427.7 kB / 0.5063 GB, free: 10.86 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03115/0.6951, allocations: 15.76 MB / 0.5217 GB, free: 10.18 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001997/0.6953, allocations: 59.45 kB / 0.5217 GB, free: 10.12 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001077/0.6964, allocations: 207.8 kB / 0.5219 GB, free: 9.914 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00533/0.7018, allocations: 3.216 MB / 0.525 GB, free: 6.695 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2623/0.9641, allocations: 14.04 MB / 0.5388 GB, free: 139.5 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0738/1.038, allocations: 57.54 MB / 0.5949 GB, free: 96.72 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01263/1.051, allocations: 6.571 MB / 0.6014 GB, free: 89.9 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02344/1.074, allocations: 14.42 MB / 0.6154 GB, free: 75.06 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.33e-05/1.074, allocations: 68.48 kB / 0.6155 GB, free: 74.99 MB / 446.1 MB Notification: Performance of pre-optimization done (n=286): time 6.883e-06/1.074, allocations: 7.922 kB / 0.6155 GB, free: 74.98 MB / 446.1 MB Notification: Performance of matching and sorting (n=336): time 0.1431/1.217, allocations: 42.71 MB / 0.6572 GB, free: 32.12 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.234e-05/1.217, allocations: 214 kB / 0.6574 GB, free: 31.87 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008438/1.226, allocations: 5.713 MB / 0.663 GB, free: 26.17 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008965/1.227, allocations: 65.7 kB / 0.6631 GB, free: 26.1 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002625/1.229, allocations: 4.432 MB / 0.6674 GB, free: 21.67 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001683/1.231, allocations: 1.238 MB / 0.6686 GB, free: 20.45 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007586/1.232, allocations: 173.5 kB / 0.6688 GB, free: 20.28 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0004234/1.232, allocations: 0.6858 MB / 0.6694 GB, free: 19.58 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006137/1.238, allocations: 4.585 MB / 0.6739 GB, free: 14.99 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008964/1.247, allocations: 9.525 MB / 0.6832 GB, free: 3.012 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009852/1.257, allocations: 6.464 MB / 0.6895 GB, free: 12.53 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002048/1.258, allocations: 48 kB / 0.6896 GB, free: 12.48 MB / 462.1 MB Notification: Performance of matching and sorting (n=1148) (initialization): time 0.2903/1.548, allocations: 18.9 MB / 0.708 GB, free: 137.3 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001349/1.548, allocations: 83.67 kB / 0.7081 GB, free: 137.3 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002597/1.548, allocations: 177.2 kB / 0.7083 GB, free: 137.3 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0216/1.57, allocations: 5.832 MB / 0.714 GB, free: 137.3 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007073/1.577, allocations: 2.055 MB / 0.716 GB, free: 137.3 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03456/1.612, allocations: 24.94 MB / 0.7403 GB, free: 126 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01052/1.622, allocations: 0.547 MB / 0.7409 GB, free: 125.7 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001768/1.624, allocations: 0.5019 MB / 0.7414 GB, free: 125.7 MB / 462.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 (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.006908/1.631, allocations: 3.095 MB / 0.7444 GB, free: 124.1 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001248/1.632, allocations: 0.4951 MB / 0.7449 GB, free: 124.1 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02866/1.661, allocations: 12.6 MB / 0.7572 GB, free: 113.4 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.202e-05/1.661, allocations: 53.88 kB / 0.7572 GB, free: 113.4 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.631e-05/1.661, allocations: 8 kB / 0.7572 GB, free: 113.4 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.378e-05/1.661, allocations: 23.5 kB / 0.7573 GB, free: 113.3 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04889/1.71, allocations: 24.32 MB / 0.781 GB, free: 88.73 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.544e-05/1.71, allocations: 4 kB / 0.781 GB, free: 88.73 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002986/1.713, allocations: 0.5744 MB / 0.7816 GB, free: 88.15 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01805/1.731, allocations: 4.839 MB / 0.7863 GB, free: 83.34 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007511/1.732, allocations: 56 kB / 0.7863 GB, free: 83.28 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02225/1.754, allocations: 20.22 MB / 0.8061 GB, free: 62.9 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.392e-06/1.754, allocations: 4 kB / 0.8061 GB, free: 62.89 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03465/1.789, allocations: 17.7 MB / 0.8234 GB, free: 45.22 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001905/1.791, allocations: 0.5638 MB / 0.8239 GB, free: 44.67 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002099/1.793, allocations: 60.62 kB / 0.824 GB, free: 44.61 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004219/1.797, allocations: 256.3 kB / 0.8242 GB, free: 44.36 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001112/1.798, allocations: 185.7 kB / 0.8244 GB, free: 44.18 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000691/1.799, allocations: 89 kB / 0.8245 GB, free: 44.09 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00627/1.805, allocations: 3.588 MB / 0.828 GB, free: 40.53 MB / 462.1 MB Notification: Performance of sort global known variables: time 6.71e-07/1.805, allocations: 0 / 0.828 GB, free: 40.53 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.008875/1.814, allocations: 1.726 MB / 0.8297 GB, free: 38.81 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 (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.03448/1.849, allocations: 19.42 MB / 0.8487 GB, free: 19.13 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01519/1.864, allocations: 10.54 MB / 0.8589 GB, free: 8.594 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.176e-05/1.864, allocations: 384 / 0.859 GB, free: 8.594 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005643/1.87, allocations: 4.008 MB / 0.8629 GB, free: 4.57 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003744/1.873, allocations: 0.5731 MB / 0.8634 GB, free: 4.008 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2674/2.141, allocations: 149.5 MB / 1.009 GB, free: 23.78 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008758/2.15, allocations: 4.756 MB / 1.014 GB, free: 22.8 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.007758/2.157, allocations: 2.984 MB / 1.017 GB, free: 22.57 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004924/2.162, allocations: 2.926 MB / 1.02 GB, free: 20.17 MB / 478.1 MB Notification: Performance of SimCode: time 8.72e-07/2.162, allocations: 0 / 1.02 GB, free: 20.17 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4122/2.575, allocations: 134.8 MB / 1.152 GB, free: 72.73 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001514/2.575, allocations: 198.5 kB / 1.152 GB, free: 72.5 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.833/7.407, allocations: 4.062 kB / 1.152 GB, free: 72.49 MB / 478.1 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