Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Mechanics_Rotational_Examples_FirstGrounded",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.FirstGrounded,fileNamePrefix="Modelica_3_2_3_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.0009595/0.0009593, allocations: 96.64 kB / 16.93 MB, free: 6.445 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.0009783/0.0009784, allocations: 185.7 kB / 17.83 MB, free: 6.012 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.418/1.418, allocations: 205.4 MB / 224 MB, free: 13.18 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004409/0.000441, allocations: 15.44 kB / 280.8 MB, free: 3.668 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09016/0.09061, allocations: 47.58 MB / 328.4 MB, free: 4.02 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.FirstGrounded): time 0.002337/0.093, allocations: 1.879 MB / 330.3 MB, free: 2.125 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008605/0.09388, allocations: 0.6052 MB / 330.9 MB, free: 1.512 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001006/0.09399, allocations: 4 kB / 330.9 MB, free: 1.508 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 4.431e-05/0.09405, allocations: 27.78 kB / 330.9 MB, free: 1.48 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001763/0.09423, allocations: 75.81 kB / 331 MB, free: 1.406 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001588/0.09439, allocations: 47.88 kB / 331.1 MB, free: 1.359 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002323/0.09464, allocations: 175.6 kB / 331.2 MB, free: 1.188 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001659/0.09481, allocations: 68.73 kB / 331.3 MB, free: 1.121 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000121/0.09494, allocations: 83.7 kB / 331.4 MB, free: 1.039 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001276/0.09508, allocations: 99.48 kB / 331.5 MB, free: 0.9414 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.337e-05/0.09511, allocations: 12 kB / 331.5 MB, free: 0.9297 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.112e-05/0.09515, allocations: 12 kB / 331.5 MB, free: 0.918 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 2.863e-05/0.09518, allocations: 27.91 kB / 331.5 MB, free: 0.8906 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 6.13e-05/0.09525, allocations: 69.58 kB / 331.6 MB, free: 0.8164 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001819/0.09544, allocations: 171.7 kB / 331.8 MB, free: 0.6484 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.445e-06/0.09545, allocations: 0 / 331.8 MB, free: 0.6484 MB / 270.1 MB Notification: Performance of FrontEnd: time 3.537e-06/0.09546, allocations: 4 kB / 331.8 MB, free: 0.6445 MB / 270.1 MB Notification: Performance of Transformations before backend: time 5.139e-06/0.09547, allocations: 7.875 kB / 331.8 MB, free: 0.6367 MB / 270.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.0006465/0.09612, allocations: 487 kB / 332.2 MB, free: 112 kB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.958e-05/0.09617, allocations: 8.031 kB / 332.3 MB, free: 104 kB / 270.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.028e-05/0.09625, allocations: 58.53 kB / 332.3 MB, free: 36 kB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.473e-05/0.0963, allocations: 27.62 kB / 332.3 MB, free: 8 kB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002903/0.09659, allocations: 231.3 kB / 332.6 MB, free: 15.74 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.869e-05/0.09662, allocations: 16.44 kB / 332.6 MB, free: 15.73 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.021e-05/0.09668, allocations: 28 kB / 332.6 MB, free: 15.7 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003626/0.09705, allocations: 209.8 kB / 332.8 MB, free: 15.48 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.49e-05/0.09707, allocations: 0 / 332.8 MB, free: 15.48 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.991e-05/0.0971, allocations: 4 kB / 332.8 MB, free: 15.48 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.999e-06/0.09711, allocations: 8 kB / 332.8 MB, free: 15.47 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002516/0.09737, allocations: 129.7 kB / 333 MB, free: 15.34 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001006/0.09839, allocations: 0.7249 MB / 333.7 MB, free: 14.56 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002551/0.09866, allocations: 142.5 kB / 333.8 MB, free: 14.41 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.575e-05/0.09869, allocations: 4 kB / 333.8 MB, free: 14.41 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.564e-05/0.09873, allocations: 34.86 kB / 333.9 MB, free: 14.37 MB / 286.1 MB Notification: Performance of pre-optimization done (n=20): time 1.283e-06/0.09873, allocations: 0 / 333.9 MB, free: 14.37 MB / 286.1 MB Notification: Performance of matching and sorting (n=24): time 0.001553/0.1003, allocations: 0.8963 MB / 334.7 MB, free: 13.38 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.198e-05/0.1003, allocations: 51.41 kB / 334.8 MB, free: 13.32 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001681/0.1005, allocations: 178.6 kB / 335 MB, free: 13.13 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.172e-05/0.1005, allocations: 29.7 kB / 335 MB, free: 13.09 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.361e-05/0.1006, allocations: 140.3 kB / 335.1 MB, free: 12.95 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.207e-05/0.1007, allocations: 94.64 kB / 335.2 MB, free: 12.86 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.197e-06/0.1007, allocations: 4 kB / 335.2 MB, free: 12.86 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001346/0.1009, allocations: 330.8 kB / 335.6 MB, free: 12.52 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001171/0.101, allocations: 59.91 kB / 335.6 MB, free: 12.46 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001517/0.1012, allocations: 104.2 kB / 335.7 MB, free: 12.35 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001357/0.1013, allocations: 68 kB / 335.8 MB, free: 12.28 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.212e-06/0.1013, allocations: 0 / 335.8 MB, free: 12.28 MB / 286.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004176/0.1017, allocations: 250 kB / 336 MB, free: 12.03 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.776e-05/0.1018, allocations: 7.953 kB / 336 MB, free: 12.02 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.096e-06/0.1018, allocations: 7.938 kB / 336 MB, free: 12.01 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000164/0.1019, allocations: 36.95 kB / 336.1 MB, free: 11.97 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002116/0.1022, allocations: 51.98 kB / 336.1 MB, free: 11.92 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001288/0.1035, allocations: 1.382 MB / 337.5 MB, free: 10.4 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001235/0.1036, allocations: 11.98 kB / 337.5 MB, free: 10.39 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.775e-05/0.1036, allocations: 15.94 kB / 337.5 MB, free: 10.38 MB / 286.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.0001389/0.1038, allocations: 129.8 kB / 337.7 MB, free: 10.24 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.369e-05/0.1038, allocations: 23.67 kB / 337.7 MB, free: 10.21 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.848e-05/0.1039, allocations: 25.94 kB / 337.7 MB, free: 10.19 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.622e-06/0.1039, allocations: 7.984 kB / 337.7 MB, free: 10.18 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.848e-06/0.1039, allocations: 3.938 kB / 337.7 MB, free: 10.18 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.078e-06/0.1039, allocations: 0 / 337.7 MB, free: 10.18 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009104/0.1048, allocations: 0.653 MB / 338.4 MB, free: 9.457 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.1048, allocations: 0 / 338.4 MB, free: 9.457 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000213/0.1051, allocations: 47.97 kB / 338.4 MB, free: 9.41 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001058/0.1052, allocations: 28.84 kB / 338.5 MB, free: 9.379 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.465e-05/0.1052, allocations: 7.938 kB / 338.5 MB, free: 9.371 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001048/0.1063, allocations: 1.394 MB / 339.9 MB, free: 7.844 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.1063, allocations: 7.922 kB / 339.9 MB, free: 7.836 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006102/0.1069, allocations: 433.5 kB / 340.3 MB, free: 7.375 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.948e-05/0.107, allocations: 92.95 kB / 340.4 MB, free: 7.266 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.612e-05/0.107, allocations: 8 kB / 340.4 MB, free: 7.258 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000121/0.1071, allocations: 8 kB / 340.4 MB, free: 7.25 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.927e-05/0.1072, allocations: 19.97 kB / 340.4 MB, free: 7.23 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.989e-06/0.1072, allocations: 4 kB / 340.4 MB, free: 7.227 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001041/0.1073, allocations: 128.8 kB / 340.5 MB, free: 7.102 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1073, allocations: 4 kB / 340.5 MB, free: 7.098 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003388/0.1077, allocations: 56 kB / 340.6 MB, free: 7.043 MB / 286.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.0009699/0.1087, allocations: 1.106 MB / 341.7 MB, free: 5.891 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0005904/0.1093, allocations: 306.3 kB / 342 MB, free: 5.578 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.1093, allocations: 0 / 342 MB, free: 5.578 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003166/0.1096, allocations: 214.9 kB / 342.2 MB, free: 5.355 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003974/0.11, allocations: 31.97 kB / 342.2 MB, free: 5.324 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002461/0.1125, allocations: 2.124 MB / 344.4 MB, free: 3.137 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002886/0.1128, allocations: 0.7518 MB / 345.1 MB, free: 2.359 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 8.077e-05/0.1129, allocations: 21.94 kB / 345.1 MB, free: 2.336 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001041/0.113, allocations: 71.41 kB / 345.2 MB, free: 2.266 MB / 286.1 MB Notification: Performance of SimCode: time 7.11e-07/0.113, allocations: 0 / 345.2 MB, free: 2.266 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01624/0.1292, allocations: 4.189 MB / 349.4 MB, free: 14.09 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002092/0.1295, allocations: 209.9 kB / 349.6 MB, free: 13.84 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.707/1.836, allocations: 8.062 kB / 349.6 MB, free: 13.84 MB / 302.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.FirstGrounded.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.FirstGrounded_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_FirstGrounded_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_FirstGrounded.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.FirstGrounded_res.mat does not exist to compare? outputFormat=mat