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.001862/0.001862, allocations: 196.1 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.532/1.532, allocations: 225.4 MB / 240.1 MB, free: 15.08 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009653/0.0009653, allocations: 88.7 kB / 292.1 MB, free: 6.004 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.433e-05/3.453e-05, allocations: 4 kB / 350.6 MB, free: 2.449 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1281/0.1282, allocations: 51.49 MB / 402.1 MB, free: 14.91 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4708/0.5991, allocations: 102 MB / 0.4923 GB, free: 3.711 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003997/0.5995, allocations: 92.62 kB / 0.4924 GB, free: 3.664 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6831/1.283, allocations: 130.8 MB / 0.6202 GB, free: 76.86 MB / 442.7 MB Notification: Performance of FrontEnd: time 4.429e-06/1.283, allocations: 1 kB / 0.6202 GB, free: 76.86 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0008635/1.284, allocations: 123.3 kB / 0.6203 GB, free: 76.85 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.02769/1.311, allocations: 6.347 MB / 0.6265 GB, free: 74.41 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.329e-05/1.311, allocations: 9.031 kB / 0.6265 GB, free: 74.41 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007675/1.319, allocations: 1.311 MB / 0.6278 GB, free: 74.3 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03404/1.353, allocations: 8.32 MB / 0.6359 GB, free: 73.86 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01903/1.372, allocations: 6.337 MB / 0.6421 GB, free: 72.86 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006533/1.373, allocations: 448.3 kB / 0.6425 GB, free: 72.85 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004435/1.377, allocations: 0.5885 MB / 0.6431 GB, free: 72.84 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0417/1.419, allocations: 15.6 MB / 0.6583 GB, free: 66.22 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005972/1.42, allocations: 79.28 kB / 0.6584 GB, free: 66.18 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004411/1.424, allocations: 281.7 kB / 0.6587 GB, free: 66.03 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0028/1.427, allocations: 1.622 MB / 0.6603 GB, free: 65.73 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02911/1.456, allocations: 13.77 MB / 0.6737 GB, free: 60.95 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07971/1.536, allocations: 64.05 MB / 0.7363 GB, free: 12.89 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01423/1.55, allocations: 6.385 MB / 0.7425 GB, free: 6.273 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005131/1.555, allocations: 3.469 MB / 0.7459 GB, free: 2.793 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3443/1.9, allocations: 14.28 MB / 0.7598 GB, free: 84.54 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.463e-05/1.9, allocations: 61.98 kB / 0.7599 GB, free: 84.49 MB / 458.7 MB Notification: Performance of pre-optimization done (n=286): time 8.195e-06/1.9, allocations: 3.906 kB / 0.7599 GB, free: 84.49 MB / 458.7 MB Notification: Performance of matching and sorting (n=336): time 0.0894/1.989, allocations: 29.56 MB / 0.7888 GB, free: 81.14 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001078/1.989, allocations: 215.4 kB / 0.789 GB, free: 80.92 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01151/2.001, allocations: 4.775 MB / 0.7936 GB, free: 80.4 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008818/2.002, allocations: 70.77 kB / 0.7937 GB, free: 80.37 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003339/2.005, allocations: 4.434 MB / 0.798 GB, free: 77.01 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002098/2.007, allocations: 1.244 MB / 0.7992 GB, free: 76.1 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001043/2.008, allocations: 175.8 kB / 0.7994 GB, free: 75.96 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0006291/2.009, allocations: 0.6819 MB / 0.8001 GB, free: 75.5 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006129/2.015, allocations: 4.461 MB / 0.8044 GB, free: 73.85 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009003/2.024, allocations: 9.423 MB / 0.8136 GB, free: 65.58 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009071/2.033, allocations: 6.402 MB / 0.8199 GB, free: 63.5 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001771/2.033, allocations: 47.12 kB / 0.8199 GB, free: 63.5 MB / 458.7 MB Notification: Performance of matching and sorting (n=1151) (initialization): time 0.04314/2.077, allocations: 18.54 MB / 0.838 GB, free: 57.75 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000133/2.077, allocations: 78.41 kB / 0.8381 GB, free: 57.75 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002358/2.077, allocations: 174.1 kB / 0.8383 GB, free: 57.75 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02075/2.098, allocations: 5.633 MB / 0.8438 GB, free: 56.89 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007637/2.105, allocations: 2.048 MB / 0.8458 GB, free: 56.65 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02701/2.133, allocations: 23.62 MB / 0.8688 GB, free: 39.48 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009887/2.142, allocations: 0.5333 MB / 0.8694 GB, free: 39.04 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002465/2.145, allocations: 0.509 MB / 0.8699 GB, free: 38.55 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 795 * 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 (1060): * Single equations (assignments): 1052 * 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.003262/2.148, allocations: 0.7546 MB / 0.8706 GB, free: 37.79 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001558/2.15, allocations: 0.5013 MB / 0.8711 GB, free: 37.29 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02971/2.18, allocations: 12.26 MB / 0.8831 GB, free: 28.22 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001011/2.18, allocations: 58.34 kB / 0.8831 GB, free: 28.17 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.354e-05/2.18, allocations: 8 kB / 0.8831 GB, free: 28.16 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.831e-05/2.18, allocations: 18.67 kB / 0.8831 GB, free: 28.16 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0499/2.23, allocations: 23.85 MB / 0.9064 GB, free: 4.805 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.244e-05/2.23, allocations: 9.969 kB / 0.9064 GB, free: 4.797 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003148/2.233, allocations: 0.5676 MB / 0.907 GB, free: 4.23 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0177/2.251, allocations: 4.638 MB / 0.9115 GB, free: 15.58 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009236/2.252, allocations: 61.88 kB / 0.9116 GB, free: 15.52 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3415/2.593, allocations: 18.92 MB / 0.9301 GB, free: 89.17 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.033e-05/2.593, allocations: 10.38 kB / 0.9301 GB, free: 89.17 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03494/2.628, allocations: 17.26 MB / 0.9469 GB, free: 87.43 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002708/2.631, allocations: 0.5365 MB / 0.9474 GB, free: 87.3 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002596/2.634, allocations: 56.45 kB / 0.9475 GB, free: 87.27 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004952/2.639, allocations: 246.8 kB / 0.9477 GB, free: 87.23 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001283/2.64, allocations: 193 kB / 0.9479 GB, free: 87.2 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003936/2.64, allocations: 81.73 kB / 0.948 GB, free: 87.19 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.008793/2.649, allocations: 3.307 MB / 0.9512 GB, free: 86.07 MB / 474.7 MB Notification: Performance of sort global known variables: time 8.61e-07/2.649, allocations: 0 / 0.9512 GB, free: 86.07 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01282/2.662, allocations: 1.713 MB / 0.9529 GB, free: 85.89 MB / 474.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.03819/2.7, allocations: 18.98 MB / 0.9714 GB, free: 77.82 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01948/2.72, allocations: 10.32 MB / 0.9815 GB, free: 74.36 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.372e-05/2.72, allocations: 2.344 kB / 0.9815 GB, free: 74.36 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005722/2.726, allocations: 3.9 MB / 0.9853 GB, free: 72.69 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004507/2.73, allocations: 0.5762 MB / 0.9859 GB, free: 72.44 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04066/2.771, allocations: 15.53 MB / 1.001 GB, free: 66.84 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008468/2.779, allocations: 4.756 MB / 1.006 GB, free: 65.27 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.009259/2.789, allocations: 2.983 MB / 1.009 GB, free: 65.21 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006278/2.795, allocations: 2.918 MB / 1.011 GB, free: 62.82 MB / 474.7 MB Notification: Performance of SimCode: time 2.465e-06/2.795, allocations: 0 / 1.011 GB, free: 62.82 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5153/3.31, allocations: 134.8 MB / 1.143 GB, free: 98.78 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001784/3.31, allocations: 182 kB / 1.143 GB, free: 98.55 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.689/10, allocations: 0 / 1.143 GB, free: 98.55 MB / 490.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