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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009067/0.0009066, allocations: 97.53 kB / 16.96 MB, free: 6.113 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001124/0.001124, allocations: 175.2 kB / 17.83 MB, free: 5.73 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.586/1.586, allocations: 205.4 MB / 224 MB, free: 13.07 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004661/0.0004661, allocations: 16 kB / 280.9 MB, free: 3.617 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1107/0.1112, allocations: 47.58 MB / 328.5 MB, free: 3.965 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.3114/0.4226, allocations: 73.89 MB / 402.3 MB, free: 8.508 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.04407/0.4668, allocations: 15.87 MB / 418.2 MB, free: 6.191 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02159/0.4884, allocations: 369.5 kB / 418.6 MB, free: 6.129 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01545/0.504, allocations: 3.625 MB / 422.2 MB, free: 3.707 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03495/0.539, allocations: 10.78 MB / 433 MB, free: 13.5 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006266/0.5453, allocations: 1.222 MB / 434.2 MB, free: 12.74 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.08577/0.6311, allocations: 66.43 MB / 0.4889 GB, free: 10.32 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01513/0.6462, allocations: 10.25 MB / 0.4989 GB, free: 15.99 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006032/0.6523, allocations: 2.421 MB / 0.5013 GB, free: 13.56 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006599/0.659, allocations: 3.657 MB / 0.5048 GB, free: 9.895 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00148/0.6605, allocations: 248 kB / 0.5051 GB, free: 9.652 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003785/0.6643, allocations: 1.303 MB / 0.5063 GB, free: 8.348 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004616/0.6689, allocations: 3.214 MB / 0.5095 GB, free: 5.125 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004037/0.673, allocations: 1.462 MB / 0.5109 GB, free: 3.652 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01487/0.6879, allocations: 11.02 MB / 0.5217 GB, free: 8.605 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.586e-06/0.6879, allocations: 0 / 0.5217 GB, free: 8.605 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.6879, allocations: 0 / 0.5217 GB, free: 8.605 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0005521/0.6885, allocations: 0 / 0.5217 GB, free: 8.605 MB / 430.1 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.0229/0.7114, allocations: 7.894 MB / 0.5294 GB, free: 0.6289 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.483e-05/0.7115, allocations: 8.031 kB / 0.5294 GB, free: 0.6211 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.3649/1.076, allocations: 1.136 MB / 0.5305 GB, free: 153.1 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2438/1.32, allocations: 23.87 MB / 0.5538 GB, free: 141.5 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01744/1.338, allocations: 8.361 MB / 0.562 GB, free: 133.3 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003488/1.338, allocations: 432.2 kB / 0.5624 GB, free: 132.9 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002378/1.34, allocations: 0.589 MB / 0.563 GB, free: 132.4 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03011/1.371, allocations: 16.88 MB / 0.5794 GB, free: 114.7 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002791/1.371, allocations: 79.27 kB / 0.5795 GB, free: 114.6 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009543/1.372, allocations: 269.2 kB / 0.5798 GB, free: 114.4 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003595/1.376, allocations: 2.656 MB / 0.5824 GB, free: 111.7 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02708/1.403, allocations: 14.39 MB / 0.5964 GB, free: 97.33 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07114/1.474, allocations: 64.07 MB / 0.659 GB, free: 32.02 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01931/1.493, allocations: 8.676 MB / 0.6675 GB, free: 23.19 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004742/1.498, allocations: 4.905 MB / 0.6723 GB, free: 18.28 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02126/1.519, allocations: 18.12 MB / 0.6899 GB, free: 72 kB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.2337/1.753, allocations: 68.56 kB / 0.69 GB, free: 141.9 MB / 430.1 MB Notification: Performance of pre-optimization done (n=281): time 2.565e-05/1.753, allocations: 0 / 0.69 GB, free: 141.9 MB / 430.1 MB Notification: Performance of matching and sorting (n=374): time 0.2249/1.978, allocations: 74.08 MB / 0.7624 GB, free: 90.42 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001216/1.978, allocations: 380.6 kB / 0.7627 GB, free: 89.97 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008798/1.987, allocations: 6.457 MB / 0.769 GB, free: 83.52 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001048/1.988, allocations: 86.33 kB / 0.7691 GB, free: 83.43 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002575/1.991, allocations: 4.856 MB / 0.7738 GB, free: 78.58 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001896/1.993, allocations: 1.365 MB / 0.7752 GB, free: 77.23 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005845/1.993, allocations: 180 kB / 0.7754 GB, free: 77.05 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0003654/1.993, allocations: 0.686 MB / 0.776 GB, free: 76.36 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006408/2, allocations: 5.624 MB / 0.7815 GB, free: 70.73 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008858/2.009, allocations: 10.58 MB / 0.7918 GB, free: 57.71 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009181/2.018, allocations: 7.525 MB / 0.7992 GB, free: 50.18 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.33e-05/2.018, allocations: 56 kB / 0.7993 GB, free: 50.12 MB / 430.1 MB Notification: Performance of matching and sorting (n=1157) (initialization): time 0.04027/2.058, allocations: 21.9 MB / 0.8206 GB, free: 28.17 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.26e-05/2.059, allocations: 80 kB / 0.8207 GB, free: 28.09 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001472/2.059, allocations: 172 kB / 0.8209 GB, free: 27.92 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01776/2.076, allocations: 6.925 MB / 0.8276 GB, free: 20.98 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006826/2.083, allocations: 2.066 MB / 0.8297 GB, free: 18.91 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2741/2.357, allocations: 34.01 MB / 0.8629 GB, free: 113.4 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009181/2.367, allocations: 0.7224 MB / 0.8636 GB, free: 113.3 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001431/2.368, allocations: 0.5088 MB / 0.8641 GB, free: 113.2 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 779 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1015): * Single equations (assignments): 1008 * 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%) 68,(2,100.0%) 18} * Non-linear torn systems: 1 {2 24} Notification: Performance of prepare postOptimizeDAE: time 0.006173/2.374, allocations: 3.432 MB / 0.8674 GB, free: 111.8 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001324/2.376, allocations: 0.5989 MB / 0.868 GB, free: 111.8 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02687/2.403, allocations: 16.09 MB / 0.8837 GB, free: 106.4 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.072e-05/2.403, allocations: 50.28 kB / 0.8838 GB, free: 106.4 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.229e-05/2.403, allocations: 15.62 kB / 0.8838 GB, free: 106.4 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.303e-05/2.403, allocations: 24.39 kB / 0.8838 GB, free: 106.4 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04701/2.45, allocations: 31.44 MB / 0.9145 GB, free: 82.25 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.509e-05/2.45, allocations: 0 / 0.9145 GB, free: 82.25 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002936/2.453, allocations: 0.6045 MB / 0.9151 GB, free: 81.65 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01627/2.469, allocations: 6.571 MB / 0.9215 GB, free: 75.14 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000771/2.47, allocations: 63.94 kB / 0.9216 GB, free: 75.08 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03595/2.506, allocations: 32.28 MB / 0.9531 GB, free: 42.66 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.089e-06/2.506, allocations: 7.062 kB / 0.9531 GB, free: 42.66 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03325/2.539, allocations: 23.52 MB / 0.9761 GB, free: 19.3 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003921/2.543, allocations: 1.637 MB / 0.9777 GB, free: 17.64 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001652/2.545, allocations: 63.95 kB / 0.9777 GB, free: 17.57 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004171/2.549, allocations: 434.7 kB / 0.9782 GB, free: 17.15 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009281/2.55, allocations: 242.7 kB / 0.9784 GB, free: 16.91 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003307/2.55, allocations: 105.2 kB / 0.9785 GB, free: 16.82 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.006102/2.556, allocations: 4.12 MB / 0.9825 GB, free: 12.71 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.61e-07/2.556, allocations: 0 / 0.9825 GB, free: 12.71 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.01073/2.567, allocations: 2.192 MB / 0.9847 GB, free: 10.52 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 2 (revolute1.phi,revolute1.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 (243): * Single equations (assignments): 236 * 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.2639/2.831, allocations: 24.28 MB / 1.008 GB, free: 133.6 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.02526/2.856, allocations: 14.21 MB / 1.022 GB, free: 131.2 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 9.899e-06/2.856, allocations: 0 / 1.022 GB, free: 131.2 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.009302/2.866, allocations: 6.541 MB / 1.029 GB, free: 128.3 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005729/2.872, allocations: 0.8977 MB / 1.03 GB, free: 128 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1342/3.006, allocations: 81.82 MB / 1.109 GB, free: 58.48 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006419/3.012, allocations: 5.291 MB / 1.115 GB, free: 53.15 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.007385/3.02, allocations: 3.025 MB / 1.118 GB, free: 50.12 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005704/3.025, allocations: 3.405 MB / 1.121 GB, free: 46.71 MB / 446.1 MB Notification: Performance of SimCode: time 1.773e-06/3.025, allocations: 4 kB / 1.121 GB, free: 46.71 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4817/3.507, allocations: 172.9 MB / 1.29 GB, free: 57.91 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001824/3.507, allocations: 231.1 kB / 1.29 GB, free: 57.67 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.452/9.96, allocations: 4 kB / 1.29 GB, free: 57.67 MB / 462.1 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) Environment - environmentSimulation: 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