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.0008472/0.000847, allocations: 87.11 kB / 16.31 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.0008863/0.0008863, allocations: 180.2 kB / 17.21 MB, free: 6.328 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.354/1.354, allocations: 223.3 MB / 241.2 MB, free: 360 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002593/0.0002594, allocations: 4 kB / 300.9 MB, free: 6.371 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1032/0.1035, allocations: 50.42 MB / 351.3 MB, free: 3.941 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.002882/0.1064, allocations: 2.306 MB / 353.6 MB, free: 1.621 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001778/0.1082, allocations: 1.038 MB / 354.7 MB, free: 0.5742 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001591/0.1084, allocations: 4 kB / 354.7 MB, free: 0.5703 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002075/0.1086, allocations: 55.61 kB / 354.7 MB, free: 0.5156 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004707/0.1091, allocations: 159.2 kB / 354.9 MB, free: 368 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003978/0.1095, allocations: 191.7 kB / 355.1 MB, free: 176 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005524/0.11, allocations: 0.5611 MB / 355.6 MB, free: 15.61 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001901/0.1102, allocations: 94.02 kB / 355.7 MB, free: 15.52 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003307/0.1106, allocations: 259.2 kB / 356 MB, free: 15.26 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003536/0.1109, allocations: 303 kB / 356.3 MB, free: 14.96 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.58e-05/0.111, allocations: 28 kB / 356.3 MB, free: 14.94 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002078/0.1112, allocations: 99.94 kB / 356.4 MB, free: 14.84 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000147/0.1114, allocations: 119.6 kB / 356.5 MB, free: 14.72 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.984e-05/0.1115, allocations: 97.45 kB / 356.6 MB, free: 14.62 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000461/0.112, allocations: 467 kB / 357.1 MB, free: 14.16 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.112, allocations: 0 / 357.1 MB, free: 14.16 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.112, allocations: 0 / 357.1 MB, free: 14.16 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.372e-06/0.112, allocations: 0 / 357.1 MB, free: 14.16 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.001362/0.1134, allocations: 0.7329 MB / 357.8 MB, free: 13.38 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.948e-05/0.1134, allocations: 8.031 kB / 357.8 MB, free: 13.37 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001072/0.1135, allocations: 78.53 kB / 357.9 MB, free: 13.29 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003118/0.1138, allocations: 67.38 kB / 358 MB, free: 13.22 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000475/0.1143, allocations: 345.3 kB / 358.3 MB, free: 12.84 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001323/0.1145, allocations: 100.4 kB / 358.4 MB, free: 12.73 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.652e-05/0.1145, allocations: 43.98 kB / 358.4 MB, free: 12.69 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00101/0.1156, allocations: 0.5566 MB / 359 MB, free: 12.12 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.074e-05/0.1156, allocations: 7.906 kB / 359 MB, free: 12.12 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.041e-05/0.1157, allocations: 16 kB / 359 MB, free: 12.1 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.248e-05/0.1157, allocations: 11.95 kB / 359 MB, free: 12.09 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001268/0.1169, allocations: 0.6518 MB / 359.7 MB, free: 11.43 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002278/0.1192, allocations: 1.314 MB / 361 MB, free: 10.06 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001073/0.1203, allocations: 0.5573 MB / 361.5 MB, free: 9.492 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005957/0.1209, allocations: 326.4 kB / 361.9 MB, free: 9.172 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.35e-05/0.121, allocations: 12.55 kB / 361.9 MB, free: 9.16 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.134e-05/0.121, allocations: 43.12 kB / 361.9 MB, free: 9.109 MB / 302.1 MB Notification: Performance of pre-optimization done (n=61): time 2.194e-06/0.121, allocations: 3.938 kB / 361.9 MB, free: 9.105 MB / 302.1 MB Notification: Performance of matching and sorting (n=69): time 0.006346/0.1274, allocations: 2.957 MB / 364.9 MB, free: 6.027 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.523e-05/0.1275, allocations: 89.67 kB / 365 MB, free: 5.922 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004106/0.1279, allocations: 323 kB / 365.3 MB, free: 5.59 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.593e-05/0.128, allocations: 45.7 kB / 365.3 MB, free: 5.539 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001157/0.1281, allocations: 157.6 kB / 365.5 MB, free: 5.383 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001847/0.1283, allocations: 228.8 kB / 365.7 MB, free: 5.156 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.597e-05/0.1283, allocations: 12 kB / 365.7 MB, free: 5.145 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001707/0.1285, allocations: 350.8 kB / 366.1 MB, free: 4.793 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000555/0.1291, allocations: 293.2 kB / 366.3 MB, free: 4.508 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006435/0.1297, allocations: 358.5 kB / 366.7 MB, free: 4.148 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000524/0.1303, allocations: 267.2 kB / 367 MB, free: 3.887 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.587e-06/0.1303, allocations: 3.953 kB / 367 MB, free: 3.883 MB / 302.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001729/0.132, allocations: 0.9163 MB / 367.9 MB, free: 2.957 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.114e-05/0.1321, allocations: 10.61 kB / 367.9 MB, free: 2.949 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.454e-06/0.1321, allocations: 0 / 367.9 MB, free: 2.949 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001023/0.1331, allocations: 479.5 kB / 368.4 MB, free: 2.48 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003505/0.1335, allocations: 87.77 kB / 368.4 MB, free: 2.395 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001326/0.1348, allocations: 1.087 MB / 369.5 MB, free: 1.281 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004529/0.1353, allocations: 79.98 kB / 369.6 MB, free: 1.203 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.839e-05/0.1353, allocations: 27.98 kB / 369.6 MB, free: 1.176 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.0002626/0.1356, allocations: 177.6 kB / 369.8 MB, free: 0.9922 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.002e-05/0.1357, allocations: 47.42 kB / 369.9 MB, free: 0.9453 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001692/0.1359, allocations: 67.77 kB / 369.9 MB, free: 0.8789 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.338e-06/0.1359, allocations: 12 kB / 369.9 MB, free: 0.8672 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.077e-06/0.1359, allocations: 0 / 369.9 MB, free: 0.8672 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.282e-06/0.1359, allocations: 0 / 369.9 MB, free: 0.8672 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1884/0.3243, allocations: 1.774 MB / 371.7 MB, free: 24.99 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.324e-06/0.3243, allocations: 1.766 kB / 371.7 MB, free: 24.99 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003845/0.3247, allocations: 78.94 kB / 371.8 MB, free: 24.99 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009881/0.3257, allocations: 443.8 kB / 372.2 MB, free: 24.98 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.912e-05/0.3258, allocations: 20.66 kB / 372.2 MB, free: 24.98 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001125/0.3269, allocations: 1.042 MB / 373.3 MB, free: 24.46 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.016e-06/0.3269, allocations: 5.766 kB / 373.3 MB, free: 24.46 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002407/0.3294, allocations: 1.314 MB / 374.6 MB, free: 24.29 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002231/0.3296, allocations: 180.2 kB / 374.8 MB, free: 24.18 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.453e-05/0.3297, allocations: 19.47 kB / 374.8 MB, free: 24.17 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003927/0.3301, allocations: 70.41 kB / 374.9 MB, free: 24.16 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002074/0.3303, allocations: 109.1 kB / 375 MB, free: 24.14 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.811e-05/0.3304, allocations: 22.58 kB / 375 MB, free: 24.14 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002692/0.3306, allocations: 245.1 kB / 375.2 MB, free: 24.02 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3306, allocations: 0 / 375.2 MB, free: 24.02 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004832/0.3311, allocations: 149.4 kB / 375.4 MB, free: 24 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.002599/0.3337, allocations: 1.902 MB / 377.3 MB, free: 22.91 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001512/0.3353, allocations: 0.7226 MB / 378 MB, free: 22.7 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.554e-06/0.3353, allocations: 0 / 378 MB, free: 22.7 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007832/0.3361, allocations: 398 kB / 378.4 MB, free: 22.58 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004762/0.3366, allocations: 51.02 kB / 378.4 MB, free: 22.55 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006528/0.3431, allocations: 3.445 MB / 381.9 MB, free: 20.98 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003335/0.3435, allocations: 0.8196 MB / 382.7 MB, free: 20.27 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002696/0.3437, allocations: 62.41 kB / 382.8 MB, free: 20.26 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002367/0.344, allocations: 130.7 kB / 382.9 MB, free: 20.18 MB / 302.1 MB Notification: Performance of SimCode: time 1.282e-06/0.344, allocations: 1.719 kB / 382.9 MB, free: 20.18 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02711/0.3711, allocations: 12.45 MB / 395.3 MB, free: 13.1 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0005095/0.3717, allocations: 216.6 kB / 395.6 MB, free: 12.87 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.144/2.516, allocations: 0 / 395.6 MB, free: 12.87 MB / 302.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