Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.FirstGrounded,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_FirstGrounded",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.FirstGrounded,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_FirstGrounded",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001053/0.001053, allocations: 175.5 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.412/1.412, allocations: 221.3 MB / 235.5 MB, free: 2.961 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00097/0.0009702, allocations: 97.77 kB / 286.5 MB, free: 220 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.381e-05/3.41e-05, allocations: 4 kB / 343.9 MB, free: 4.203 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.131/0.1311, allocations: 50.43 MB / 394.3 MB, free: 1.738 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3528/0.4839, allocations: 78.33 MB / 472.7 MB, free: 9.117 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002348/0.4842, allocations: 81.59 kB / 472.8 MB, free: 9.039 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01069/0.4949, allocations: 3.889 MB / 476.7 MB, free: 5.152 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.487e-06/0.495, allocations: 0 / 476.7 MB, free: 5.152 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.736e-05/0.495, allocations: 4 kB / 476.7 MB, free: 5.148 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.0006912/0.4957, allocations: 467 kB / 477.1 MB, free: 4.645 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.783e-05/0.4958, allocations: 12.03 kB / 477.1 MB, free: 4.633 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.807e-05/0.4959, allocations: 50.55 kB / 477.2 MB, free: 4.574 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.295e-05/0.4959, allocations: 27.72 kB / 477.2 MB, free: 4.547 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002922/0.4962, allocations: 227.4 kB / 477.4 MB, free: 4.281 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.173e-05/0.4963, allocations: 20.44 kB / 477.4 MB, free: 4.262 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.845e-05/0.4963, allocations: 23.91 kB / 477.5 MB, free: 4.238 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003949/0.4967, allocations: 193.9 kB / 477.7 MB, free: 4.039 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.404e-05/0.4968, allocations: 7.984 kB / 477.7 MB, free: 4.031 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.56e-05/0.4968, allocations: 7.953 kB / 477.7 MB, free: 4.023 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.478e-06/0.4968, allocations: 4 kB / 477.7 MB, free: 4.02 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002392/0.4971, allocations: 125.7 kB / 477.8 MB, free: 3.898 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001064/0.4981, allocations: 0.6976 MB / 478.5 MB, free: 3.145 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002424/0.4984, allocations: 134.6 kB / 478.6 MB, free: 3.004 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001064/0.4985, allocations: 64.86 kB / 478.7 MB, free: 2.938 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.579e-05/0.4985, allocations: 4 kB / 478.7 MB, free: 2.934 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.845e-05/0.4986, allocations: 34.77 kB / 478.7 MB, free: 2.891 MB / 346.7 MB Notification: Performance of pre-optimization done (n=20): time 5.199e-06/0.4986, allocations: 0 / 478.7 MB, free: 2.891 MB / 346.7 MB Notification: Performance of matching and sorting (n=24): time 0.001493/0.5001, allocations: 0.825 MB / 479.6 MB, free: 1.98 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.393e-05/0.5001, allocations: 55.41 kB / 479.6 MB, free: 1.914 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000155/0.5003, allocations: 153.8 kB / 479.8 MB, free: 1.75 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.687e-05/0.5003, allocations: 33.7 kB / 479.8 MB, free: 1.711 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.604e-05/0.5004, allocations: 144.3 kB / 479.9 MB, free: 1.566 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.601e-05/0.5005, allocations: 82.81 kB / 480 MB, free: 1.484 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.518e-06/0.5005, allocations: 4 kB / 480 MB, free: 1.48 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001274/0.5007, allocations: 326.8 kB / 480.3 MB, free: 1.152 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.93e-05/0.5008, allocations: 48 kB / 480.4 MB, free: 1.105 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001203/0.5009, allocations: 88.28 kB / 480.5 MB, free: 1.004 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00012/0.501, allocations: 71.91 kB / 480.5 MB, free: 0.9336 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.162e-06/0.501, allocations: 0 / 480.5 MB, free: 0.9336 MB / 346.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003772/0.5014, allocations: 234 kB / 480.8 MB, free: 0.6953 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.951e-05/0.5014, allocations: 8 kB / 480.8 MB, free: 0.6875 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.542e-06/0.5014, allocations: 128 / 480.8 MB, free: 0.6875 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001588/0.5016, allocations: 36.84 kB / 480.8 MB, free: 0.6484 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002115/0.5018, allocations: 55.91 kB / 480.9 MB, free: 0.5938 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001313/0.5032, allocations: 1.374 MB / 482.2 MB, free: 15.09 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001164/0.5033, allocations: 16.02 kB / 482.3 MB, free: 15.07 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.759e-05/0.5033, allocations: 8 kB / 482.3 MB, free: 15.06 MB / 362.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 () * 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.0001333/0.5035, allocations: 124.8 kB / 482.4 MB, free: 14.93 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.956e-05/0.5035, allocations: 15.81 kB / 482.4 MB, free: 14.92 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.298e-05/0.5036, allocations: 25.72 kB / 482.4 MB, free: 14.89 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.777e-06/0.5036, allocations: 4 kB / 482.4 MB, free: 14.88 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.528e-06/0.5036, allocations: 3.984 kB / 482.4 MB, free: 14.88 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.099e-06/0.5036, allocations: 3.938 kB / 482.4 MB, free: 14.88 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009293/0.5045, allocations: 0.6452 MB / 483.1 MB, free: 14.16 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/0.5046, allocations: 144 / 483.1 MB, free: 14.16 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002114/0.5048, allocations: 43.97 kB / 483.1 MB, free: 14.12 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001123/0.5049, allocations: 40.77 kB / 483.2 MB, free: 14.07 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.652e-05/0.5049, allocations: 4 kB / 483.2 MB, free: 14.07 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001164/0.5061, allocations: 1.378 MB / 484.5 MB, free: 12.56 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.138e-06/0.5061, allocations: 7.969 kB / 484.6 MB, free: 12.55 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005477/0.5067, allocations: 405.5 kB / 485 MB, free: 12.12 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.224e-05/0.5068, allocations: 92.95 kB / 485 MB, free: 12.01 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.494e-05/0.5068, allocations: 8 kB / 485 MB, free: 12 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001231/0.5069, allocations: 11.95 kB / 485.1 MB, free: 11.99 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.995e-05/0.507, allocations: 19.97 kB / 485.1 MB, free: 11.97 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.429e-05/0.507, allocations: 8 kB / 485.1 MB, free: 11.96 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001184/0.5072, allocations: 128.8 kB / 485.2 MB, free: 11.84 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5072, allocations: 4 kB / 485.2 MB, free: 11.83 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003579/0.5075, allocations: 56 kB / 485.3 MB, free: 11.78 MB / 362.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 () * 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.001068/0.5086, allocations: 1.089 MB / 486.4 MB, free: 10.65 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005344/0.5091, allocations: 281.9 kB / 486.6 MB, free: 10.36 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.5092, allocations: 0 / 486.6 MB, free: 10.36 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002848/0.5095, allocations: 210.4 kB / 486.8 MB, free: 10.14 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003432/0.5098, allocations: 29.7 kB / 486.9 MB, free: 10.12 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001212/0.511, allocations: 0.5935 MB / 487.5 MB, free: 9.48 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000439/0.5115, allocations: 0.7599 MB / 488.2 MB, free: 8.691 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 8.242e-05/0.5116, allocations: 14.08 kB / 488.2 MB, free: 8.676 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001002/0.5117, allocations: 67.41 kB / 488.3 MB, free: 8.609 MB / 362.7 MB Notification: Performance of SimCode: time 5.01e-07/0.5117, allocations: 0 / 488.3 MB, free: 8.609 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01783/0.5295, allocations: 4.193 MB / 492.5 MB, free: 4.562 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000187/0.5298, allocations: 189 kB / 492.7 MB, free: 4.324 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.757/2.287, allocations: 0 / 492.7 MB, free: 4.324 MB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_FirstGrounded_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_FirstGrounded.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded_res.mat does not exist to compare? outputFormat=mat