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.0009401/0.0009401, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.503/1.503, allocations: 221.5 MB / 230.3 MB, free: 7.516 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.001153/0.001153, allocations: 96.02 kB / 281.2 MB, free: 5.262 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.465e-05/1.477e-05, allocations: 4 kB / 337.1 MB, free: 9.918 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1096/0.1096, allocations: 50.42 MB / 387.6 MB, free: 7.469 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3752/0.4849, allocations: 77.68 MB / 465.2 MB, free: 1.023 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001768/0.4851, allocations: 67.97 kB / 465.3 MB, free: 0.957 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01059/0.4957, allocations: 3.871 MB / 469.2 MB, free: 13.09 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.4958, allocations: 0 / 469.2 MB, free: 13.09 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.7e-05/0.4958, allocations: 4 kB / 469.2 MB, free: 13.09 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.0005394/0.4964, allocations: 479 kB / 469.6 MB, free: 12.57 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.935e-05/0.4964, allocations: 8.031 kB / 469.6 MB, free: 12.57 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.247e-05/0.4965, allocations: 23.72 kB / 469.7 MB, free: 12.54 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000245/0.4967, allocations: 223.4 kB / 469.9 MB, free: 12.28 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.449e-05/0.4967, allocations: 8 kB / 469.9 MB, free: 12.27 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.403e-05/0.4968, allocations: 12 kB / 469.9 MB, free: 12.26 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002038/0.497, allocations: 108.8 kB / 470 MB, free: 12.16 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002768/0.4973, allocations: 169 kB / 470.2 MB, free: 11.98 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.66e-05/0.4973, allocations: 3.906 kB / 470.2 MB, free: 11.98 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.943e-05/0.4973, allocations: 3.953 kB / 470.2 MB, free: 11.97 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.983e-06/0.4973, allocations: 8 kB / 470.2 MB, free: 11.96 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008763/0.4982, allocations: 0.6506 MB / 470.8 MB, free: 11.27 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002272/0.4985, allocations: 130.5 kB / 471 MB, free: 11.14 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.493e-05/0.4986, allocations: 60.8 kB / 471 MB, free: 11.07 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.851e-05/0.4986, allocations: 4 kB / 471 MB, free: 11.07 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.088e-05/0.4986, allocations: 38.77 kB / 471.1 MB, free: 11.02 MB / 346.7 MB Notification: Performance of pre-optimization done (n=20): time 4.208e-06/0.4986, allocations: 0 / 471.1 MB, free: 11.02 MB / 346.7 MB Notification: Performance of matching and sorting (n=24): time 0.001188/0.4998, allocations: 0.752 MB / 471.8 MB, free: 10.18 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.541e-05/0.4999, allocations: 59.41 kB / 471.9 MB, free: 10.11 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001182/0.5, allocations: 142.8 kB / 472 MB, free: 9.965 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.56e-05/0.5, allocations: 25.7 kB / 472 MB, free: 9.934 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.92e-05/0.5001, allocations: 148.2 kB / 472.2 MB, free: 9.785 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.453e-05/0.5001, allocations: 82.75 kB / 472.3 MB, free: 9.703 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.424e-06/0.5002, allocations: 0 / 472.3 MB, free: 9.703 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.745e-05/0.5003, allocations: 326.8 kB / 472.6 MB, free: 9.375 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.466e-05/0.5003, allocations: 48 kB / 472.6 MB, free: 9.328 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.776e-05/0.5004, allocations: 88.27 kB / 472.7 MB, free: 9.227 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.643e-05/0.5005, allocations: 63.84 kB / 472.8 MB, free: 9.164 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.162e-06/0.5006, allocations: 0 / 472.8 MB, free: 9.164 MB / 346.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003224/0.5009, allocations: 210.2 kB / 473 MB, free: 8.949 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.604e-05/0.5009, allocations: 8 kB / 473 MB, free: 8.941 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.991e-06/0.5009, allocations: 0 / 473 MB, free: 8.941 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001396/0.5011, allocations: 32.84 kB / 473 MB, free: 8.906 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002042/0.5013, allocations: 52.66 kB / 473.1 MB, free: 8.855 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001059/0.5023, allocations: 1.331 MB / 474.4 MB, free: 7.406 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001132/0.5025, allocations: 8 kB / 474.4 MB, free: 7.398 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.574e-05/0.5025, allocations: 8 kB / 474.4 MB, free: 7.391 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 () * 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 8.95e-05/0.5026, allocations: 109 kB / 474.5 MB, free: 7.277 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.000297/0.5029, allocations: 182.1 kB / 474.7 MB, free: 7.09 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.957e-05/0.5029, allocations: 23.72 kB / 474.7 MB, free: 7.066 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.818e-05/0.503, allocations: 17.97 kB / 474.8 MB, free: 7.051 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-06/0.503, allocations: 7.938 kB / 474.8 MB, free: 7.043 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.503, allocations: 3.984 kB / 474.8 MB, free: 7.039 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.449e-06/0.503, allocations: 0 / 474.8 MB, free: 7.039 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007626/0.5038, allocations: 0.5794 MB / 475.3 MB, free: 6.402 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.388e-06/0.5038, allocations: 4 kB / 475.4 MB, free: 6.398 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000214/0.504, allocations: 39.98 kB / 475.4 MB, free: 6.359 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001077/0.5042, allocations: 40.89 kB / 475.4 MB, free: 6.316 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.869e-05/0.5042, allocations: 0 / 475.4 MB, free: 6.316 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009635/0.5052, allocations: 1.323 MB / 476.8 MB, free: 4.879 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.435e-06/0.5052, allocations: 3.938 kB / 476.8 MB, free: 4.875 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004519/0.5056, allocations: 398 kB / 477.1 MB, free: 4.453 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.214e-05/0.5057, allocations: 88.92 kB / 477.2 MB, free: 4.348 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.492e-05/0.5057, allocations: 7.953 kB / 477.2 MB, free: 4.34 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001148/0.5058, allocations: 4.031 kB / 477.2 MB, free: 4.336 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.12e-05/0.5059, allocations: 15.98 kB / 477.3 MB, free: 4.32 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.318e-05/0.5059, allocations: 8 kB / 477.3 MB, free: 4.312 MB / 346.7 MB Notification: Performance of sorting global known variables: time 8.519e-05/0.506, allocations: 119.5 kB / 477.4 MB, free: 4.195 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.066e-06/0.506, allocations: 0 / 477.4 MB, free: 4.195 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003327/0.5064, allocations: 55.94 kB / 477.4 MB, free: 4.141 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 () * 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.0008053/0.5072, allocations: 1.057 MB / 478.5 MB, free: 3.039 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0004522/0.5076, allocations: 257.6 kB / 478.7 MB, free: 2.777 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.5077, allocations: 0 / 478.7 MB, free: 2.777 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002617/0.5079, allocations: 201.5 kB / 478.9 MB, free: 2.57 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003354/0.5083, allocations: 33.56 kB / 479 MB, free: 2.539 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001136/0.5094, allocations: 0.5792 MB / 479.6 MB, free: 1.922 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003504/0.5098, allocations: 0.7519 MB / 480.3 MB, free: 1.141 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 7.94e-05/0.5099, allocations: 22.06 kB / 480.3 MB, free: 1.117 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.558e-05/0.51, allocations: 59.42 kB / 480.4 MB, free: 1.059 MB / 346.7 MB Notification: Performance of SimCode: time 3.667e-06/0.51, allocations: 4 kB / 480.4 MB, free: 1.055 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02316/0.5331, allocations: 3.707 MB / 484.1 MB, free: 13.37 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002265/0.5334, allocations: 144.3 kB / 484.2 MB, free: 13.18 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.776/2.31, allocations: 0 / 484.2 MB, free: 13.18 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