Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.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.LossyGearDemo2,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2",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.001164/0.001164, allocations: 93.83 kB / 16.3 MB, free: 6.457 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.001179/0.001179, allocations: 185.5 kB / 17.2 MB, free: 6.34 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: 5.387 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003405/0.0003411, allocations: 7.031 kB / 300.8 MB, free: 6.027 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.107/0.1074, allocations: 50.42 MB / 351.2 MB, free: 11.61 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.003/0.1104, allocations: 2.184 MB / 353.4 MB, free: 9.418 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002073/0.1125, allocations: 1.062 MB / 354.5 MB, free: 8.348 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001809/0.1127, allocations: 4 kB / 354.5 MB, free: 8.344 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000154/0.1129, allocations: 51.67 kB / 354.5 MB, free: 8.293 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005383/0.1134, allocations: 194.7 kB / 354.7 MB, free: 8.105 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003915/0.1138, allocations: 187.7 kB / 354.9 MB, free: 7.922 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004697/0.1143, allocations: 395.7 kB / 355.3 MB, free: 7.535 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001902/0.1145, allocations: 105.9 kB / 355.4 MB, free: 7.43 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003207/0.1148, allocations: 251.2 kB / 355.6 MB, free: 7.184 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003637/0.1152, allocations: 295 kB / 355.9 MB, free: 6.895 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.951e-05/0.1153, allocations: 32 kB / 356 MB, free: 6.863 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001868/0.1155, allocations: 95.88 kB / 356 MB, free: 6.77 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000148/0.1156, allocations: 115.7 kB / 356.2 MB, free: 6.656 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.591e-05/0.1157, allocations: 97.45 kB / 356.3 MB, free: 6.555 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004526/0.1162, allocations: 458.8 kB / 356.7 MB, free: 6.105 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.036e-06/0.1162, allocations: 0 / 356.7 MB, free: 6.105 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.434e-06/0.1162, allocations: 0 / 356.7 MB, free: 6.105 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.242e-06/0.1162, allocations: 4 kB / 356.7 MB, free: 6.102 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.001394/0.1176, allocations: 0.7213 MB / 357.4 MB, free: 5.328 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.323e-05/0.1177, allocations: 16.02 kB / 357.4 MB, free: 5.312 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001005/0.1178, allocations: 86.41 kB / 357.5 MB, free: 5.219 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003189/0.1181, allocations: 67.38 kB / 357.6 MB, free: 5.152 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005088/0.1186, allocations: 353.3 kB / 357.9 MB, free: 4.77 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001209/0.1188, allocations: 96.39 kB / 358 MB, free: 4.664 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.267e-05/0.1188, allocations: 40 kB / 358.1 MB, free: 4.625 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001012/0.1199, allocations: 0.5566 MB / 358.6 MB, free: 4.059 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.121e-05/0.1199, allocations: 7.906 kB / 358.6 MB, free: 4.051 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.861e-05/0.12, allocations: 16 kB / 358.7 MB, free: 4.035 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.417e-05/0.12, allocations: 15.95 kB / 358.7 MB, free: 4.02 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001289/0.1213, allocations: 0.6479 MB / 359.3 MB, free: 3.367 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002398/0.1237, allocations: 1.307 MB / 360.6 MB, free: 2.004 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001096/0.1248, allocations: 0.5602 MB / 361.2 MB, free: 1.43 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.395e-05/0.1249, allocations: 12.55 kB / 361.2 MB, free: 1.418 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.948e-05/0.1249, allocations: 39.12 kB / 361.2 MB, free: 1.371 MB / 286.1 MB Notification: Performance of pre-optimization done (n=61): time 2.304e-06/0.1249, allocations: 0 / 361.2 MB, free: 1.371 MB / 286.1 MB Notification: Performance of matching and sorting (n=69): time 0.006743/0.1317, allocations: 2.951 MB / 364.2 MB, free: 14.3 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.685e-05/0.1318, allocations: 89.67 kB / 364.3 MB, free: 14.2 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004088/0.1322, allocations: 331 kB / 364.6 MB, free: 13.85 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.598e-05/0.1322, allocations: 37.7 kB / 364.6 MB, free: 13.81 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001125/0.1324, allocations: 157.6 kB / 364.8 MB, free: 13.65 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001874/0.1326, allocations: 232.7 kB / 365 MB, free: 13.42 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.915e-05/0.1326, allocations: 16 kB / 365 MB, free: 13.41 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001484/0.1328, allocations: 346.8 kB / 365.4 MB, free: 13.06 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005832/0.1333, allocations: 301.2 kB / 365.7 MB, free: 12.77 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006182/0.134, allocations: 350.5 kB / 366 MB, free: 12.41 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000551/0.1345, allocations: 267.2 kB / 366.3 MB, free: 12.15 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.1345, allocations: 0 / 366.3 MB, free: 12.15 MB / 302.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001772/0.1363, allocations: 0.9084 MB / 367.2 MB, free: 11.23 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.315e-05/0.1364, allocations: 8 kB / 367.2 MB, free: 11.23 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.768e-06/0.1364, allocations: 3.953 kB / 367.2 MB, free: 11.22 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001072/0.1375, allocations: 482.7 kB / 367.7 MB, free: 10.75 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003666/0.1378, allocations: 87.83 kB / 367.7 MB, free: 10.66 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001289/0.1391, allocations: 1.079 MB / 368.8 MB, free: 9.559 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005086/0.1397, allocations: 76.03 kB / 368.9 MB, free: 9.484 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.85e-05/0.1397, allocations: 27.98 kB / 368.9 MB, free: 9.457 MB / 302.1 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.0002668/0.14, allocations: 181.7 kB / 369.1 MB, free: 9.27 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.237e-05/0.1401, allocations: 51.42 kB / 369.1 MB, free: 9.219 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001484/0.1403, allocations: 67.7 kB / 369.2 MB, free: 9.152 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.305e-06/0.1403, allocations: 8 kB / 369.2 MB, free: 9.145 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.217e-06/0.1403, allocations: 0 / 369.2 MB, free: 9.145 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.69e-06/0.1403, allocations: 0 / 369.2 MB, free: 9.145 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003262/0.1436, allocations: 1.781 MB / 371 MB, free: 7.297 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.252e-06/0.1436, allocations: 4 kB / 371 MB, free: 7.293 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003635/0.144, allocations: 79.89 kB / 371.1 MB, free: 7.215 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009725/0.1449, allocations: 444.5 kB / 371.5 MB, free: 6.777 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.382e-05/0.145, allocations: 31.97 kB / 371.6 MB, free: 6.746 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001276/0.1463, allocations: 1.033 MB / 372.6 MB, free: 5.688 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.904e-06/0.1463, allocations: 0 / 372.6 MB, free: 5.688 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002478/0.1488, allocations: 1.327 MB / 373.9 MB, free: 4.332 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002999/0.1491, allocations: 184.6 kB / 374.1 MB, free: 4.133 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.375e-05/0.1492, allocations: 19.95 kB / 374.1 MB, free: 4.113 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004466/0.1497, allocations: 72 kB / 374.2 MB, free: 4.043 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001996/0.1499, allocations: 96.36 kB / 374.3 MB, free: 3.949 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.926e-05/0.1499, allocations: 27.92 kB / 374.3 MB, free: 3.922 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003027/0.1502, allocations: 245.9 kB / 374.5 MB, free: 3.684 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1503, allocations: 4 kB / 374.5 MB, free: 3.68 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005219/0.1508, allocations: 140 kB / 374.7 MB, free: 3.543 MB / 302.1 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.003125/0.1539, allocations: 2.008 MB / 376.7 MB, free: 1.492 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00158/0.1555, allocations: 0.712 MB / 377.4 MB, free: 0.7812 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.556e-06/0.1555, allocations: 0 / 377.4 MB, free: 0.7812 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008415/0.1564, allocations: 396.2 kB / 377.8 MB, free: 400 kB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000429/0.1568, allocations: 48.84 kB / 377.8 MB, free: 348 kB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006755/0.1636, allocations: 3.716 MB / 381.6 MB, free: 12.56 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004404/0.1641, allocations: 0.829 MB / 382.4 MB, free: 11.71 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002449/0.1643, allocations: 67.34 kB / 382.4 MB, free: 11.64 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002099/0.1645, allocations: 127.4 kB / 382.6 MB, free: 11.52 MB / 318.1 MB Notification: Performance of SimCode: time 6.71e-07/0.1645, allocations: 0 / 382.6 MB, free: 11.52 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03172/0.1963, allocations: 12.41 MB / 395 MB, free: 15.32 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001933/0.1965, allocations: 215.8 kB / 395.2 MB, free: 15.07 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.149/2.346, allocations: 0 / 395.2 MB, free: 15.07 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat does not exist to compare? outputFormat=mat