Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001116/0.001116, allocations: 198.7 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.284/1.284, allocations: 227.2 MB / 245 MB, free: 7.637 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008902/0.0008902, allocations: 101.9 kB / 297.3 MB, free: 6.191 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002071/0.0002073, allocations: 8 kB / 358 MB, free: 9.465 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.232/0.2322, allocations: 51.49 MB / 409.5 MB, free: 26.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.101/0.3332, allocations: 83.14 MB / 492.6 MB, free: 7.473 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000229/0.3335, allocations: 74.03 kB / 492.7 MB, free: 7.402 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03012/0.3636, allocations: 12.06 MB / 0.4929 GB, free: 11.33 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.184e-06/0.3637, allocations: 0 / 0.4929 GB, free: 11.33 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.291e-05/0.3637, allocations: 24 kB / 0.493 GB, free: 11.31 MB / 378.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.00186/0.3656, allocations: 0.8812 MB / 0.4938 GB, free: 10.38 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.826e-05/0.3657, allocations: 8.031 kB / 0.4938 GB, free: 10.37 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002777/0.3659, allocations: 135.2 kB / 0.494 GB, free: 10.23 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003347/0.3663, allocations: 98.92 kB / 0.4941 GB, free: 10.13 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008295/0.3671, allocations: 0.4935 MB / 0.4945 GB, free: 9.598 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.183e-05/0.3672, allocations: 66 kB / 0.4946 GB, free: 9.535 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001438/0.3674, allocations: 91.89 kB / 0.4947 GB, free: 9.445 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001463/0.3688, allocations: 0.7888 MB / 0.4955 GB, free: 8.617 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.031e-05/0.3689, allocations: 7.906 kB / 0.4955 GB, free: 8.609 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.726e-05/0.369, allocations: 36 kB / 0.4955 GB, free: 8.574 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.133e-05/0.369, allocations: 27.95 kB / 0.4955 GB, free: 8.547 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001046/0.37, allocations: 495.6 kB / 0.496 GB, free: 8.062 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00349/0.3735, allocations: 2.895 MB / 0.4988 GB, free: 5.043 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005219/0.3741, allocations: 234.2 kB / 0.499 GB, free: 4.801 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002019/0.3743, allocations: 247.3 kB / 0.4993 GB, free: 4.504 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.345e-05/0.3743, allocations: 35.03 kB / 0.4993 GB, free: 4.461 MB / 378.7 MB Notification: Performance of pre-optimization done (n=30): time 1.834e-06/0.3743, allocations: 0 / 0.4993 GB, free: 4.461 MB / 378.7 MB Notification: Performance of matching and sorting (n=35): time 0.002378/0.3767, allocations: 1.273 MB / 0.5006 GB, free: 3.09 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.278e-05/0.3768, allocations: 55.41 kB / 0.5006 GB, free: 3.023 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002817/0.3771, allocations: 263.6 kB / 0.5009 GB, free: 2.762 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.338e-05/0.3771, allocations: 33.7 kB / 0.5009 GB, free: 2.723 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002253/0.3773, allocations: 394.5 kB / 0.5013 GB, free: 2.332 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.59e-05/0.3774, allocations: 134.1 kB / 0.5014 GB, free: 2.199 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.756e-05/0.3775, allocations: 12 kB / 0.5014 GB, free: 2.188 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001336/0.3776, allocations: 350.8 kB / 0.5017 GB, free: 1.836 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001979/0.3778, allocations: 113 kB / 0.5019 GB, free: 1.727 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002723/0.3781, allocations: 254.7 kB / 0.5021 GB, free: 1.414 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002465/0.3783, allocations: 143.9 kB / 0.5022 GB, free: 1.273 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.063e-06/0.3783, allocations: 0 / 0.5022 GB, free: 1.273 MB / 378.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0006923/0.379, allocations: 465.4 kB / 0.5027 GB, free: 0.8086 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.056e-05/0.3791, allocations: 8.094 kB / 0.5027 GB, free: 0.8008 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.172e-05/0.3791, allocations: 8 kB / 0.5027 GB, free: 0.793 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001808/0.3793, allocations: 36.84 kB / 0.5027 GB, free: 0.7539 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003372/0.3796, allocations: 111.8 kB / 0.5028 GB, free: 0.6445 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003713/0.38, allocations: 0.5562 MB / 0.5034 GB, free: 64 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002014/0.3802, allocations: 19.94 kB / 0.5034 GB, free: 44 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.409e-05/0.3803, allocations: 28.06 kB / 0.5034 GB, free: 16 kB / 378.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.2056/0.5859, allocations: 207.3 kB / 0.5036 GB, free: 90.44 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001401/0.586, allocations: 36.28 kB / 0.5037 GB, free: 90.44 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008742/0.5869, allocations: 324.5 kB / 0.504 GB, free: 90.39 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.596e-06/0.5869, allocations: 3.719 kB / 0.504 GB, free: 90.39 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.715e-06/0.5869, allocations: 4.375 kB / 0.504 GB, free: 90.39 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.981e-06/0.5869, allocations: 2.688 kB / 0.504 GB, free: 90.39 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002395/0.5893, allocations: 1.026 MB / 0.505 GB, free: 90.04 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.685e-06/0.5894, allocations: 1.484 kB / 0.505 GB, free: 90.04 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004484/0.5898, allocations: 83.23 kB / 0.5051 GB, free: 90.04 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002271/0.5901, allocations: 32.12 kB / 0.5051 GB, free: 90.04 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.893e-05/0.5901, allocations: 14.19 kB / 0.5051 GB, free: 90.04 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003391/0.5905, allocations: 0.5499 MB / 0.5056 GB, free: 89.52 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.201e-06/0.5905, allocations: 1.656 kB / 0.5056 GB, free: 89.52 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001106/0.5916, allocations: 0.6178 MB / 0.5062 GB, free: 89.24 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001616/0.5918, allocations: 111.6 kB / 0.5064 GB, free: 89.14 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.009e-05/0.5919, allocations: 13.8 kB / 0.5064 GB, free: 89.14 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000179/0.592, allocations: 9.484 kB / 0.5064 GB, free: 89.14 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.814e-05/0.5921, allocations: 24.75 kB / 0.5064 GB, free: 89.14 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.729e-05/0.5922, allocations: 14.44 kB / 0.5064 GB, free: 89.14 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.00028/0.5925, allocations: 207.3 kB / 0.5066 GB, free: 89.06 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5925, allocations: 0 / 0.5066 GB, free: 89.06 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006481/0.5931, allocations: 127 kB / 0.5067 GB, free: 89.06 MB / 378.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.00124/0.5944, allocations: 1.512 MB / 0.5082 GB, free: 87.94 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0007238/0.5951, allocations: 310 kB / 0.5085 GB, free: 87.93 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.5951, allocations: 1.906 kB / 0.5085 GB, free: 87.93 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002909/0.5954, allocations: 144.2 kB / 0.5086 GB, free: 87.93 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004982/0.5959, allocations: 56.3 kB / 0.5087 GB, free: 87.93 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006845/0.6028, allocations: 6.27 MB / 0.5148 GB, free: 83.37 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004847/0.6033, allocations: 0.9336 MB / 0.5157 GB, free: 82.66 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001968/0.6035, allocations: 49.38 kB / 0.5158 GB, free: 82.66 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002676/0.6038, allocations: 246.1 kB / 0.516 GB, free: 82.64 MB / 378.7 MB Notification: Performance of SimCode: time 1.002e-06/0.6038, allocations: 0 / 0.516 GB, free: 82.64 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02347/0.6273, allocations: 8.041 MB / 0.5239 GB, free: 81.96 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000168/0.6275, allocations: 211 kB / 0.5241 GB, free: 81.72 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.024/2.652, allocations: 3.938 kB / 0.5241 GB, free: 81.71 MB / 378.7 MB (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.mat does not exist to compare? outputFormat=mat