Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.FirstGrounded,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_FirstGrounded",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.FirstGrounded,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_FirstGrounded",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009112/0.0009111, allocations: 101.7 kB / 17 MB, free: 6.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001174/0.001174, allocations: 192.8 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.411/1.411, allocations: 227.4 MB / 246 MB, free: 11.97 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002407/0.0002405, allocations: 11.98 kB / 306.8 MB, free: 1.48 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09659/0.09685, allocations: 51.49 MB / 358.3 MB, free: 13.99 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.FirstGrounded): time 0.002253/0.09914, allocations: 1.987 MB / 360.3 MB, free: 11.99 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009014/0.1001, allocations: 0.5886 MB / 360.9 MB, free: 11.4 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001028/0.1002, allocations: 4 kB / 360.9 MB, free: 11.39 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001097/0.1003, allocations: 27.78 kB / 360.9 MB, free: 11.37 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001114/0.1004, allocations: 59.52 kB / 361 MB, free: 11.31 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001845/0.1006, allocations: 47.91 kB / 361 MB, free: 11.26 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002447/0.1009, allocations: 238.8 kB / 361.2 MB, free: 11.03 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001641/0.101, allocations: 76.62 kB / 361.3 MB, free: 10.95 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001693/0.1012, allocations: 91.64 kB / 361.4 MB, free: 10.86 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001248/0.1013, allocations: 87.56 kB / 361.5 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.474e-05/0.1014, allocations: 8 kB / 361.5 MB, free: 10.76 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.191e-05/0.1014, allocations: 20 kB / 361.5 MB, free: 10.74 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.4e-05/0.1015, allocations: 39.83 kB / 361.6 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.594e-05/0.1015, allocations: 69.58 kB / 361.6 MB, free: 10.63 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001823/0.1017, allocations: 179.7 kB / 361.8 MB, free: 10.45 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.149e-06/0.1017, allocations: 0 / 361.8 MB, free: 10.45 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.1018, allocations: 0 / 361.8 MB, free: 10.45 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.859e-06/0.1018, allocations: 0 / 361.8 MB, free: 10.45 MB / 302.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.0005462/0.1023, allocations: 479 kB / 362.3 MB, free: 9.938 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.836e-05/0.1024, allocations: 16.03 kB / 362.3 MB, free: 9.922 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.239e-05/0.1024, allocations: 54.48 kB / 362.3 MB, free: 9.859 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001365/0.1026, allocations: 39.7 kB / 362.4 MB, free: 9.82 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002312/0.1028, allocations: 227.4 kB / 362.6 MB, free: 9.555 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.799e-05/0.1028, allocations: 24.33 kB / 362.6 MB, free: 9.531 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.389e-05/0.1029, allocations: 20 kB / 362.6 MB, free: 9.512 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003286/0.1032, allocations: 213.9 kB / 362.8 MB, free: 9.289 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.583e-05/0.1032, allocations: 3.906 kB / 362.9 MB, free: 9.285 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.601e-05/0.1033, allocations: 4 kB / 362.9 MB, free: 9.281 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.256e-06/0.1033, allocations: 8 kB / 362.9 MB, free: 9.273 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000235/0.1035, allocations: 137.5 kB / 363 MB, free: 9.137 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008954/0.1044, allocations: 0.7133 MB / 363.7 MB, free: 8.371 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002497/0.1047, allocations: 149.3 kB / 363.9 MB, free: 8.219 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001229/0.1048, allocations: 76.77 kB / 363.9 MB, free: 8.141 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.115e-05/0.1048, allocations: 0 / 363.9 MB, free: 8.141 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.379e-05/0.1049, allocations: 34.91 kB / 364 MB, free: 8.098 MB / 302.1 MB Notification: Performance of pre-optimization done (n=20): time 1.072e-06/0.1049, allocations: 0 / 364 MB, free: 8.098 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.001405/0.1063, allocations: 0.9016 MB / 364.9 MB, free: 7.109 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.945e-05/0.1063, allocations: 51.41 kB / 364.9 MB, free: 7.047 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001374/0.1065, allocations: 175.2 kB / 365.1 MB, free: 6.863 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.673e-05/0.1065, allocations: 29.7 kB / 365.1 MB, free: 6.828 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.227e-05/0.1066, allocations: 140.2 kB / 365.3 MB, free: 6.688 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.891e-05/0.1066, allocations: 86.75 kB / 365.3 MB, free: 6.602 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.178e-06/0.1067, allocations: 4 kB / 365.3 MB, free: 6.598 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.396e-05/0.1068, allocations: 330.8 kB / 365.7 MB, free: 6.266 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001113/0.1069, allocations: 63.97 kB / 365.7 MB, free: 6.203 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001295/0.107, allocations: 100.2 kB / 365.8 MB, free: 6.09 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001287/0.1071, allocations: 72.66 kB / 365.9 MB, free: 6.02 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.182e-06/0.1072, allocations: 0 / 365.9 MB, free: 6.02 MB / 302.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003883/0.1075, allocations: 246 kB / 366.1 MB, free: 5.77 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.413e-05/0.1076, allocations: 8 kB / 366.1 MB, free: 5.762 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.1076, allocations: 0 / 366.1 MB, free: 5.762 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001516/0.1077, allocations: 48.91 kB / 366.2 MB, free: 5.711 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001997/0.108, allocations: 51.91 kB / 366.2 MB, free: 5.66 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001014/0.109, allocations: 1.378 MB / 367.6 MB, free: 4.148 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001034/0.1091, allocations: 11.98 kB / 367.6 MB, free: 4.137 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.497e-05/0.1091, allocations: 8 kB / 367.6 MB, free: 4.129 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.000118/0.1092, allocations: 133.8 kB / 367.8 MB, free: 3.988 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.768e-05/0.1093, allocations: 15.81 kB / 367.8 MB, free: 3.973 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.826e-05/0.1093, allocations: 29.81 kB / 367.8 MB, free: 3.945 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.496e-06/0.1093, allocations: 4 kB / 367.8 MB, free: 3.941 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.296e-06/0.1094, allocations: 4.062 kB / 367.8 MB, free: 3.938 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.1094, allocations: 0 / 367.8 MB, free: 3.938 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000809/0.1102, allocations: 0.6626 MB / 368.5 MB, free: 3.203 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.454e-06/0.1102, allocations: 0 / 368.5 MB, free: 3.203 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001989/0.1104, allocations: 47.91 kB / 368.5 MB, free: 3.156 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001032/0.1105, allocations: 32.78 kB / 368.6 MB, free: 3.121 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.623e-05/0.1105, allocations: 8 kB / 368.6 MB, free: 3.113 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009657/0.1115, allocations: 1.386 MB / 370 MB, free: 1.594 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.724e-06/0.1115, allocations: 0 / 370 MB, free: 1.594 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005107/0.112, allocations: 409.5 kB / 370.4 MB, free: 1.172 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.581e-05/0.1121, allocations: 96.91 kB / 370.5 MB, free: 1.059 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.447e-05/0.1121, allocations: 4 kB / 370.5 MB, free: 1.055 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001182/0.1122, allocations: 16 kB / 370.5 MB, free: 1.039 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.912e-05/0.1123, allocations: 15.97 kB / 370.5 MB, free: 1.023 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.311e-05/0.1123, allocations: 8 kB / 370.5 MB, free: 1.016 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001049/0.1124, allocations: 124.8 kB / 370.6 MB, free: 0.8945 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1124, allocations: 0 / 370.6 MB, free: 0.8945 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003172/0.1128, allocations: 60 kB / 370.7 MB, free: 0.8359 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.1847/0.2974, allocations: 0.9363 MB / 371.6 MB, free: 19.19 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006094/0.2981, allocations: 294.4 kB / 371.9 MB, free: 19.08 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.2981, allocations: 0.625 kB / 371.9 MB, free: 19.08 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003288/0.2984, allocations: 211.6 kB / 372.1 MB, free: 18.97 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004818/0.2989, allocations: 41.41 kB / 372.2 MB, free: 18.97 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002387/0.3013, allocations: 1.547 MB / 373.7 MB, free: 18.25 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002109/0.3015, allocations: 0.7461 MB / 374.4 MB, free: 17.55 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.031e-05/0.3016, allocations: 22.89 kB / 374.5 MB, free: 17.54 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.963e-05/0.3017, allocations: 66.41 kB / 374.5 MB, free: 17.54 MB / 302.1 MB Notification: Performance of SimCode: time 6.31e-07/0.3017, allocations: 4 kB / 374.5 MB, free: 17.53 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01654/0.3183, allocations: 4.219 MB / 378.8 MB, free: 17.18 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001878/0.3185, allocations: 207.6 kB / 379 MB, free: 16.94 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.807/2.126, allocations: 0 / 379 MB, free: 16.94 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Rotational_Examples_FirstGrounded_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Rotational_Examples_FirstGrounded.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded_res.mat does not exist to compare? outputFormat=mat