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/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.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/Complex 4.0.0+maint.om/package.mo): time 0.001445/0.001445, allocations: 174.8 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.436/1.436, allocations: 221.3 MB / 235.5 MB, free: 2.938 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.0009574/0.0009577, allocations: 86.94 kB / 286.5 MB, free: 240 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.214e-05/3.217e-05, allocations: 4 kB / 343.9 MB, free: 4.219 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1114/0.1115, allocations: 50.42 MB / 394.3 MB, free: 1.762 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3603/0.4718, allocations: 83.29 MB / 477.6 MB, free: 4.18 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002895/0.4722, allocations: 73.59 kB / 477.7 MB, free: 4.109 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03604/0.5083, allocations: 12.04 MB / 489.8 MB, free: 8.023 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.006e-06/0.5083, allocations: 7.984 kB / 489.8 MB, free: 8.016 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.894e-05/0.5083, allocations: 8 kB / 489.8 MB, free: 8.008 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.001859/0.5102, allocations: 0.698 MB / 490.5 MB, free: 7.266 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.316e-05/0.5103, allocations: 12.02 kB / 490.5 MB, free: 7.254 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002263/0.5105, allocations: 86.47 kB / 490.6 MB, free: 7.16 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004321/0.511, allocations: 59.42 kB / 490.6 MB, free: 7.102 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006374/0.5116, allocations: 325.4 kB / 490.9 MB, free: 6.746 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001518/0.5118, allocations: 96.17 kB / 491 MB, free: 6.641 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001118/0.5119, allocations: 43.84 kB / 491.1 MB, free: 6.598 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001041/0.5129, allocations: 0.5066 MB / 491.6 MB, free: 6.074 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.028e-05/0.513, allocations: 3.953 kB / 491.6 MB, free: 6.07 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.212e-05/0.5131, allocations: 16 kB / 491.6 MB, free: 6.055 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.621e-05/0.5131, allocations: 12 kB / 491.6 MB, free: 6.043 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001086/0.5142, allocations: 0.5418 MB / 492.2 MB, free: 5.504 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002321/0.5165, allocations: 1.161 MB / 493.3 MB, free: 4.285 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008211/0.5173, allocations: 461.9 kB / 493.8 MB, free: 3.82 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004772/0.5178, allocations: 290.4 kB / 494.1 MB, free: 3.531 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.894e-05/0.5179, allocations: 16.48 kB / 494.1 MB, free: 3.516 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.526e-05/0.518, allocations: 43.12 kB / 494.1 MB, free: 3.465 MB / 362.7 MB Notification: Performance of pre-optimization done (n=63): time 3.466e-06/0.518, allocations: 0 / 494.1 MB, free: 3.465 MB / 362.7 MB Notification: Performance of matching and sorting (n=71): time 0.003917/0.5219, allocations: 1.989 MB / 496.1 MB, free: 1.383 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.762e-05/0.522, allocations: 85.89 kB / 496.2 MB, free: 1.281 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003343/0.5223, allocations: 251.2 kB / 496.4 MB, free: 1.035 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.748e-05/0.5224, allocations: 41.69 kB / 496.5 MB, free: 0.9883 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000107/0.5225, allocations: 153.7 kB / 496.6 MB, free: 0.8359 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002014/0.5227, allocations: 232.7 kB / 496.8 MB, free: 0.6055 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.569e-05/0.5228, allocations: 16 kB / 496.9 MB, free: 0.5898 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001372/0.5229, allocations: 350.8 kB / 497.2 MB, free: 244 kB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004217/0.5233, allocations: 241.5 kB / 497.4 MB, free: 0 / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004798/0.5238, allocations: 296 kB / 497.7 MB, free: 15.7 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003968/0.5242, allocations: 214 kB / 497.9 MB, free: 15.49 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.5242, allocations: 0 / 497.9 MB, free: 15.49 MB / 378.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001518/0.5258, allocations: 0.7982 MB / 498.7 MB, free: 14.68 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.433e-05/0.5258, allocations: 8 kB / 498.7 MB, free: 14.68 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.173e-05/0.5258, allocations: 3.984 kB / 498.7 MB, free: 14.67 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001042/0.5269, allocations: 426.7 kB / 499.2 MB, free: 14.25 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003985/0.5273, allocations: 91.88 kB / 499.3 MB, free: 14.16 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001265/0.5286, allocations: 1.001 MB / 0.4885 GB, free: 13.14 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005318/0.5291, allocations: 80 kB / 0.4886 GB, free: 13.06 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.409e-05/0.5292, allocations: 31.98 kB / 0.4886 GB, free: 13.03 MB / 378.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 44 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.0002007/0.5294, allocations: 140.8 kB / 0.4888 GB, free: 12.88 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001105/0.5295, allocations: 43.44 kB / 0.4888 GB, free: 12.84 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001585/0.5311, allocations: 0.8212 MB / 0.4896 GB, free: 12 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.029e-05/0.5312, allocations: 11.94 kB / 0.4896 GB, free: 11.99 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.842e-06/0.5312, allocations: 4 kB / 0.4896 GB, free: 11.99 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.935e-06/0.5312, allocations: 7.984 kB / 0.4896 GB, free: 11.98 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002978/0.5342, allocations: 1.637 MB / 0.4912 GB, free: 10.27 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.865e-06/0.5342, allocations: 3.953 kB / 0.4912 GB, free: 10.27 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003911/0.5346, allocations: 91.94 kB / 0.4913 GB, free: 10.18 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009327/0.5355, allocations: 393.1 kB / 0.4917 GB, free: 9.793 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.609e-05/0.5356, allocations: 23.98 kB / 0.4917 GB, free: 9.77 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001162/0.5368, allocations: 0.97 MB / 0.4927 GB, free: 8.773 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.5368, allocations: 4.062 kB / 0.4927 GB, free: 8.77 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002173/0.539, allocations: 1.209 MB / 0.4939 GB, free: 7.523 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003269/0.5393, allocations: 184.6 kB / 0.494 GB, free: 7.324 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001174/0.5395, allocations: 23.98 kB / 0.4941 GB, free: 7.301 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005129/0.54, allocations: 72 kB / 0.4941 GB, free: 7.23 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002102/0.5402, allocations: 100.4 kB / 0.4942 GB, free: 7.133 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.635e-05/0.5403, allocations: 27.97 kB / 0.4942 GB, free: 7.105 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.00024/0.5405, allocations: 211 kB / 0.4944 GB, free: 6.898 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.21e-07/0.5405, allocations: 0 / 0.4944 GB, free: 6.898 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005871/0.5411, allocations: 151.9 kB / 0.4946 GB, free: 6.75 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 39 * 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.002569/0.5437, allocations: 1.927 MB / 0.4965 GB, free: 4.777 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00126/0.545, allocations: 0.6353 MB / 0.4971 GB, free: 4.129 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.545, allocations: 0 / 0.4971 GB, free: 4.129 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007076/0.5457, allocations: 355.1 kB / 0.4974 GB, free: 3.785 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004032/0.5461, allocations: 44.8 kB / 0.4975 GB, free: 3.738 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002661/0.5488, allocations: 1.077 MB / 0.4985 GB, free: 2.621 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003733/0.5492, allocations: 0.829 MB / 0.4993 GB, free: 1.766 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000266/0.5495, allocations: 59.34 kB / 0.4994 GB, free: 1.707 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002561/0.5497, allocations: 135.3 kB / 0.4995 GB, free: 1.574 MB / 378.7 MB Notification: Performance of SimCode: time 6.61e-07/0.5498, allocations: 0 / 0.4995 GB, free: 1.574 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03038/0.5801, allocations: 12.17 MB / 0.5114 GB, free: 5.59 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000194/0.5804, allocations: 181 kB / 0.5116 GB, free: 5.371 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.247/2.827, allocations: 3.938 kB / 0.5116 GB, free: 5.367 MB / 394.7 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