Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.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.PlanarFourbar,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.0008701/0.0008703, allocations: 92.92 kB / 17 MB, free: 6.395 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009187/0.0009188, allocations: 194.5 kB / 17.91 MB, free: 5.922 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.406/1.406, allocations: 227.4 MB / 246 MB, free: 10.25 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002609/0.0002613, allocations: 4 kB / 306.8 MB, free: 1.223 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1132/0.1135, allocations: 51.49 MB / 358.3 MB, free: 13.74 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.2972/0.4107, allocations: 73.56 MB / 431.9 MB, free: 2.055 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.04261/0.4534, allocations: 15.8 MB / 447.7 MB, free: 2.211 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02051/0.4739, allocations: 371 kB / 448 MB, free: 1.848 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0131/0.4871, allocations: 3.616 MB / 451.6 MB, free: 14.21 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03075/0.5179, allocations: 10.75 MB / 462.4 MB, free: 3.43 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006164/0.524, allocations: 1.223 MB / 463.6 MB, free: 2.207 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.4077/0.9317, allocations: 121.1 MB / 0.571 GB, free: 73.48 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01287/0.9447, allocations: 10.21 MB / 0.5809 GB, free: 66.31 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004649/0.9494, allocations: 2.402 MB / 0.5833 GB, free: 64.68 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005233/0.9546, allocations: 3.638 MB / 0.5868 GB, free: 62.06 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00143/0.9561, allocations: 244 kB / 0.5871 GB, free: 61.82 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003253/0.9593, allocations: 1.303 MB / 0.5883 GB, free: 60.77 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003314/0.9627, allocations: 3.193 MB / 0.5914 GB, free: 58.4 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00207/0.9648, allocations: 1.454 MB / 0.5929 GB, free: 57.89 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009286/0.9741, allocations: 10.97 MB / 0.6036 GB, free: 48.37 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.865e-06/0.9741, allocations: 3.984 kB / 0.6036 GB, free: 48.37 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.285e-06/0.9741, allocations: 0 / 0.6036 GB, free: 48.37 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0003721/0.9745, allocations: 4 kB / 0.6036 GB, free: 48.36 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2348 * Number of variables: 2348 Notification: Performance of Generate backend data structure: time 0.01878/0.9933, allocations: 7.887 MB / 0.6113 GB, free: 41.14 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.244e-05/0.9933, allocations: 8.031 kB / 0.6113 GB, free: 41.14 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003616/0.9969, allocations: 1.137 MB / 0.6124 GB, free: 40.46 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2407/1.238, allocations: 23.85 MB / 0.6357 GB, free: 17.38 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01759/1.255, allocations: 7.29 MB / 0.6428 GB, free: 12.14 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004557/1.256, allocations: 441.8 kB / 0.6432 GB, free: 11.9 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002456/1.258, allocations: 0.5826 MB / 0.6438 GB, free: 11.52 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03273/1.291, allocations: 16.86 MB / 0.6603 GB, free: 14.55 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003334/1.291, allocations: 78.86 kB / 0.6604 GB, free: 14.5 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00138/1.293, allocations: 264.2 kB / 0.6606 GB, free: 14.43 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004356/1.297, allocations: 2.665 MB / 0.6632 GB, free: 12.23 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03157/1.329, allocations: 14.39 MB / 0.6773 GB, free: 1.234 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5213/1.85, allocations: 63.92 MB / 0.7397 GB, free: 162.7 MB / 0.4982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02469/1.875, allocations: 8.665 MB / 0.7481 GB, free: 162 MB / 0.4982 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006148/1.881, allocations: 4.912 MB / 0.7529 GB, free: 162 MB / 0.4982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.024/1.905, allocations: 18.1 MB / 0.7706 GB, free: 153.8 MB / 0.4982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.548e-05/1.905, allocations: 67.5 kB / 0.7707 GB, free: 153.8 MB / 0.4982 GB Notification: Performance of pre-optimization done (n=281): time 6.201e-06/1.905, allocations: 0 / 0.7707 GB, free: 153.8 MB / 0.4982 GB Notification: Performance of matching and sorting (n=374): time 0.2196/2.125, allocations: 73.86 MB / 0.8428 GB, free: 86.75 MB / 0.4982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001824/2.125, allocations: 376.6 kB / 0.8432 GB, free: 86.3 MB / 0.4982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009344/2.134, allocations: 6.385 MB / 0.8494 GB, free: 79.93 MB / 0.4982 GB Notification: Performance of collectPreVariables (initialization): time 0.001174/2.136, allocations: 77.7 kB / 0.8495 GB, free: 79.84 MB / 0.4982 GB Notification: Performance of collectInitialEqns (initialization): time 0.002769/2.138, allocations: 4.843 MB / 0.8542 GB, free: 75.02 MB / 0.4982 GB Notification: Performance of collectInitialBindings (initialization): time 0.002227/2.141, allocations: 1.37 MB / 0.8555 GB, free: 73.66 MB / 0.4982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006372/2.141, allocations: 177.2 kB / 0.8557 GB, free: 73.49 MB / 0.4982 GB Notification: Performance of setup shared object (initialization): time 0.0003751/2.142, allocations: 0.6866 MB / 0.8564 GB, free: 72.79 MB / 0.4982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00687/2.148, allocations: 5.624 MB / 0.8619 GB, free: 67.16 MB / 0.4982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01191/2.16, allocations: 10.57 MB / 0.8722 GB, free: 54.23 MB / 0.4982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01045/2.171, allocations: 7.545 MB / 0.8796 GB, free: 46.81 MB / 0.4982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001089/2.171, allocations: 48 kB / 0.8796 GB, free: 46.77 MB / 0.4982 GB Notification: Performance of matching and sorting (n=1157) (initialization): time 0.04259/2.214, allocations: 21.9 MB / 0.901 GB, free: 24.91 MB / 0.4982 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002108/2.214, allocations: 86.8 kB / 0.9011 GB, free: 24.83 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002463/2.214, allocations: 171.8 kB / 0.9013 GB, free: 24.66 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01814/2.232, allocations: 6.923 MB / 0.908 GB, free: 17.73 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006805/2.239, allocations: 2.07 MB / 0.91 GB, free: 15.65 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2713/2.51, allocations: 34.01 MB / 0.9432 GB, free: 170.8 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008315/2.519, allocations: 0.7118 MB / 0.9439 GB, free: 170.6 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002023/2.521, allocations: 0.5148 MB / 0.9444 GB, free: 170.6 MB / 0.4982 GB 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.007037/2.528, allocations: 3.428 MB / 0.9478 GB, free: 169.3 MB / 0.4982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001581/2.529, allocations: 0.5837 MB / 0.9484 GB, free: 169.3 MB / 0.4982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02884/2.558, allocations: 16.09 MB / 0.9641 GB, free: 163.9 MB / 0.4982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.564e-05/2.558, allocations: 49.88 kB / 0.9641 GB, free: 163.9 MB / 0.4982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.556e-05/2.558, allocations: 22.8 kB / 0.9641 GB, free: 163.9 MB / 0.4982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.703e-05/2.559, allocations: 18.86 kB / 0.9642 GB, free: 163.9 MB / 0.4982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04912/2.608, allocations: 31.41 MB / 0.9948 GB, free: 141.9 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.341e-05/2.608, allocations: 4 kB / 0.9948 GB, free: 141.9 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003099/2.611, allocations: 0.6044 MB / 0.9954 GB, free: 141.3 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01685/2.628, allocations: 6.565 MB / 1.002 GB, free: 134.8 MB / 0.4982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009437/2.629, allocations: 60.78 kB / 1.002 GB, free: 134.8 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03677/2.666, allocations: 32.28 MB / 1.033 GB, free: 102.3 MB / 0.4982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.589e-06/2.666, allocations: 4.656 kB / 1.033 GB, free: 102.3 MB / 0.4982 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03485/2.7, allocations: 23.53 MB / 1.056 GB, free: 78.88 MB / 0.4982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001906/2.702, allocations: 0.6301 MB / 1.057 GB, free: 78.23 MB / 0.4982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00208/2.704, allocations: 64.92 kB / 1.057 GB, free: 78.16 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004058/2.709, allocations: 431.3 kB / 1.057 GB, free: 77.75 MB / 0.4982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009606/2.71, allocations: 241.7 kB / 1.058 GB, free: 77.51 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003339/2.71, allocations: 100.6 kB / 1.058 GB, free: 77.41 MB / 0.4982 GB Notification: Performance of sorting global known variables: time 0.006657/2.717, allocations: 4.078 MB / 1.062 GB, free: 73.35 MB / 0.4982 GB Notification: Performance of sort global known variables: time 2.4e-07/2.717, allocations: 2.188 kB / 1.062 GB, free: 73.35 MB / 0.4982 GB Notification: Performance of remove unused functions: time 0.01006/2.727, allocations: 2.205 MB / 1.064 GB, free: 71.16 MB / 0.4982 GB 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.03534/2.762, allocations: 24.29 MB / 1.088 GB, free: 46.82 MB / 0.4982 GB Notification: Performance of simCode: created initialization part: time 0.02024/2.782, allocations: 14.2 MB / 1.102 GB, free: 32.64 MB / 0.4982 GB Notification: Performance of simCode: created event and clocks part: time 1.153e-05/2.782, allocations: 7.594 kB / 1.102 GB, free: 32.63 MB / 0.4982 GB Notification: Performance of simCode: created simulation system equations: time 0.009189/2.792, allocations: 6.535 MB / 1.108 GB, free: 26.05 MB / 0.4982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005887/2.797, allocations: 0.9019 MB / 1.109 GB, free: 25.17 MB / 0.4982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.386/3.183, allocations: 81.34 MB / 1.188 GB, free: 134.2 MB / 0.4982 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0135/3.197, allocations: 5.26 MB / 1.193 GB, free: 128.9 MB / 0.4982 GB Notification: Performance of simCode: alias equations: time 0.01019/3.207, allocations: 3.035 MB / 1.196 GB, free: 125.8 MB / 0.4982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007542/3.215, allocations: 3.393 MB / 1.2 GB, free: 122.4 MB / 0.4982 GB Notification: Performance of SimCode: time 1.713e-06/3.215, allocations: 0 / 1.2 GB, free: 122.4 MB / 0.4982 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4879/3.703, allocations: 172.4 MB / 1.368 GB, free: 142.3 MB / 0.4982 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001618/3.703, allocations: 225.1 kB / 1.368 GB, free: 142.1 MB / 0.4982 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.036/9.739, allocations: 3.75 kB / 1.368 GB, free: 142.1 MB / 0.4982 GB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.mat does not exist to compare? outputFormat=mat