Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.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.Elementary.LineForceWithTwoMasses,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_LineForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_LineForceWithTwoMasses",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.001507/0.001507, allocations: 177.7 kB / 8.697 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.644/1.644, allocations: 205.3 MB / 214.4 MB, free: 1.742 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008461/0.0008461, allocations: 80.12 kB / 262.4 MB, free: 1.688 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.99e-05/2.993e-05, allocations: 4 kB / 315.6 MB, free: 22.62 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1107/0.1107, allocations: 47.58 MB / 363.2 MB, free: 6.977 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3598/0.4706, allocations: 102.7 MB / 465.9 MB, free: 8.973 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002371/0.4709, allocations: 86.2 kB / 466 MB, free: 8.93 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5942/1.065, allocations: 133.7 MB / 0.5856 GB, free: 89.62 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.364e-06/1.065, allocations: 4 kB / 0.5856 GB, free: 89.61 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004915/1.066, allocations: 134.3 kB / 0.5858 GB, free: 89.61 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2303 * Number of variables: 2303 Notification: Performance of Generate backend data structure: time 0.02343/1.089, allocations: 7.048 MB / 0.5926 GB, free: 86.41 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.765e-05/1.089, allocations: 10.34 kB / 0.5927 GB, free: 86.41 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03066/1.12, allocations: 7.567 MB / 0.6 GB, free: 83.35 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02298/1.143, allocations: 9.694 MB / 0.6095 GB, free: 74.65 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003264/1.143, allocations: 211.7 kB / 0.6097 GB, free: 74.45 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003045/1.146, allocations: 403.7 kB / 0.6101 GB, free: 74.05 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01702/1.163, allocations: 9.683 MB / 0.6196 GB, free: 64.37 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02732/1.191, allocations: 14.26 MB / 0.6335 GB, free: 48.68 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003462/1.191, allocations: 103 kB / 0.6336 GB, free: 48.57 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001465/1.193, allocations: 48 kB / 0.6336 GB, free: 48.53 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001984/1.195, allocations: 1.572 MB / 0.6352 GB, free: 46.96 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4062/1.601, allocations: 73.76 MB / 0.7072 GB, free: 55.35 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01266/1.614, allocations: 5.231 MB / 0.7123 GB, free: 54.69 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009384/1.623, allocations: 3.774 MB / 0.716 GB, free: 54.65 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004097/1.627, allocations: 2.26 MB / 0.7182 GB, free: 52.67 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001162/1.627, allocations: 66.69 kB / 0.7183 GB, free: 52.63 MB / 426.7 MB Notification: Performance of pre-optimization done (n=302): time 1.088e-05/1.627, allocations: 0 / 0.7183 GB, free: 52.63 MB / 426.7 MB Notification: Performance of matching and sorting (n=385): time 0.1648/1.792, allocations: 40.9 MB / 0.7582 GB, free: 42.98 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.657e-05/1.792, allocations: 272 kB / 0.7585 GB, free: 42.7 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009068/1.801, allocations: 4.663 MB / 0.763 GB, free: 41.07 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008738/1.802, allocations: 33.23 kB / 0.763 GB, free: 41.04 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003233/1.806, allocations: 4.783 MB / 0.7677 GB, free: 37.46 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001936/1.807, allocations: 1.37 MB / 0.7691 GB, free: 36.44 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008603/1.808, allocations: 0 / 0.7691 GB, free: 36.44 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0004893/1.809, allocations: 0.7088 MB / 0.7697 GB, free: 35.96 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004499/1.813, allocations: 3.636 MB / 0.7733 GB, free: 34.62 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006799/1.82, allocations: 8.937 MB / 0.782 GB, free: 24.78 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006858/1.827, allocations: 5.565 MB / 0.7875 GB, free: 20.41 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001274/1.827, allocations: 52 kB / 0.7875 GB, free: 20.36 MB / 426.7 MB Notification: Performance of matching and sorting (n=1247) (initialization): time 0.03573/1.863, allocations: 15.02 MB / 0.8022 GB, free: 8.359 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001369/1.863, allocations: 84.97 kB / 0.8023 GB, free: 8.277 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002849/1.863, allocations: 188 kB / 0.8024 GB, free: 8.094 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01221/1.876, allocations: 4.004 MB / 0.8063 GB, free: 5.316 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007638/1.883, allocations: 2.112 MB / 0.8084 GB, free: 3.473 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03144/1.915, allocations: 20.22 MB / 0.8282 GB, free: 2.465 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008891/1.924, allocations: 388.1 kB / 0.8285 GB, free: 2.164 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00227/1.926, allocations: 0.5378 MB / 0.8291 GB, free: 1.633 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 855 * Number of states: 0 () * Number of discrete variables: 66 (lineForceWithTwoMasses.massColor[3],lineForceWithTwoMasses.massColor[2],lineForceWithTwoMasses.massColor[1],lineForceWithTwoMasses.color_b[3],lineForceWithTwoMasses.color_b[2],lineForceWithTwoMasses.color_b[1],lineForceWithTwoMasses.color_a[3],lineForceWithTwoMasses.color_a[2],lineForceWithTwoMasses.color_a[1],rod4.color[3],rod4.color[2],rod4.color[1],rod3.color[3],rod3.color[2],rod3.color[1],bodyBox2.color[3],bodyBox2.color[2],bodyBox2.color[1],bodyBox2.body.sphereColor[3],bodyBox2.body.sphereColor[2],bodyBox2.body.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],rod2.color[3],rod2.color[2],rod2.color[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],jointUPS.cylinderColor[3],jointUPS.cylinderColor[2],jointUPS.cylinderColor[1],jointUPS.sphereColor[3],jointUPS.sphereColor[2],jointUPS.sphereColor[1],jointUPS.axisColor[3],jointUPS.axisColor[2],jointUPS.axisColor[1],rod1.color[3],rod1.color[2],rod1.color[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.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 (1127): * Single equations (assignments): 1122 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 45,(5,64.0%) 47} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002423/1.929, allocations: 0.5879 MB / 0.8296 GB, free: 1.047 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0239/1.952, allocations: 9.532 MB / 0.8389 GB, free: 8.48 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002445/1.955, allocations: 0.5399 MB / 0.8395 GB, free: 7.934 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02291/1.978, allocations: 9.373 MB / 0.8486 GB, free: 14.5 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.913e-05/1.978, allocations: 40 kB / 0.8487 GB, free: 14.46 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.688e-05/1.978, allocations: 16 kB / 0.8487 GB, free: 14.45 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.008e-05/1.978, allocations: 19.92 kB / 0.8487 GB, free: 14.43 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04269/2.021, allocations: 18.04 MB / 0.8663 GB, free: 12.27 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.806e-05/2.021, allocations: 9.938 kB / 0.8663 GB, free: 12.26 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003226/2.024, allocations: 0.5343 MB / 0.8668 GB, free: 11.73 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01243/2.037, allocations: 3.52 MB / 0.8703 GB, free: 8.195 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001102/2.038, allocations: 8 kB / 0.8703 GB, free: 8.188 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3353/2.373, allocations: 17.67 MB / 0.8875 GB, free: 144.8 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.114e-05/2.373, allocations: 6.125 kB / 0.8875 GB, free: 144.8 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02838/2.402, allocations: 14.15 MB / 0.9014 GB, free: 143.7 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00381/2.405, allocations: 1.091 MB / 0.9024 GB, free: 143.6 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001503/2.407, allocations: 9.812 kB / 0.9024 GB, free: 143.6 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003629/2.411, allocations: 164.4 kB / 0.9026 GB, free: 143.6 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008143/2.411, allocations: 244.3 kB / 0.9028 GB, free: 143.6 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002825/2.412, allocations: 93.52 kB / 0.9029 GB, free: 143.6 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.006769/2.418, allocations: 3.135 MB / 0.906 GB, free: 143.4 MB / 490.7 MB Notification: Performance of sort global known variables: time 2.91e-07/2.419, allocations: 3.984 kB / 0.906 GB, free: 143.4 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01321/2.432, allocations: 1.612 MB / 0.9076 GB, free: 143.4 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 4 (revolute1.phi,revolute1.w,revolute2.phi,revolute2.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (285): * Single equations (assignments): 280 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 43,(1,100.0%) 36} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02677/2.459, allocations: 15.38 MB / 0.9226 GB, free: 137.6 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01756/2.476, allocations: 9.211 MB / 0.9316 GB, free: 134.5 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.188e-05/2.476, allocations: 5.844 kB / 0.9316 GB, free: 134.5 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005808/2.482, allocations: 3.695 MB / 0.9352 GB, free: 132.9 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004894/2.487, allocations: 0.5839 MB / 0.9358 GB, free: 132.7 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04126/2.528, allocations: 15.05 MB / 0.9504 GB, free: 127.5 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009222/2.537, allocations: 5.021 MB / 0.9554 GB, free: 123.9 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.008818/2.546, allocations: 2.894 MB / 0.9582 GB, free: 122.2 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006625/2.553, allocations: 3.267 MB / 0.9614 GB, free: 119.2 MB / 490.7 MB Notification: Performance of SimCode: time 1.292e-06/2.553, allocations: 3.172 kB / 0.9614 GB, free: 119.2 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4826/3.036, allocations: 133.5 MB / 1.092 GB, free: 121.1 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001685/3.036, allocations: 161.1 kB / 1.092 GB, free: 120.9 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.216/10.25, allocations: 4 kB / 1.092 GB, free: 120.9 MB / 490.7 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_LineForceWithTwoMasses_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_LineForceWithTwoMasses.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses_res.mat does not exist to compare? outputFormat=mat