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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001001/0.001001, allocations: 84.7 kB / 16.31 MB, free: 6.453 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001222/0.001222, allocations: 175.6 kB / 17.2 MB, free: 6.328 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.339/1.339, allocations: 223.2 MB / 241.2 MB, free: 14.6 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002591/0.0002592, allocations: 8 kB / 300.9 MB, free: 6.098 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09673/0.09701, allocations: 50.42 MB / 351.3 MB, free: 3.672 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.FirstGrounded): time 0.002272/0.09933, allocations: 1.966 MB / 353.3 MB, free: 1.691 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008455/0.1002, allocations: 0.5495 MB / 353.9 MB, free: 1.137 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.929e-05/0.1003, allocations: 4 kB / 353.9 MB, free: 1.133 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001054/0.1004, allocations: 27.78 kB / 353.9 MB, free: 1.105 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000125/0.1006, allocations: 59.53 kB / 353.9 MB, free: 1.047 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001846/0.1008, allocations: 47.88 kB / 354 MB, free: 1 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000251/0.101, allocations: 238.8 kB / 354.2 MB, free: 0.7656 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001588/0.1012, allocations: 72.62 kB / 354.3 MB, free: 0.6875 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001398/0.1013, allocations: 91.66 kB / 354.4 MB, free: 0.5977 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001296/0.1015, allocations: 87.56 kB / 354.5 MB, free: 0.5117 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.538e-05/0.1015, allocations: 8 kB / 354.5 MB, free: 0.5039 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.101e-05/0.1015, allocations: 12 kB / 354.5 MB, free: 0.4922 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.065e-05/0.1016, allocations: 43.83 kB / 354.5 MB, free: 460 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.061e-05/0.1017, allocations: 61.58 kB / 354.6 MB, free: 392 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001779/0.1019, allocations: 175.8 kB / 354.8 MB, free: 216 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.1019, allocations: 0 / 354.8 MB, free: 216 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.1019, allocations: 0 / 354.8 MB, free: 216 kB / 286.1 MB Notification: Performance of Transformations before backend: time 4.608e-06/0.1019, allocations: 0 / 354.8 MB, free: 216 kB / 286.1 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.0006452/0.1025, allocations: 482.9 kB / 355.2 MB, free: 15.69 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.513e-05/0.1026, allocations: 12.03 kB / 355.2 MB, free: 15.68 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.729e-05/0.1026, allocations: 50.55 kB / 355.3 MB, free: 15.62 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.571e-05/0.1027, allocations: 27.7 kB / 355.3 MB, free: 15.59 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002614/0.103, allocations: 240.2 kB / 355.6 MB, free: 15.32 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.583e-05/0.103, allocations: 12.44 kB / 355.6 MB, free: 15.3 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.728e-05/0.103, allocations: 20 kB / 355.6 MB, free: 15.29 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003742/0.1034, allocations: 213.9 kB / 355.8 MB, free: 15.07 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.784e-05/0.1034, allocations: 3.906 kB / 355.8 MB, free: 15.06 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.029e-05/0.1035, allocations: 11.95 kB / 355.8 MB, free: 15.05 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.825e-06/0.1035, allocations: 8 kB / 355.8 MB, free: 15.04 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002583/0.1037, allocations: 129.6 kB / 355.9 MB, free: 14.92 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009599/0.1047, allocations: 0.7095 MB / 356.7 MB, free: 14.15 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002472/0.105, allocations: 142.5 kB / 356.8 MB, free: 14 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001205/0.1051, allocations: 68.83 kB / 356.9 MB, free: 13.93 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.785e-05/0.1051, allocations: 0 / 356.9 MB, free: 13.93 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.88e-05/0.1052, allocations: 50.48 kB / 356.9 MB, free: 13.88 MB / 302.1 MB Notification: Performance of pre-optimization done (n=20): time 2.335e-06/0.1052, allocations: 3.984 kB / 356.9 MB, free: 13.87 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.001463/0.1066, allocations: 0.8876 MB / 357.8 MB, free: 12.89 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.261e-05/0.1067, allocations: 51.41 kB / 357.9 MB, free: 12.83 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001477/0.1068, allocations: 179.1 kB / 358 MB, free: 12.64 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.747e-05/0.1069, allocations: 29.7 kB / 358.1 MB, free: 12.61 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.247e-05/0.107, allocations: 148.2 kB / 358.2 MB, free: 12.46 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.085e-05/0.107, allocations: 90.69 kB / 358.3 MB, free: 12.37 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.067e-06/0.107, allocations: 4 kB / 358.3 MB, free: 12.37 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000107/0.1071, allocations: 334.8 kB / 358.6 MB, free: 12.03 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000112/0.1073, allocations: 55.97 kB / 358.7 MB, free: 11.98 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000141/0.1074, allocations: 100.2 kB / 358.8 MB, free: 11.86 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000136/0.1076, allocations: 79.92 kB / 358.9 MB, free: 11.79 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.1076, allocations: 3.953 kB / 358.9 MB, free: 11.78 MB / 302.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004011/0.108, allocations: 242.1 kB / 359.1 MB, free: 11.54 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.628e-05/0.108, allocations: 8.125 kB / 359.1 MB, free: 11.53 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.781e-06/0.108, allocations: 4 kB / 359.1 MB, free: 11.52 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001506/0.1082, allocations: 28.84 kB / 359.1 MB, free: 11.49 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002047/0.1084, allocations: 55.91 kB / 359.2 MB, free: 11.44 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001078/0.1095, allocations: 1.374 MB / 360.6 MB, free: 9.93 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001151/0.1096, allocations: 11.95 kB / 360.6 MB, free: 9.918 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.661e-05/0.1096, allocations: 12 kB / 360.6 MB, free: 9.906 MB / 302.1 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.0001195/0.1098, allocations: 130 kB / 360.7 MB, free: 9.77 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.822e-05/0.1098, allocations: 19.88 kB / 360.7 MB, free: 9.75 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.331e-05/0.1099, allocations: 29.86 kB / 360.8 MB, free: 9.719 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.657e-06/0.1099, allocations: 4 kB / 360.8 MB, free: 9.715 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.442e-06/0.1099, allocations: 4.141 kB / 360.8 MB, free: 9.711 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.029e-06/0.1099, allocations: 3.984 kB / 360.8 MB, free: 9.707 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008446/0.1107, allocations: 0.6558 MB / 361.4 MB, free: 8.984 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.564e-06/0.1108, allocations: 0 / 361.4 MB, free: 8.984 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002026/0.111, allocations: 47.91 kB / 361.5 MB, free: 8.938 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001137/0.1111, allocations: 36.83 kB / 361.5 MB, free: 8.898 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.616e-05/0.1111, allocations: 12.06 kB / 361.5 MB, free: 8.887 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001008/0.1121, allocations: 1.374 MB / 362.9 MB, free: 7.383 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.1121, allocations: 4.062 kB / 362.9 MB, free: 7.379 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000531/0.1127, allocations: 409.7 kB / 363.3 MB, free: 6.957 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.139e-05/0.1127, allocations: 96.91 kB / 363.4 MB, free: 6.844 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.341e-05/0.1128, allocations: 4 kB / 363.4 MB, free: 6.84 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001132/0.1129, allocations: 4 kB / 363.4 MB, free: 6.836 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.266e-05/0.113, allocations: 27.92 kB / 363.4 MB, free: 6.809 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.138e-05/0.113, allocations: 4 kB / 363.4 MB, free: 6.805 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.796e-05/0.1131, allocations: 124.8 kB / 363.6 MB, free: 6.684 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1131, allocations: 3.938 kB / 363.6 MB, free: 6.68 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000321/0.1134, allocations: 60 kB / 363.6 MB, free: 6.621 MB / 302.1 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.000839/0.1142, allocations: 0.9576 MB / 364.6 MB, free: 5.629 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000521/0.1148, allocations: 290.5 kB / 364.9 MB, free: 5.332 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.1148, allocations: 0 / 364.9 MB, free: 5.332 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002925/0.1151, allocations: 218.8 kB / 365.1 MB, free: 5.105 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004131/0.1155, allocations: 39.67 kB / 365.1 MB, free: 5.07 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002205/0.1177, allocations: 1.542 MB / 366.7 MB, free: 3.465 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002722/0.118, allocations: 0.7407 MB / 367.4 MB, free: 2.699 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.787e-05/0.1181, allocations: 21.94 kB / 367.4 MB, free: 2.68 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.999e-05/0.1182, allocations: 67.42 kB / 367.5 MB, free: 2.613 MB / 302.1 MB Notification: Performance of SimCode: time 5.11e-07/0.1182, allocations: 0 / 367.5 MB, free: 2.613 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1786/0.2968, allocations: 4.211 MB / 371.7 MB, free: 23.42 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000146/0.297, allocations: 207.6 kB / 371.9 MB, free: 23.18 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.816/2.113, allocations: 5 kB / 371.9 MB, free: 23.18 MB / 302.1 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