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.001121/0.001121, allocations: 95.88 kB / 16.31 MB, free: 6.461 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.001368/0.001368, allocations: 174.1 kB / 17.19 MB, free: 6.348 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.329/1.329, allocations: 223.2 MB / 241.1 MB, free: 380 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002583/0.0002584, allocations: 8 kB / 300.8 MB, free: 6.359 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09927/0.09955, allocations: 50.42 MB / 351.2 MB, free: 3.93 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.FirstGrounded): time 0.002211/0.1018, allocations: 1.869 MB / 353.1 MB, free: 2.047 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008485/0.1027, allocations: 0.5692 MB / 353.7 MB, free: 1.473 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.52e-05/0.1028, allocations: 8 kB / 353.7 MB, free: 1.465 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 4.432e-05/0.1028, allocations: 19.78 kB / 353.7 MB, free: 1.445 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001633/0.103, allocations: 83.8 kB / 353.8 MB, free: 1.363 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001484/0.1032, allocations: 47.83 kB / 353.8 MB, free: 1.316 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002265/0.1034, allocations: 175.6 kB / 354 MB, free: 1.145 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001491/0.1035, allocations: 76.55 kB / 354.1 MB, free: 1.062 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001111/0.1037, allocations: 79.7 kB / 354.1 MB, free: 0.9844 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001248/0.1038, allocations: 95.55 kB / 354.2 MB, free: 0.8906 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.48e-05/0.1038, allocations: 12 kB / 354.3 MB, free: 0.8789 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.098e-05/0.1039, allocations: 12 kB / 354.3 MB, free: 0.8672 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.274e-05/0.1039, allocations: 27.91 kB / 354.3 MB, free: 0.8398 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.76e-05/0.104, allocations: 69.58 kB / 354.4 MB, free: 0.7656 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001764/0.1041, allocations: 167.8 kB / 354.5 MB, free: 0.6016 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.114e-06/0.1041, allocations: 0 / 354.5 MB, free: 0.6016 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.1042, allocations: 0 / 354.5 MB, free: 0.6016 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.924e-06/0.1042, allocations: 11.94 kB / 354.5 MB, free: 0.5898 MB / 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.0005803/0.1048, allocations: 482.9 kB / 355 MB, free: 72 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.521e-05/0.1048, allocations: 8.031 kB / 355 MB, free: 64 kB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.728e-05/0.1049, allocations: 62.56 kB / 355.1 MB, free: 15.99 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.129e-05/0.1049, allocations: 23.72 kB / 355.1 MB, free: 15.96 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002258/0.1051, allocations: 224.3 kB / 355.3 MB, free: 15.7 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.18e-05/0.1052, allocations: 24.38 kB / 355.3 MB, free: 15.68 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.915e-05/0.1052, allocations: 24 kB / 355.4 MB, free: 15.66 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003348/0.1056, allocations: 205.8 kB / 355.6 MB, free: 15.45 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.501e-05/0.1056, allocations: 7.906 kB / 355.6 MB, free: 15.44 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.073e-05/0.1056, allocations: 7.984 kB / 355.6 MB, free: 15.43 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.498e-06/0.1056, allocations: 11.95 kB / 355.6 MB, free: 15.42 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002396/0.1059, allocations: 129.7 kB / 355.7 MB, free: 15.29 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009236/0.1068, allocations: 0.7093 MB / 356.4 MB, free: 14.53 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002413/0.1071, allocations: 146.5 kB / 356.6 MB, free: 14.38 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.761e-05/0.1071, allocations: 4 kB / 356.6 MB, free: 14.38 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.383e-05/0.1071, allocations: 38.56 kB / 356.6 MB, free: 14.33 MB / 302.1 MB Notification: Performance of pre-optimization done (n=20): time 2.514e-06/0.1071, allocations: 0 / 356.6 MB, free: 14.33 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.001459/0.1086, allocations: 0.9072 MB / 357.5 MB, free: 13.34 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.435e-05/0.1086, allocations: 55.41 kB / 357.6 MB, free: 13.27 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001571/0.1088, allocations: 171.2 kB / 357.7 MB, free: 13.09 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.094e-05/0.1088, allocations: 33.7 kB / 357.8 MB, free: 13.05 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.091e-05/0.1089, allocations: 144.2 kB / 357.9 MB, free: 12.91 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.238e-05/0.109, allocations: 86.75 kB / 358 MB, free: 12.82 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.947e-06/0.109, allocations: 4 kB / 358 MB, free: 12.82 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001305/0.1091, allocations: 330.8 kB / 358.3 MB, free: 12.48 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001165/0.1093, allocations: 55.97 kB / 358.4 MB, free: 12.43 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001325/0.1094, allocations: 104.2 kB / 358.5 MB, free: 12.31 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001306/0.1096, allocations: 68 kB / 358.6 MB, free: 12.25 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.102e-06/0.1096, allocations: 0 / 358.6 MB, free: 12.25 MB / 302.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004008/0.11, allocations: 250.1 kB / 358.8 MB, free: 11.99 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.893e-05/0.11, allocations: 6.938 kB / 358.8 MB, free: 11.99 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.923e-06/0.11, allocations: 11.94 kB / 358.8 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001532/0.1102, allocations: 32.83 kB / 358.8 MB, free: 11.94 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002111/0.1104, allocations: 51.97 kB / 358.9 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001202/0.1116, allocations: 1.378 MB / 360.3 MB, free: 10.38 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001123/0.1117, allocations: 15.98 kB / 360.3 MB, free: 10.36 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.604e-05/0.1118, allocations: 15.92 kB / 360.3 MB, free: 10.35 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.0001213/0.1119, allocations: 137.2 kB / 360.4 MB, free: 10.21 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.054e-05/0.1119, allocations: 19.88 kB / 360.5 MB, free: 10.19 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.779e-05/0.112, allocations: 29.86 kB / 360.5 MB, free: 10.16 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.427e-06/0.112, allocations: 4 kB / 360.5 MB, free: 10.15 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.092e-06/0.112, allocations: 4 kB / 360.5 MB, free: 10.15 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.17e-06/0.112, allocations: 0 / 360.5 MB, free: 10.15 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008673/0.1129, allocations: 0.6608 MB / 361.2 MB, free: 9.418 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.504e-06/0.1129, allocations: 0 / 361.2 MB, free: 9.418 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002575/0.1132, allocations: 43.97 kB / 361.2 MB, free: 9.375 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001115/0.1133, allocations: 32.84 kB / 361.2 MB, free: 9.34 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.409e-05/0.1133, allocations: 11.94 kB / 361.2 MB, free: 9.328 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001145/0.1145, allocations: 1.39 MB / 362.6 MB, free: 7.809 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.035e-06/0.1145, allocations: 8 kB / 362.6 MB, free: 7.801 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000645/0.1151, allocations: 439.6 kB / 363.1 MB, free: 7.336 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.777e-05/0.1152, allocations: 88.92 kB / 363.2 MB, free: 7.23 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.792e-05/0.1152, allocations: 11.95 kB / 363.2 MB, free: 7.219 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001166/0.1154, allocations: 8 kB / 363.2 MB, free: 7.211 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.91e-05/0.1154, allocations: 15.97 kB / 363.2 MB, free: 7.195 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.422e-05/0.1154, allocations: 8 kB / 363.2 MB, free: 7.188 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.343e-05/0.1155, allocations: 120.8 kB / 363.3 MB, free: 7.07 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1155, allocations: 4 kB / 363.3 MB, free: 7.066 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003196/0.1159, allocations: 60 kB / 363.4 MB, free: 7.008 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.0009487/0.1168, allocations: 1.102 MB / 364.5 MB, free: 5.863 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005169/0.1174, allocations: 294.9 kB / 364.8 MB, free: 5.562 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.588e-06/0.1174, allocations: 4 kB / 364.8 MB, free: 5.559 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002871/0.1177, allocations: 214.5 kB / 365 MB, free: 5.336 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003364/0.118, allocations: 27.98 kB / 365 MB, free: 5.309 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002453/0.1205, allocations: 2.14 MB / 367.2 MB, free: 3.102 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003274/0.1208, allocations: 0.7524 MB / 367.9 MB, free: 2.324 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.162e-05/0.1209, allocations: 17.95 kB / 367.9 MB, free: 2.309 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001016/0.121, allocations: 71.41 kB / 368 MB, free: 2.238 MB / 302.1 MB Notification: Performance of SimCode: time 3.71e-07/0.121, allocations: 0 / 368 MB, free: 2.238 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.174/0.295, allocations: 4.189 MB / 372.2 MB, free: 24.03 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000143/0.2952, allocations: 203.7 kB / 372.4 MB, free: 23.8 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.736/2.031, allocations: 0 / 372.4 MB, free: 23.8 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