Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00162/0.001625, allocations: 189.2 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.099/2.099, allocations: 205.4 MB / 222.5 MB, free: 13.85 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001153/0.001153, allocations: 98.86 kB / 270.9 MB, free: 13.37 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003996/0.0004, allocations: 8 kB / 327.1 MB, free: 15 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1036/0.1041, allocations: 47.59 MB / 374.6 MB, free: 15.34 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.00413/0.1083, allocations: 2.187 MB / 376.8 MB, free: 13.13 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.003039/0.1114, allocations: 1.098 MB / 377.9 MB, free: 12.03 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003383/0.1118, allocations: 4 kB / 377.9 MB, free: 12.02 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002022/0.112, allocations: 51.67 kB / 378 MB, free: 11.97 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008544/0.1128, allocations: 183.4 kB / 378.2 MB, free: 11.79 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000726/0.1136, allocations: 187.7 kB / 378.3 MB, free: 11.61 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008736/0.1145, allocations: 403.6 kB / 378.7 MB, free: 11.21 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002816/0.1148, allocations: 98.88 kB / 378.8 MB, free: 11.11 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005629/0.1154, allocations: 255.2 kB / 379.1 MB, free: 10.86 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006004/0.116, allocations: 303 kB / 379.4 MB, free: 10.57 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001138/0.1161, allocations: 28 kB / 379.4 MB, free: 10.54 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003537/0.1165, allocations: 91.92 kB / 379.5 MB, free: 10.45 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002049/0.1167, allocations: 115.6 kB / 379.6 MB, free: 10.34 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001495/0.1169, allocations: 93.52 kB / 379.7 MB, free: 10.24 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007916/0.1177, allocations: 475 kB / 380.2 MB, free: 9.773 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.1177, allocations: 0 / 380.2 MB, free: 9.773 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.155e-06/0.1177, allocations: 0 / 380.2 MB, free: 9.773 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.194e-05/0.1178, allocations: 0 / 380.2 MB, free: 9.773 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.002341/0.1201, allocations: 0.7251 MB / 380.9 MB, free: 8.996 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.542e-05/0.1202, allocations: 12.03 kB / 380.9 MB, free: 8.984 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001692/0.1204, allocations: 78.52 kB / 381 MB, free: 8.898 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004734/0.1209, allocations: 67.42 kB / 381 MB, free: 8.832 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007753/0.1216, allocations: 349.3 kB / 381.4 MB, free: 8.453 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000219/0.1219, allocations: 96.39 kB / 381.5 MB, free: 8.348 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001384/0.122, allocations: 43.94 kB / 381.5 MB, free: 8.305 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001778/0.1238, allocations: 0.5643 MB / 382.1 MB, free: 7.73 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.03e-05/0.1239, allocations: 4 kB / 382.1 MB, free: 7.727 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.477e-05/0.124, allocations: 16 kB / 382.1 MB, free: 7.711 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.821e-05/0.124, allocations: 8 kB / 382.1 MB, free: 7.703 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002434/0.1265, allocations: 0.6558 MB / 382.8 MB, free: 7.047 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004261/0.1308, allocations: 1.31 MB / 384.1 MB, free: 5.676 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002002/0.1328, allocations: 0.5522 MB / 384.6 MB, free: 5.117 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.042e-05/0.133, allocations: 8.547 kB / 384.6 MB, free: 5.109 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.981e-05/0.133, allocations: 39.12 kB / 384.7 MB, free: 5.062 MB / 282.7 MB Notification: Performance of pre-optimization done (n=61): time 6.623e-06/0.1331, allocations: 4 kB / 384.7 MB, free: 5.059 MB / 282.7 MB Notification: Performance of matching and sorting (n=69): time 0.01255/0.1456, allocations: 2.951 MB / 387.6 MB, free: 1.988 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001047/0.1458, allocations: 85.67 kB / 387.7 MB, free: 1.883 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006724/0.1465, allocations: 334.9 kB / 388 MB, free: 1.543 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001273/0.1466, allocations: 45.69 kB / 388.1 MB, free: 1.492 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001737/0.1468, allocations: 212 kB / 388.3 MB, free: 1.285 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000307/0.1471, allocations: 228.8 kB / 388.5 MB, free: 1.059 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.656e-05/0.1472, allocations: 16 kB / 388.5 MB, free: 1.043 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001872/0.1474, allocations: 330.8 kB / 388.9 MB, free: 0.7109 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00112/0.1485, allocations: 297.2 kB / 389.1 MB, free: 432 kB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001208/0.1497, allocations: 354.5 kB / 389.5 MB, free: 64 kB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.3333/0.4831, allocations: 269.9 kB / 389.8 MB, free: 20.75 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.868e-06/0.4831, allocations: 0.5938 kB / 389.8 MB, free: 20.75 MB / 282.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.005765/0.4889, allocations: 0.8965 MB / 390.7 MB, free: 20.69 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.939e-05/0.489, allocations: 5.5 kB / 390.7 MB, free: 20.69 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.726e-05/0.4891, allocations: 1.078 kB / 390.7 MB, free: 20.69 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002904/0.492, allocations: 473.5 kB / 391.1 MB, free: 20.68 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001302/0.4933, allocations: 89.44 kB / 391.2 MB, free: 20.68 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003204/0.4966, allocations: 1.088 MB / 392.3 MB, free: 20.06 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001349/0.498, allocations: 81.42 kB / 392.4 MB, free: 20.05 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001764/0.4982, allocations: 26.95 kB / 392.4 MB, free: 20.04 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 15 (bearingFriction.free,gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,gear.ideal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * 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: 0 * Non-linear torn systems: 1 {2 32} Notification: Performance of prepare postOptimizeDAE: time 0.0004951/0.4988, allocations: 173.9 kB / 392.6 MB, free: 19.89 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002253/0.499, allocations: 41.42 kB / 392.6 MB, free: 19.89 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002615/0.4993, allocations: 67.62 kB / 392.7 MB, free: 19.84 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-05/0.4993, allocations: 6.656 kB / 392.7 MB, free: 19.84 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.034e-05/0.4993, allocations: 8.953 kB / 392.7 MB, free: 19.83 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.473e-05/0.4994, allocations: 3.75 kB / 392.7 MB, free: 19.83 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007808/0.5072, allocations: 1.781 MB / 394.5 MB, free: 19.01 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.696e-05/0.5073, allocations: 0 / 394.5 MB, free: 19.01 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009892/0.5083, allocations: 86.36 kB / 394.6 MB, free: 19 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002364/0.5107, allocations: 447.8 kB / 395 MB, free: 18.88 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000185/0.5109, allocations: 19.06 kB / 395 MB, free: 18.87 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002562/0.5135, allocations: 1.036 MB / 396.1 MB, free: 18.15 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.803e-06/0.5136, allocations: 0 / 396.1 MB, free: 18.15 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007029/0.5206, allocations: 1.332 MB / 397.4 MB, free: 17.56 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006106/0.5213, allocations: 182.5 kB / 397.6 MB, free: 17.42 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001961/0.5215, allocations: 17.73 kB / 397.6 MB, free: 17.41 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001187/0.5227, allocations: 72.53 kB / 397.7 MB, free: 17.39 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005146/0.5233, allocations: 98.09 kB / 397.7 MB, free: 17.38 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001236/0.5234, allocations: 26.05 kB / 397.8 MB, free: 17.38 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0006788/0.5241, allocations: 242 kB / 398 MB, free: 17.26 MB / 282.7 MB Notification: Performance of sort global known variables: time 2.455e-06/0.5241, allocations: 4 kB / 398 MB, free: 17.25 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001282/0.5254, allocations: 150.1 kB / 398.2 MB, free: 17.23 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 9 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 4 (bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 38 * 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: 0 * Non-linear torn systems: 1 {2 29} Notification: Performance of Backend phase and start with SimCode phase: time 0.006861/0.5323, allocations: 1.982 MB / 400.1 MB, free: 16.03 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.003982/0.5364, allocations: 0.7159 MB / 400.9 MB, free: 15.8 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 9.488e-06/0.5365, allocations: 0 / 400.9 MB, free: 15.8 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002836/0.5393, allocations: 397.9 kB / 401.2 MB, free: 15.69 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001117/0.5405, allocations: 45.83 kB / 401.3 MB, free: 15.66 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01828/0.5588, allocations: 3.751 MB / 405 MB, free: 13.75 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006148/0.5595, allocations: 0.8301 MB / 405.9 MB, free: 13.04 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006508/0.5602, allocations: 137.6 kB / 406 MB, free: 12.95 MB / 282.7 MB Notification: Performance of SimCode: time 2.034e-06/0.5603, allocations: 0 / 406 MB, free: 12.95 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.102/3.662, allocations: 8.499 MB / 414.5 MB, free: 7.375 MB / 282.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat does not exist to compare? outputFormat=mat