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.001339/0.001339, allocations: 197 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.702/1.702, allocations: 225.4 MB / 240.1 MB, free: 15.09 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009648/0.0009647, allocations: 89.64 kB / 292.1 MB, free: 5.996 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.078e-05/4.1e-05, allocations: 0 / 350.6 MB, free: 2.465 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1357/0.1358, allocations: 51.49 MB / 402.1 MB, free: 14.93 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3683/0.5041, allocations: 83.08 MB / 485.2 MB, free: 6.426 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002444/0.5044, allocations: 68.2 kB / 485.3 MB, free: 6.395 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02989/0.5343, allocations: 12.04 MB / 497.3 MB, free: 12.1 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.813e-06/0.5344, allocations: 0 / 497.3 MB, free: 12.1 MB / 362.7 MB Notification: Performance of Transformations before backend: time 8.981e-05/0.5345, allocations: 23.98 kB / 497.3 MB, free: 12.07 MB / 362.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.002164/0.5366, allocations: 0.8479 MB / 498.2 MB, free: 11.18 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.654e-05/0.5367, allocations: 8.031 kB / 498.2 MB, free: 11.18 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003483/0.5371, allocations: 132 kB / 498.3 MB, free: 11.04 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004097/0.5375, allocations: 102.6 kB / 498.4 MB, free: 10.94 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009882/0.5385, allocations: 0.4936 MB / 498.9 MB, free: 10.41 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.486e-05/0.5386, allocations: 66 kB / 499 MB, free: 10.34 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000179/0.5388, allocations: 91.91 kB / 499.1 MB, free: 10.25 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001766/0.5405, allocations: 0.7616 MB / 499.8 MB, free: 9.453 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.74e-05/0.5406, allocations: 7.922 kB / 499.8 MB, free: 9.445 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.896e-05/0.5407, allocations: 42.62 kB / 499.9 MB, free: 9.406 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.621e-05/0.5407, allocations: 31.94 kB / 499.9 MB, free: 9.375 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001165/0.5419, allocations: 463.8 kB / 0.4886 GB, free: 8.922 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004114/0.546, allocations: 2.89 MB / 0.4914 GB, free: 5.91 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006158/0.5467, allocations: 215.7 kB / 0.4917 GB, free: 5.688 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001685/0.5469, allocations: 96.84 kB / 0.4917 GB, free: 5.59 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002819/0.5472, allocations: 243.3 kB / 0.492 GB, free: 5.297 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.065e-05/0.5472, allocations: 38.56 kB / 0.492 GB, free: 5.25 MB / 362.7 MB Notification: Performance of pre-optimization done (n=30): time 2.956e-06/0.5472, allocations: 0 / 0.492 GB, free: 5.25 MB / 362.7 MB Notification: Performance of matching and sorting (n=35): time 0.002638/0.5499, allocations: 1.161 MB / 0.4931 GB, free: 3.996 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.282e-05/0.5499, allocations: 55.41 kB / 0.4932 GB, free: 3.93 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003533/0.5503, allocations: 258.9 kB / 0.4934 GB, free: 3.668 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.858e-05/0.5503, allocations: 29.7 kB / 0.4935 GB, free: 3.633 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002763/0.5506, allocations: 406.5 kB / 0.4939 GB, free: 3.23 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000106/0.5507, allocations: 130.1 kB / 0.494 GB, free: 3.102 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.803e-05/0.5507, allocations: 8 kB / 0.494 GB, free: 3.094 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001793/0.5509, allocations: 346.8 kB / 0.4943 GB, free: 2.746 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001942/0.5511, allocations: 105.1 kB / 0.4944 GB, free: 2.645 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002943/0.5514, allocations: 245 kB / 0.4947 GB, free: 2.344 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002721/0.5517, allocations: 143.9 kB / 0.4948 GB, free: 2.203 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.681e-06/0.5517, allocations: 4 kB / 0.4948 GB, free: 2.199 MB / 362.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0007841/0.5525, allocations: 437.3 kB / 0.4952 GB, free: 1.762 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.952e-05/0.5526, allocations: 8 kB / 0.4952 GB, free: 1.754 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.2e-05/0.5526, allocations: 4 kB / 0.4952 GB, free: 1.75 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002622/0.5528, allocations: 36.78 kB / 0.4953 GB, free: 1.711 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003844/0.5532, allocations: 111.9 kB / 0.4954 GB, free: 1.602 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005217/0.5538, allocations: 0.5675 MB / 0.4959 GB, free: 1.012 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002383/0.554, allocations: 16 kB / 0.4959 GB, free: 0.9961 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.423e-05/0.5541, allocations: 20 kB / 0.496 GB, free: 0.9766 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 () * 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.0001362/0.5542, allocations: 136.8 kB / 0.4961 GB, free: 0.8359 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.706e-05/0.5543, allocations: 31.62 kB / 0.4961 GB, free: 0.8047 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006075/0.5549, allocations: 317.3 kB / 0.4964 GB, free: 500 kB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.506e-06/0.555, allocations: 7.953 kB / 0.4964 GB, free: 492 kB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.722e-06/0.555, allocations: 0 / 0.4964 GB, free: 492 kB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.107e-06/0.555, allocations: 3.984 kB / 0.4964 GB, free: 488 kB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001801/0.5568, allocations: 1.008 MB / 0.4974 GB, free: 15.39 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.461e-06/0.5568, allocations: 4 kB / 0.4974 GB, free: 15.39 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003641/0.5572, allocations: 79.91 kB / 0.4975 GB, free: 15.31 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001336/0.5573, allocations: 28.84 kB / 0.4975 GB, free: 15.28 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.97e-05/0.5574, allocations: 11.98 kB / 0.4975 GB, free: 15.27 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003755/0.5578, allocations: 0.55 MB / 0.4981 GB, free: 14.7 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.522e-06/0.5578, allocations: 7.984 kB / 0.4981 GB, free: 14.69 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008602/0.5586, allocations: 0.5833 MB / 0.4987 GB, free: 14.04 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001339/0.5588, allocations: 108.7 kB / 0.4988 GB, free: 13.91 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.843e-05/0.5589, allocations: 12 kB / 0.4988 GB, free: 13.9 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001612/0.559, allocations: 8 kB / 0.4988 GB, free: 13.89 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.519e-05/0.5591, allocations: 27.92 kB / 0.4988 GB, free: 13.86 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.977e-05/0.5592, allocations: 16 kB / 0.4988 GB, free: 13.85 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002574/0.5594, allocations: 206.2 kB / 0.499 GB, free: 13.65 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.91e-07/0.5594, allocations: 0 / 0.499 GB, free: 13.65 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005938/0.56, allocations: 128 kB / 0.4991 GB, free: 13.52 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 () * 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.001437/0.5615, allocations: 1.497 MB / 0.5006 GB, free: 11.97 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006366/0.5621, allocations: 280.8 kB / 0.5009 GB, free: 11.7 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.085e-06/0.5622, allocations: 4 kB / 0.5009 GB, free: 11.69 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002534/0.5624, allocations: 132 kB / 0.501 GB, free: 11.56 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004372/0.5629, allocations: 61.12 kB / 0.5011 GB, free: 11.5 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003054/0.5659, allocations: 1.482 MB / 0.5025 GB, free: 9.961 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007538/0.5667, allocations: 0.9405 MB / 0.5034 GB, free: 8.996 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000217/0.5669, allocations: 50.7 kB / 0.5035 GB, free: 8.949 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003307/0.5673, allocations: 243.4 kB / 0.5037 GB, free: 8.711 MB / 378.7 MB Notification: Performance of SimCode: time 8.11e-07/0.5673, allocations: 0 / 0.5037 GB, free: 8.711 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02424/0.5915, allocations: 8.084 MB / 0.5116 GB, free: 0.918 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002301/0.5918, allocations: 188.9 kB / 0.5118 GB, free: 0.6914 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.239/2.831, allocations: 0 / 0.5118 GB, free: 0.6914 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