Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001208/0.001208, allocations: 174.7 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.416/1.416, allocations: 221.3 MB / 235.5 MB, free: 2.957 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008445/0.0008444, allocations: 87.67 kB / 286.5 MB, free: 220 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.212e-05/3.214e-05, allocations: 8 kB / 343.9 MB, free: 4.207 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1112/0.1112, allocations: 50.42 MB / 394.3 MB, free: 1.746 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3436/0.4549, allocations: 81.82 MB / 476.2 MB, free: 5.637 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002645/0.4552, allocations: 65.72 kB / 476.2 MB, free: 5.574 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02948/0.4847, allocations: 10.34 MB / 486.6 MB, free: 11.21 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.202e-06/0.4848, allocations: 0 / 486.6 MB, free: 11.21 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.58e-05/0.4848, allocations: 8 kB / 486.6 MB, free: 11.21 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001044/0.4859, allocations: 0.5926 MB / 487.2 MB, free: 10.57 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.702e-05/0.4859, allocations: 12.03 kB / 487.2 MB, free: 10.56 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.465e-05/0.486, allocations: 66.53 kB / 487.2 MB, free: 10.48 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002918/0.4863, allocations: 51.52 kB / 487.3 MB, free: 10.43 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003887/0.4867, allocations: 294.5 kB / 487.6 MB, free: 10.11 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001171/0.4868, allocations: 88.17 kB / 487.7 MB, free: 10.01 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.566e-05/0.4869, allocations: 35.94 kB / 487.7 MB, free: 9.973 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006502/0.4876, allocations: 390.8 kB / 488.1 MB, free: 9.574 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.745e-05/0.4876, allocations: 0 / 488.1 MB, free: 9.574 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.123e-05/0.4877, allocations: 16 kB / 488.1 MB, free: 9.559 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.357e-06/0.4877, allocations: 8 kB / 488.1 MB, free: 9.551 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006536/0.4883, allocations: 410.9 kB / 488.5 MB, free: 9.148 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001347/0.4897, allocations: 0.9078 MB / 489.4 MB, free: 8.176 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005921/0.4903, allocations: 353.5 kB / 489.8 MB, free: 7.824 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003108/0.4906, allocations: 202.1 kB / 490 MB, free: 7.625 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.724e-05/0.4907, allocations: 12.38 kB / 490 MB, free: 7.613 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.103e-05/0.4907, allocations: 39 kB / 490 MB, free: 7.566 MB / 362.7 MB Notification: Performance of pre-optimization done (n=49): time 2.144e-06/0.4907, allocations: 0 / 490 MB, free: 7.566 MB / 362.7 MB Notification: Performance of matching and sorting (n=55): time 0.00278/0.4935, allocations: 1.531 MB / 491.5 MB, free: 5.945 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.863e-05/0.4936, allocations: 93.62 kB / 491.6 MB, free: 5.836 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002329/0.4938, allocations: 206.1 kB / 491.8 MB, free: 5.629 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.382e-05/0.4939, allocations: 37.7 kB / 491.9 MB, free: 5.586 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.713e-05/0.494, allocations: 133.1 kB / 492 MB, free: 5.449 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001381/0.4941, allocations: 181.4 kB / 492.2 MB, free: 5.27 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.646e-05/0.4941, allocations: 8 kB / 492.2 MB, free: 5.262 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001256/0.4943, allocations: 346.8 kB / 492.5 MB, free: 4.914 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002829/0.4946, allocations: 169.1 kB / 492.7 MB, free: 4.746 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003276/0.4949, allocations: 212.7 kB / 492.9 MB, free: 4.531 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002963/0.4952, allocations: 159.2 kB / 493.1 MB, free: 4.375 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.262e-06/0.4952, allocations: 0 / 493.1 MB, free: 4.375 MB / 362.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.0008943/0.4961, allocations: 0.551 MB / 493.6 MB, free: 3.812 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.081e-05/0.4962, allocations: 4 kB / 493.6 MB, free: 3.809 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.093e-06/0.4962, allocations: 0 / 493.6 MB, free: 3.809 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006953/0.4969, allocations: 254.8 kB / 493.9 MB, free: 3.559 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003085/0.4972, allocations: 63.95 kB / 493.9 MB, free: 3.496 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003628/0.5008, allocations: 2.674 MB / 496.6 MB, free: 0.6875 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004111/0.5013, allocations: 44.06 kB / 496.6 MB, free: 0.6445 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.34e-05/0.5014, allocations: 19.98 kB / 496.7 MB, free: 0.625 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,gear.ideal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 32 * 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 25} Notification: Performance of prepare postOptimizeDAE: time 0.0001732/0.5015, allocations: 133.4 kB / 496.8 MB, free: 500 kB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.17e-05/0.5016, allocations: 35.66 kB / 496.8 MB, free: 464 kB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001262/0.5018, allocations: 43.09 kB / 496.9 MB, free: 424 kB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.739e-06/0.5018, allocations: 4 kB / 496.9 MB, free: 420 kB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.5018, allocations: 4 kB / 496.9 MB, free: 416 kB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.536e-06/0.5018, allocations: 3.984 kB / 496.9 MB, free: 412 kB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001902/0.5037, allocations: 1.206 MB / 498.1 MB, free: 15.14 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.819e-06/0.5037, allocations: 0 / 498.1 MB, free: 15.14 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003353/0.5041, allocations: 75.88 kB / 498.2 MB, free: 15.06 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006188/0.5047, allocations: 224.7 kB / 498.4 MB, free: 14.84 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.198e-05/0.5048, allocations: 15.98 kB / 498.4 MB, free: 14.82 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003333/0.5081, allocations: 2.576 MB / 0.4892 GB, free: 12.11 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.5082, allocations: 64 / 0.4892 GB, free: 12.11 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001393/0.5096, allocations: 0.8691 MB / 0.4901 GB, free: 11.21 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002219/0.5098, allocations: 152.8 kB / 0.4902 GB, free: 11.05 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.739e-05/0.5099, allocations: 12 kB / 0.4902 GB, free: 11.04 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003282/0.5102, allocations: 36.03 kB / 0.4903 GB, free: 11 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001948/0.5104, allocations: 76.48 kB / 0.4903 GB, free: 10.93 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.297e-05/0.5105, allocations: 23.98 kB / 0.4904 GB, free: 10.9 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002048/0.5107, allocations: 168.6 kB / 0.4905 GB, free: 10.74 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.7e-07/0.5107, allocations: 0 / 0.4905 GB, free: 10.74 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007646/0.5115, allocations: 159.9 kB / 0.4907 GB, free: 10.58 MB / 378.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: 5 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode) * Number of discrete states: 1 (gear.mode) * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 30 * 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 23} Notification: Performance of Backend phase and start with SimCode phase: time 0.002025/0.5135, allocations: 1.557 MB / 0.4922 GB, free: 8.988 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001158/0.5147, allocations: 0.6259 MB / 0.4928 GB, free: 8.348 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.5147, allocations: 0 / 0.4928 GB, free: 8.348 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000681/0.5154, allocations: 447.4 kB / 0.4932 GB, free: 7.902 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003444/0.5157, allocations: 32.5 kB / 0.4933 GB, free: 7.871 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001453/0.5172, allocations: 0.699 MB / 0.4939 GB, free: 7.133 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003476/0.5176, allocations: 0.8049 MB / 0.4947 GB, free: 6.293 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002314/0.5178, allocations: 54.95 kB / 0.4948 GB, free: 6.238 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001889/0.518, allocations: 107.4 kB / 0.4949 GB, free: 6.133 MB / 378.7 MB Notification: Performance of SimCode: time 6.11e-07/0.518, allocations: 0 / 0.4949 GB, free: 6.133 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02426/0.5423, allocations: 9.688 MB / 0.5043 GB, free: 12.61 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001906/0.5425, allocations: 191.3 kB / 0.5045 GB, free: 12.38 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.269/2.811, allocations: 4 kB / 0.5045 GB, free: 12.38 MB / 394.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat does not exist to compare? outputFormat=mat