Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.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.Rotational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs",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.0009901/0.0009903, allocations: 181.2 kB / 17.01 MB, free: 5.125 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.504/1.504, allocations: 205.4 MB / 223.1 MB, free: 9.125 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000914/0.0009142, allocations: 100.1 kB / 271.5 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002541/0.0002543, allocations: 12 kB / 328.3 MB, free: 15.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.249/0.2492, allocations: 47.55 MB / 375.9 MB, free: 45.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09284/0.3421, allocations: 81.56 MB / 457.5 MB, free: 15.09 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002249/0.3424, allocations: 75.97 kB / 457.5 MB, free: 15.01 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02743/0.3698, allocations: 11.73 MB / 469.3 MB, free: 3.277 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.3699, allocations: 0 / 469.3 MB, free: 3.277 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.324e-05/0.3699, allocations: 19.98 kB / 469.3 MB, free: 3.258 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 214 * Number of variables: 214 Notification: Performance of Generate backend data structure: time 0.001197/0.3711, allocations: 0.8812 MB / 470.2 MB, free: 2.324 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.259e-05/0.3712, allocations: 8.031 kB / 470.2 MB, free: 2.316 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001376/0.3713, allocations: 135.3 kB / 470.3 MB, free: 2.176 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000126/0.3715, allocations: 94.92 kB / 470.4 MB, free: 2.082 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000636/0.3721, allocations: 0.4936 MB / 470.9 MB, free: 1.551 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.466e-05/0.3722, allocations: 62 kB / 471 MB, free: 1.492 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001028/0.3723, allocations: 91.89 kB / 471 MB, free: 1.402 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001225/0.3735, allocations: 0.7927 MB / 471.8 MB, free: 0.5703 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.52e-05/0.3736, allocations: 11.89 kB / 471.8 MB, free: 0.5586 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.904e-05/0.3736, allocations: 36 kB / 471.9 MB, free: 0.5234 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.777e-05/0.3736, allocations: 27.95 kB / 471.9 MB, free: 0.4961 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008503/0.3745, allocations: 487.6 kB / 472.4 MB, free: 20 kB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003065/0.3776, allocations: 2.896 MB / 475.3 MB, free: 13 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004945/0.3781, allocations: 227.1 kB / 475.5 MB, free: 12.76 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002156/0.3783, allocations: 259.3 kB / 475.8 MB, free: 12.45 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.091e-05/0.3783, allocations: 30.56 kB / 475.8 MB, free: 12.41 MB / 362.7 MB Notification: Performance of pre-optimization done (n=30): time 1.874e-06/0.3784, allocations: 4 kB / 475.8 MB, free: 12.41 MB / 362.7 MB Notification: Performance of matching and sorting (n=35): time 0.002225/0.3806, allocations: 1.264 MB / 477.1 MB, free: 11.05 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.185e-05/0.3806, allocations: 55.41 kB / 477.1 MB, free: 10.98 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002684/0.3809, allocations: 267.6 kB / 477.4 MB, free: 10.72 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.332e-05/0.3809, allocations: 29.7 kB / 477.4 MB, free: 10.68 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002283/0.3812, allocations: 398.5 kB / 477.8 MB, free: 10.29 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001049/0.3813, allocations: 134.1 kB / 477.9 MB, free: 10.16 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.813e-05/0.3813, allocations: 8 kB / 477.9 MB, free: 10.15 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000123/0.3814, allocations: 350.7 kB / 478.3 MB, free: 9.797 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001802/0.3816, allocations: 117.1 kB / 478.4 MB, free: 9.684 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002547/0.3819, allocations: 254.6 kB / 478.6 MB, free: 9.371 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002288/0.3821, allocations: 147.5 kB / 478.8 MB, free: 9.227 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.764e-06/0.3821, allocations: 0 / 478.8 MB, free: 9.227 MB / 362.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0006344/0.3828, allocations: 457.8 kB / 479.2 MB, free: 8.77 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.093e-05/0.3828, allocations: 16.06 kB / 479.2 MB, free: 8.754 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.766e-06/0.3828, allocations: 4 kB / 479.2 MB, free: 8.75 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001674/0.383, allocations: 32.84 kB / 479.3 MB, free: 8.715 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003437/0.3834, allocations: 119.8 kB / 479.4 MB, free: 8.598 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003336/0.3837, allocations: 0.5523 MB / 479.9 MB, free: 8.02 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001651/0.3839, allocations: 20.06 kB / 480 MB, free: 8 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.036e-05/0.3839, allocations: 24 kB / 480 MB, free: 7.977 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (60): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0002891/0.3842, allocations: 221.6 kB / 480.2 MB, free: 7.75 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.651e-05/0.3843, allocations: 35.53 kB / 480.2 MB, free: 7.715 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005521/0.3849, allocations: 329.5 kB / 480.6 MB, free: 7.383 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.122e-06/0.3849, allocations: 4 kB / 480.6 MB, free: 7.379 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.5e-06/0.3849, allocations: 3.953 kB / 480.6 MB, free: 7.375 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.741e-06/0.3849, allocations: 3.984 kB / 480.6 MB, free: 7.371 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001303/0.3862, allocations: 1.022 MB / 481.6 MB, free: 6.273 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.605e-06/0.3862, allocations: 4 kB / 481.6 MB, free: 6.27 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003545/0.3866, allocations: 75.91 kB / 481.7 MB, free: 6.195 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001155/0.3867, allocations: 32.84 kB / 481.7 MB, free: 6.16 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.952e-05/0.3868, allocations: 11.98 kB / 481.7 MB, free: 6.148 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002834/0.387, allocations: 0.5447 MB / 482.3 MB, free: 5.578 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.931e-06/0.3871, allocations: 11.92 kB / 482.3 MB, free: 5.566 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007211/0.3878, allocations: 0.6073 MB / 482.9 MB, free: 4.891 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.711e-05/0.3879, allocations: 108.6 kB / 483 MB, free: 4.766 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.383e-05/0.3879, allocations: 12 kB / 483 MB, free: 4.754 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000144/0.3881, allocations: 8 kB / 483 MB, free: 4.746 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.936e-05/0.3881, allocations: 28.02 kB / 483 MB, free: 4.719 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.319e-05/0.3882, allocations: 11.98 kB / 483 MB, free: 4.707 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001949/0.3884, allocations: 207.1 kB / 483.2 MB, free: 4.504 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.01e-07/0.3884, allocations: 0 / 483.2 MB, free: 4.504 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004781/0.3889, allocations: 124 kB / 483.4 MB, free: 4.383 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 10 (directInertia.inertia.w,directInertia.torqueToAngle.phi,inertia2a.w,torqueToAngle2a.phi,inertia2b.w,torqueToAngle2b.phi,inertia3a.phi,inertia3a.w,inertia3b.phi,inertia3b.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 (33): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.001167/0.39, allocations: 1.514 MB / 484.9 MB, free: 2.809 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005435/0.3906, allocations: 306 kB / 485.2 MB, free: 2.512 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.736e-06/0.3906, allocations: 3.938 kB / 485.2 MB, free: 2.508 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002393/0.3909, allocations: 143.9 kB / 485.3 MB, free: 2.367 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003698/0.3912, allocations: 68.02 kB / 485.4 MB, free: 2.305 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00508/0.3963, allocations: 6.261 MB / 491.7 MB, free: 11.89 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004805/0.3968, allocations: 0.9327 MB / 492.6 MB, free: 10.94 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001645/0.397, allocations: 55.25 kB / 492.6 MB, free: 10.88 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002701/0.3973, allocations: 243.4 kB / 492.9 MB, free: 10.64 MB / 378.7 MB Notification: Performance of SimCode: time 4.61e-07/0.3973, allocations: 0 / 492.9 MB, free: 10.64 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02136/0.4186, allocations: 8.026 MB / 0.4892 GB, free: 2.633 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001997/0.4189, allocations: 218.8 kB / 0.4894 GB, free: 2.387 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.957/2.376, allocations: 0 / 0.4894 GB, free: 2.387 MB / 378.7 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.mat does not exist to compare? outputFormat=mat