Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.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.LossyGearDemo1,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1",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.001023/0.001023, allocations: 172.9 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.389/1.389, allocations: 205.2 MB / 219.8 MB, free: 14.2 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.0008679/0.0008679, allocations: 82.72 kB / 268 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.811e-05/2.813e-05, allocations: 4 kB / 322.5 MB, free: 17.25 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08827/0.08832, allocations: 47.57 MB / 370.1 MB, free: 1.609 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2749/0.3633, allocations: 80.79 MB / 450.9 MB, free: 12.52 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002307/0.3636, allocations: 73.2 kB / 451 MB, free: 12.48 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02774/0.3913, allocations: 10.18 MB / 461.2 MB, free: 3.746 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.3913, allocations: 0 / 461.2 MB, free: 3.746 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.444e-05/0.3914, allocations: 8 kB / 461.2 MB, free: 3.738 MB / 330.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.0009034/0.3923, allocations: 0.5887 MB / 461.8 MB, free: 3.105 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.751e-05/0.3923, allocations: 12.22 kB / 461.8 MB, free: 3.094 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.916e-05/0.3924, allocations: 74.47 kB / 461.8 MB, free: 3.012 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002654/0.3927, allocations: 47.61 kB / 461.9 MB, free: 2.965 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003584/0.393, allocations: 294.2 kB / 462.2 MB, free: 2.637 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001117/0.3932, allocations: 100.1 kB / 462.3 MB, free: 2.527 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.163e-05/0.3933, allocations: 28 kB / 462.3 MB, free: 2.5 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005909/0.3938, allocations: 378.9 kB / 462.7 MB, free: 2.113 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.49e-05/0.3939, allocations: 0 / 462.7 MB, free: 2.113 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.841e-05/0.3939, allocations: 16 kB / 462.7 MB, free: 2.098 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.995e-06/0.3939, allocations: 11.94 kB / 462.7 MB, free: 2.086 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006294/0.3946, allocations: 414.9 kB / 463.1 MB, free: 1.684 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001276/0.3959, allocations: 0.9039 MB / 464 MB, free: 0.7148 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005778/0.3964, allocations: 348.5 kB / 464.3 MB, free: 376 kB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002955/0.3968, allocations: 206.1 kB / 464.5 MB, free: 168 kB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.495e-05/0.3968, allocations: 8.422 kB / 464.6 MB, free: 160 kB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.35e-05/0.3968, allocations: 39 kB / 464.6 MB, free: 112 kB / 330.7 MB Notification: Performance of pre-optimization done (n=49): time 1.583e-06/0.3968, allocations: 0 / 464.6 MB, free: 112 kB / 330.7 MB Notification: Performance of matching and sorting (n=55): time 0.002579/0.3994, allocations: 1.539 MB / 466.1 MB, free: 14.48 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.193e-05/0.3995, allocations: 85.67 kB / 466.2 MB, free: 14.38 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002114/0.3997, allocations: 206.1 kB / 466.4 MB, free: 14.17 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.79e-05/0.3998, allocations: 41.64 kB / 466.5 MB, free: 14.12 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.611e-05/0.3998, allocations: 141.1 kB / 466.6 MB, free: 13.98 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001322/0.4, allocations: 177.4 kB / 466.8 MB, free: 13.81 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.703e-05/0.4, allocations: 16 kB / 466.8 MB, free: 13.79 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001222/0.4001, allocations: 338.8 kB / 467.1 MB, free: 13.45 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002765/0.4004, allocations: 165.1 kB / 467.3 MB, free: 13.29 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002968/0.4007, allocations: 212.7 kB / 467.5 MB, free: 13.07 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002643/0.401, allocations: 163.2 kB / 467.6 MB, free: 12.91 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.401, allocations: 0 / 467.6 MB, free: 12.91 MB / 346.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.0008756/0.4019, allocations: 0.5588 MB / 468.2 MB, free: 12.34 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.663e-05/0.4019, allocations: 7.953 kB / 468.2 MB, free: 12.34 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.013e-06/0.4019, allocations: 4 kB / 468.2 MB, free: 12.33 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006534/0.4026, allocations: 239.7 kB / 468.5 MB, free: 12.1 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003061/0.4029, allocations: 71.89 kB / 468.5 MB, free: 12.03 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003379/0.4063, allocations: 2.671 MB / 471.2 MB, free: 9.219 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002898/0.4066, allocations: 40 kB / 471.2 MB, free: 9.18 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.849e-05/0.4067, allocations: 16 kB / 471.2 MB, free: 9.164 MB / 346.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.0001364/0.4068, allocations: 136.9 kB / 471.4 MB, free: 9.023 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.139e-05/0.4069, allocations: 35.67 kB / 471.4 MB, free: 8.988 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000108/0.407, allocations: 47.09 kB / 471.5 MB, free: 8.941 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.288e-06/0.407, allocations: 4 kB / 471.5 MB, free: 8.938 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.577e-06/0.407, allocations: 0 / 471.5 MB, free: 8.938 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.244e-06/0.407, allocations: 7.984 kB / 471.5 MB, free: 8.93 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001742/0.4088, allocations: 1.194 MB / 472.7 MB, free: 7.672 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.4088, allocations: 0 / 472.7 MB, free: 7.672 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003188/0.4091, allocations: 67.89 kB / 472.7 MB, free: 7.605 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005824/0.4097, allocations: 222.1 kB / 473 MB, free: 7.387 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.841e-05/0.4098, allocations: 19.94 kB / 473 MB, free: 7.367 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003112/0.4129, allocations: 2.594 MB / 475.6 MB, free: 4.641 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.4129, allocations: 0 / 475.6 MB, free: 4.641 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001289/0.4142, allocations: 0.8731 MB / 476.4 MB, free: 3.738 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001962/0.4144, allocations: 148.7 kB / 476.6 MB, free: 3.574 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.122e-05/0.4145, allocations: 12 kB / 476.6 MB, free: 3.562 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003002/0.4148, allocations: 40.09 kB / 476.6 MB, free: 3.523 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001863/0.415, allocations: 76.48 kB / 476.7 MB, free: 3.449 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.299e-05/0.415, allocations: 19.98 kB / 476.7 MB, free: 3.43 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001657/0.4152, allocations: 167.1 kB / 476.9 MB, free: 3.266 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4152, allocations: 0 / 476.9 MB, free: 3.266 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000609/0.4158, allocations: 171.9 kB / 477.1 MB, free: 3.098 MB / 346.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.001803/0.4176, allocations: 1.549 MB / 478.6 MB, free: 1.512 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001071/0.4187, allocations: 0.6179 MB / 479.2 MB, free: 0.8828 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.4187, allocations: 4 kB / 479.2 MB, free: 0.8789 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006339/0.4194, allocations: 451.5 kB / 479.7 MB, free: 440 kB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003027/0.4197, allocations: 29.97 kB / 479.7 MB, free: 412 kB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001353/0.4211, allocations: 0.7064 MB / 480.4 MB, free: 15.65 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000326/0.4214, allocations: 0.8049 MB / 481.2 MB, free: 14.82 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.000217/0.4216, allocations: 66.94 kB / 481.3 MB, free: 14.75 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001816/0.4218, allocations: 95.39 kB / 481.4 MB, free: 14.66 MB / 362.7 MB Notification: Performance of SimCode: time 3.4e-07/0.4218, allocations: 0 / 481.4 MB, free: 14.66 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02339/0.4452, allocations: 9.695 MB / 491.1 MB, free: 4.949 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002101/0.4455, allocations: 182.4 kB / 491.2 MB, free: 4.723 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.092/2.537, allocations: 0 / 491.2 MB, free: 4.723 MB / 362.7 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat does not exist to compare? outputFormat=mat