Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.FirstGrounded.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.FirstGrounded,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_FirstGrounded",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.FirstGrounded,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_FirstGrounded",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.001007/0.001007, allocations: 181.4 kB / 17.01 MB, free: 5.121 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.243/1.243, allocations: 205.4 MB / 223.1 MB, free: 9.129 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.0008358/0.0008358, allocations: 91.3 kB / 271.5 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000255/0.000255, allocations: 4 kB / 328.3 MB, free: 15.45 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2098/0.21, allocations: 47.58 MB / 375.9 MB, free: 45.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08304/0.2931, allocations: 77.58 MB / 453.5 MB, free: 3.078 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002102/0.2934, allocations: 75.95 kB / 453.6 MB, free: 3.004 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00987/0.3033, allocations: 3.8 MB / 457.4 MB, free: 15.2 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.723e-06/0.3033, allocations: 4 kB / 457.4 MB, free: 15.19 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.138e-05/0.3033, allocations: 7.984 kB / 457.4 MB, free: 15.18 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.000665/0.304, allocations: 486.9 kB / 457.8 MB, free: 14.66 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.759e-05/0.3041, allocations: 8.031 kB / 457.9 MB, free: 14.65 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.181e-05/0.3041, allocations: 54.55 kB / 457.9 MB, free: 14.59 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.992e-05/0.3042, allocations: 27.7 kB / 457.9 MB, free: 14.56 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000276/0.3045, allocations: 227.4 kB / 458.2 MB, free: 14.3 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.303e-05/0.3045, allocations: 20.39 kB / 458.2 MB, free: 14.27 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.5e-05/0.3046, allocations: 23.91 kB / 458.2 MB, free: 14.25 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000366/0.3049, allocations: 209.8 kB / 458.4 MB, free: 14.03 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.708e-05/0.305, allocations: 0 / 458.4 MB, free: 14.03 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.289e-05/0.305, allocations: 12 kB / 458.4 MB, free: 14.02 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.664e-06/0.305, allocations: 4 kB / 458.4 MB, free: 14.02 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002517/0.3053, allocations: 129.9 kB / 458.5 MB, free: 13.89 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009572/0.3062, allocations: 0.7132 MB / 459.3 MB, free: 13.12 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002472/0.3065, allocations: 146.5 kB / 459.4 MB, free: 12.97 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.835e-05/0.3065, allocations: 4 kB / 459.4 MB, free: 12.97 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.466e-05/0.3066, allocations: 38.56 kB / 459.4 MB, free: 12.92 MB / 346.7 MB Notification: Performance of pre-optimization done (n=20): time 1.563e-06/0.3066, allocations: 0 / 459.4 MB, free: 12.92 MB / 346.7 MB Notification: Performance of matching and sorting (n=24): time 0.001506/0.3081, allocations: 0.9029 MB / 460.3 MB, free: 11.93 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.631e-05/0.3081, allocations: 51.41 kB / 460.4 MB, free: 11.87 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001577/0.3083, allocations: 154.9 kB / 460.5 MB, free: 11.71 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.081e-05/0.3083, allocations: 29.7 kB / 460.6 MB, free: 11.68 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.232e-05/0.3084, allocations: 140.3 kB / 460.7 MB, free: 11.54 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.937e-05/0.3085, allocations: 86.75 kB / 460.8 MB, free: 11.45 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.097e-06/0.3085, allocations: 4 kB / 460.8 MB, free: 11.45 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001228/0.3086, allocations: 334.8 kB / 461.1 MB, free: 11.11 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001327/0.3088, allocations: 59.97 kB / 461.2 MB, free: 11.05 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001456/0.3089, allocations: 101.7 kB / 461.3 MB, free: 10.94 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001416/0.3091, allocations: 72.59 kB / 461.4 MB, free: 10.87 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.332e-06/0.3091, allocations: 0 / 461.4 MB, free: 10.87 MB / 346.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004192/0.3095, allocations: 254 kB / 461.6 MB, free: 10.61 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.76e-05/0.3096, allocations: 8.125 kB / 461.6 MB, free: 10.6 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.222e-06/0.3096, allocations: 3.938 kB / 461.6 MB, free: 10.6 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001568/0.3097, allocations: 40.83 kB / 461.7 MB, free: 10.55 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002049/0.3099, allocations: 47.97 kB / 461.7 MB, free: 10.51 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001131/0.3111, allocations: 1.39 MB / 463.1 MB, free: 8.984 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001176/0.3112, allocations: 8.031 kB / 463.1 MB, free: 8.977 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.812e-05/0.3112, allocations: 19.94 kB / 463.1 MB, free: 8.957 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (28): * Single equations (assignments): 27 * 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: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001156/0.3114, allocations: 129.8 kB / 463.3 MB, free: 8.82 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.973e-05/0.3114, allocations: 23.88 kB / 463.3 MB, free: 8.797 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.475e-05/0.3115, allocations: 29.86 kB / 463.3 MB, free: 8.762 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.003e-06/0.3115, allocations: 0 / 463.3 MB, free: 8.762 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.283e-06/0.3115, allocations: 7.953 kB / 463.3 MB, free: 8.754 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.557e-06/0.3115, allocations: 0 / 463.3 MB, free: 8.754 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008407/0.3124, allocations: 0.6641 MB / 464 MB, free: 8.02 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-06/0.3124, allocations: 0 / 464 MB, free: 8.02 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002182/0.3126, allocations: 43.97 kB / 464 MB, free: 7.977 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001106/0.3127, allocations: 40.77 kB / 464.1 MB, free: 7.934 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.693e-05/0.3127, allocations: 16 kB / 464.1 MB, free: 7.918 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000981/0.3137, allocations: 1.382 MB / 465.5 MB, free: 6.406 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.724e-06/0.3138, allocations: 8 kB / 465.5 MB, free: 6.398 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005415/0.3143, allocations: 437.5 kB / 465.9 MB, free: 5.934 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.774e-05/0.3144, allocations: 92.83 kB / 466 MB, free: 5.824 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.753e-05/0.3144, allocations: 12.03 kB / 466 MB, free: 5.812 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001199/0.3145, allocations: 8 kB / 466 MB, free: 5.805 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.09e-05/0.3146, allocations: 11.98 kB / 466 MB, free: 5.793 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.588e-05/0.3146, allocations: 11.98 kB / 466 MB, free: 5.781 MB / 346.7 MB Notification: Performance of sorting global known variables: time 9.063e-05/0.3147, allocations: 124.8 kB / 466.1 MB, free: 5.66 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3147, allocations: 4 kB / 466.1 MB, free: 5.656 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000321/0.315, allocations: 60 kB / 466.2 MB, free: 5.598 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (inertia3.phi,inertia3.w,damper.phi_rel,damper.w_rel) * 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 (21): * Single equations (assignments): 20 * 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: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008604/0.3159, allocations: 1.098 MB / 467.3 MB, free: 4.457 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0005596/0.3165, allocations: 299.1 kB / 467.6 MB, free: 4.152 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.3165, allocations: 0 / 467.6 MB, free: 4.152 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000293/0.3168, allocations: 222.4 kB / 467.8 MB, free: 3.922 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003357/0.3171, allocations: 30.05 kB / 467.8 MB, free: 3.895 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002414/0.3196, allocations: 2.137 MB / 470 MB, free: 1.688 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002954/0.3199, allocations: 0.7524 MB / 470.7 MB, free: 0.9102 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 8.101e-05/0.32, allocations: 21.94 kB / 470.8 MB, free: 0.8906 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.123e-05/0.3201, allocations: 71.41 kB / 470.8 MB, free: 0.8203 MB / 346.7 MB Notification: Performance of SimCode: time 3.11e-07/0.3201, allocations: 0 / 470.8 MB, free: 0.8203 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01612/0.3362, allocations: 4.211 MB / 475 MB, free: 12.64 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000237/0.3365, allocations: 207.3 kB / 475.2 MB, free: 12.39 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.653/1.989, allocations: 0 / 475.2 MB, free: 12.39 MB / 362.7 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.FirstGrounded.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.FirstGrounded_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_FirstGrounded_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_FirstGrounded.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.FirstGrounded_res.mat does not exist to compare? outputFormat=mat