Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.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.Fourbar2,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,fileNamePrefix="Modelica_3_2_3_cpp_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 3.2.3+maint.om/package.mo): time 0.002142/0.002142, allocations: 179.2 kB / 8.363 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.051/2.051, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001148/0.001148, allocations: 85.94 kB / 262.1 MB, free: 13.89 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.18e-05/2.177e-05, allocations: 4 kB / 314.9 MB, free: 9.059 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3454/0.3455, allocations: 47.56 MB / 362.4 MB, free: 45.7 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1673/0.5128, allocations: 99.02 MB / 461.5 MB, free: 3.152 MB / 347.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002911/0.5132, allocations: 83.95 kB / 461.5 MB, free: 3.07 MB / 347.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.7759/1.289, allocations: 124.5 MB / 0.5723 GB, free: 69.12 MB / 395.1 MB Notification: Performance of FrontEnd: time 1.934e-06/1.289, allocations: 0 / 0.5723 GB, free: 69.12 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0003862/1.29, allocations: 119.6 kB / 0.5724 GB, free: 69.01 MB / 395.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.02565/1.315, allocations: 6.329 MB / 0.5786 GB, free: 62.62 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.125e-05/1.315, allocations: 8.031 kB / 0.5786 GB, free: 62.61 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05909/1.374, allocations: 8.315 MB / 0.5867 GB, free: 54.28 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02739/1.402, allocations: 7.281 MB / 0.5939 GB, free: 47 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003961/1.402, allocations: 192 kB / 0.594 GB, free: 46.81 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00361/1.406, allocations: 351.9 kB / 0.5944 GB, free: 46.47 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02438/1.43, allocations: 10.13 MB / 0.6043 GB, free: 36.34 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03729/1.468, allocations: 14.07 MB / 0.618 GB, free: 21.11 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000428/1.468, allocations: 75.25 kB / 0.6181 GB, free: 21.04 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00337/1.472, allocations: 36 kB / 0.6181 GB, free: 21 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003497/1.475, allocations: 1.626 MB / 0.6197 GB, free: 19.38 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4168/1.892, allocations: 61.5 MB / 0.6798 GB, free: 52.18 MB / 411.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01121/1.903, allocations: 5.551 MB / 0.6852 GB, free: 50.95 MB / 411.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007236/1.91, allocations: 3.373 MB / 0.6885 GB, free: 50.91 MB / 411.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03791/1.948, allocations: 14.01 MB / 0.7021 GB, free: 47.33 MB / 411.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.147e-05/1.949, allocations: 66.38 kB / 0.7022 GB, free: 47.27 MB / 411.1 MB Notification: Performance of pre-optimization done (n=286): time 7.624e-06/1.949, allocations: 0 / 0.7022 GB, free: 47.27 MB / 411.1 MB Notification: Performance of matching and sorting (n=336): time 0.1247/2.073, allocations: 30.92 MB / 0.7324 GB, free: 36.76 MB / 411.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.188e-05/2.073, allocations: 212.4 kB / 0.7326 GB, free: 36.54 MB / 411.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009442/2.083, allocations: 4.3 MB / 0.7368 GB, free: 35.01 MB / 411.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008971/2.084, allocations: 25.7 kB / 0.7368 GB, free: 34.98 MB / 411.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003661/2.088, allocations: 4.448 MB / 0.7412 GB, free: 31.44 MB / 411.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002068/2.09, allocations: 1.213 MB / 0.7424 GB, free: 30.54 MB / 411.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001261/2.091, allocations: 3.406 kB / 0.7424 GB, free: 30.54 MB / 411.1 MB Notification: Performance of setup shared object (initialization): time 0.0007394/2.092, allocations: 0.7045 MB / 0.7431 GB, free: 30.06 MB / 411.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009599/2.101, allocations: 4.37 MB / 0.7473 GB, free: 26.43 MB / 411.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0132/2.115, allocations: 9.571 MB / 0.7567 GB, free: 15.07 MB / 411.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01354/2.128, allocations: 6.352 MB / 0.7629 GB, free: 9.969 MB / 411.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002248/2.128, allocations: 60 kB / 0.7629 GB, free: 9.91 MB / 411.1 MB Notification: Performance of matching and sorting (n=1199) (initialization): time 0.07394/2.202, allocations: 17.73 MB / 0.7802 GB, free: 12.7 MB / 427.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001748/2.203, allocations: 84 kB / 0.7803 GB, free: 12.62 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003677/2.203, allocations: 184 kB / 0.7805 GB, free: 12.44 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04146/2.244, allocations: 5.637 MB / 0.786 GB, free: 9.031 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01486/2.259, allocations: 2.139 MB / 0.7881 GB, free: 7.023 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0543/2.314, allocations: 21.64 MB / 0.8092 GB, free: 1.16 MB / 443.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01164/2.325, allocations: 391.3 kB / 0.8096 GB, free: 0.7773 MB / 443.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002635/2.328, allocations: 0.5273 MB / 0.8101 GB, free: 256 kB / 443.1 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.003886/2.332, allocations: 0.5677 MB / 0.8107 GB, free: 15.68 MB / 459.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.05868/2.391, allocations: 11.86 MB / 0.8222 GB, free: 3.762 MB / 459.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002234/2.393, allocations: 485.7 kB / 0.8227 GB, free: 3.281 MB / 459.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3719/2.765, allocations: 12.02 MB / 0.8344 GB, free: 121.3 MB / 459.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001834/2.765, allocations: 55.98 kB / 0.8345 GB, free: 121.3 MB / 459.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.486e-05/2.765, allocations: 8.625 kB / 0.8345 GB, free: 121.3 MB / 459.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.046e-05/2.765, allocations: 13.27 kB / 0.8345 GB, free: 121.3 MB / 459.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08433/2.85, allocations: 22.46 MB / 0.8565 GB, free: 118.6 MB / 459.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.899e-05/2.85, allocations: 7.312 kB / 0.8565 GB, free: 118.6 MB / 459.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005745/2.856, allocations: 0.566 MB / 0.857 GB, free: 118.6 MB / 459.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03499/2.891, allocations: 4.641 MB / 0.8615 GB, free: 118.5 MB / 459.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000915/2.892, allocations: 11.34 kB / 0.8616 GB, free: 118.5 MB / 459.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03608/2.928, allocations: 17.34 MB / 0.8785 GB, free: 110 MB / 459.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.644e-05/2.928, allocations: 11.8 kB / 0.8785 GB, free: 110 MB / 459.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05733/2.985, allocations: 16.97 MB / 0.8951 GB, free: 103.5 MB / 459.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00476/2.99, allocations: 1.178 MB / 0.8962 GB, free: 103.2 MB / 459.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002031/2.992, allocations: 11.56 kB / 0.8962 GB, free: 103.2 MB / 459.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006184/2.998, allocations: 204.8 kB / 0.8964 GB, free: 103.2 MB / 459.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001421/3, allocations: 190.7 kB / 0.8966 GB, free: 103.1 MB / 459.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005365/3, allocations: 84.97 kB / 0.8967 GB, free: 103.1 MB / 459.1 MB Notification: Performance of sorting global known variables: time 0.007493/3.008, allocations: 2.868 MB / 0.8995 GB, free: 102.1 MB / 459.1 MB Notification: Performance of sort global known variables: time 1.713e-06/3.008, allocations: 0.8438 kB / 0.8995 GB, free: 102.1 MB / 459.1 MB Notification: Performance of remove unused functions: time 0.01178/3.02, allocations: 1.491 MB / 0.9009 GB, free: 101.4 MB / 459.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 () * 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.05739/3.077, allocations: 18.68 MB / 0.9192 GB, free: 85.77 MB / 459.1 MB Notification: Performance of simCode: created initialization part: time 0.02116/3.098, allocations: 10.01 MB / 0.929 GB, free: 76.95 MB / 459.1 MB Notification: Performance of simCode: created event and clocks part: time 1.167e-05/3.098, allocations: 0 / 0.929 GB, free: 76.95 MB / 459.1 MB Notification: Performance of simCode: created simulation system equations: time 0.008428/3.107, allocations: 3.828 MB / 0.9327 GB, free: 73.14 MB / 459.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004909/3.112, allocations: 466.3 kB / 0.9332 GB, free: 72.7 MB / 459.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04799/3.16, allocations: 15.9 MB / 0.9487 GB, free: 56.75 MB / 459.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01074/3.171, allocations: 4.758 MB / 0.9533 GB, free: 52 MB / 459.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007818/3.179, allocations: 2.968 MB / 0.9562 GB, free: 49.04 MB / 459.1 MB Notification: Performance of SimCode: time 3.246e-06/3.179, allocations: 0 / 0.9562 GB, free: 49.04 MB / 459.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.576/8.754, allocations: 177.7 MB / 1.13 GB, free: 17.1 MB / 459.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat does not exist to compare? outputFormat=mat