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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008325/0.0008325, allocations: 87.11 kB / 16.31 MB, free: 6.449 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.0008621/0.0008621, allocations: 176.9 kB / 17.21 MB, free: 6.32 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.372/1.372, allocations: 223.3 MB / 241.2 MB, free: 272 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002377/0.0002377, allocations: 11.98 kB / 300.9 MB, free: 6.328 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.102/0.1023, allocations: 50.41 MB / 351.3 MB, free: 3.898 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.00251/0.1048, allocations: 2.03 MB / 353.4 MB, free: 1.855 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001607/0.1064, allocations: 0.9097 MB / 354.3 MB, free: 0.9375 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001358/0.1066, allocations: 3.938 kB / 354.3 MB, free: 0.9336 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000182/0.1068, allocations: 43.7 kB / 354.3 MB, free: 0.8906 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000432/0.1072, allocations: 127.3 kB / 354.4 MB, free: 0.7656 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003027/0.1075, allocations: 139.8 kB / 354.6 MB, free: 0.6289 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003974/0.1079, allocations: 414.5 kB / 355 MB, free: 228 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001808/0.1081, allocations: 88.86 kB / 355.1 MB, free: 136 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002627/0.1084, allocations: 183.4 kB / 355.3 MB, free: 15.95 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002709/0.1087, allocations: 211.3 kB / 355.5 MB, free: 15.75 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.582e-05/0.1087, allocations: 20 kB / 355.5 MB, free: 15.73 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001828/0.1089, allocations: 87.88 kB / 355.6 MB, free: 15.64 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001222/0.1091, allocations: 91.7 kB / 355.7 MB, free: 15.55 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.59e-05/0.1091, allocations: 77.58 kB / 355.7 MB, free: 15.47 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003446/0.1095, allocations: 359.4 kB / 356.1 MB, free: 15.12 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/0.1095, allocations: 0 / 356.1 MB, free: 15.12 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.1095, allocations: 3.938 kB / 356.1 MB, free: 15.11 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.741e-06/0.1095, allocations: 0 / 356.1 MB, free: 15.11 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001081/0.1106, allocations: 0.6042 MB / 356.7 MB, free: 14.46 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.793e-05/0.1107, allocations: 16.02 kB / 356.7 MB, free: 14.45 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.275e-05/0.1108, allocations: 62.55 kB / 356.8 MB, free: 14.38 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002802/0.111, allocations: 59.55 kB / 356.8 MB, free: 14.32 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003982/0.1115, allocations: 314.2 kB / 357.1 MB, free: 13.97 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001211/0.1116, allocations: 88.05 kB / 357.2 MB, free: 13.87 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.442e-05/0.1117, allocations: 28 kB / 357.2 MB, free: 13.84 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007546/0.1124, allocations: 416.9 kB / 357.6 MB, free: 13.43 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.384e-05/0.1125, allocations: 7.906 kB / 357.7 MB, free: 13.42 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.943e-05/0.1125, allocations: 23.88 kB / 357.7 MB, free: 13.39 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.253e-05/0.1125, allocations: 11.95 kB / 357.7 MB, free: 13.38 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009786/0.1135, allocations: 486.2 kB / 358.2 MB, free: 12.9 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001622/0.1151, allocations: 0.9776 MB / 359.1 MB, free: 11.87 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007952/0.116, allocations: 427 kB / 359.6 MB, free: 11.45 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004434/0.1164, allocations: 238 kB / 359.8 MB, free: 11.21 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.984e-05/0.1165, allocations: 12.42 kB / 359.8 MB, free: 11.2 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.209e-05/0.1165, allocations: 39 kB / 359.8 MB, free: 11.15 MB / 302.1 MB Notification: Performance of pre-optimization done (n=49): time 4.338e-06/0.1165, allocations: 4.172 kB / 359.8 MB, free: 11.15 MB / 302.1 MB Notification: Performance of matching and sorting (n=55): time 0.004949/0.1215, allocations: 2.218 MB / 362.1 MB, free: 8.824 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.092e-05/0.1215, allocations: 85.66 kB / 362.2 MB, free: 8.723 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002896/0.1218, allocations: 255.1 kB / 362.4 MB, free: 8.465 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.873e-05/0.1219, allocations: 37.7 kB / 362.4 MB, free: 8.422 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.986e-05/0.122, allocations: 133.2 kB / 362.6 MB, free: 8.289 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001348/0.1221, allocations: 185.3 kB / 362.7 MB, free: 8.105 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.887e-05/0.1222, allocations: 16 kB / 362.8 MB, free: 8.09 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001157/0.1223, allocations: 338.8 kB / 363.1 MB, free: 7.75 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004098/0.1227, allocations: 201 kB / 363.3 MB, free: 7.555 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004467/0.1232, allocations: 252.6 kB / 363.5 MB, free: 7.297 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004015/0.1236, allocations: 194.1 kB / 363.7 MB, free: 7.113 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.835e-06/0.1236, allocations: 0 / 363.7 MB, free: 7.113 MB / 302.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001222/0.1248, allocations: 0.6251 MB / 364.4 MB, free: 6.477 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.198e-05/0.1248, allocations: 8 kB / 364.4 MB, free: 6.469 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.606e-06/0.1249, allocations: 0 / 364.4 MB, free: 6.469 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007165/0.1256, allocations: 258.8 kB / 364.6 MB, free: 6.215 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003037/0.1259, allocations: 71.89 kB / 364.7 MB, free: 6.145 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003624/0.1295, allocations: 2.701 MB / 367.4 MB, free: 3.312 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003391/0.1299, allocations: 44.03 kB / 367.4 MB, free: 3.27 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.413e-05/0.13, allocations: 15.98 kB / 367.4 MB, free: 3.254 MB / 302.1 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 () * Number of clocked 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.0002701/0.1302, allocations: 157.8 kB / 367.6 MB, free: 3.09 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001089/0.1303, allocations: 27.62 kB / 367.6 MB, free: 3.062 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001397/0.1305, allocations: 51.3 kB / 367.7 MB, free: 3.012 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.976e-06/0.1305, allocations: 7.953 kB / 367.7 MB, free: 3.004 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/0.1305, allocations: 0 / 367.7 MB, free: 3.004 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.377e-06/0.1305, allocations: 3.984 kB / 367.7 MB, free: 3 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003176/0.1337, allocations: 1.276 MB / 369 MB, free: 1.664 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.328e-06/0.1338, allocations: 0 / 369 MB, free: 1.664 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004946/0.1343, allocations: 71.89 kB / 369 MB, free: 1.594 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001019/0.1353, allocations: 244.7 kB / 369.3 MB, free: 1.352 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.853e-05/0.1354, allocations: 15.98 kB / 369.3 MB, free: 1.336 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2234/0.3588, allocations: 2.596 MB / 371.9 MB, free: 23.48 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.3589, allocations: 4.25 kB / 371.9 MB, free: 23.48 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001918/0.3608, allocations: 0.968 MB / 372.9 MB, free: 23.34 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002106/0.361, allocations: 153.1 kB / 373 MB, free: 23.24 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.926e-05/0.3611, allocations: 15.59 kB / 373 MB, free: 23.24 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002955/0.3614, allocations: 39.42 kB / 373.1 MB, free: 23.24 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002262/0.3616, allocations: 74.72 kB / 373.1 MB, free: 23.24 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.048e-05/0.3617, allocations: 18.05 kB / 373.1 MB, free: 23.24 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002709/0.362, allocations: 192.5 kB / 373.3 MB, free: 23.17 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.61e-07/0.362, allocations: 0 / 373.3 MB, free: 23.17 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007066/0.3627, allocations: 155.5 kB / 373.5 MB, free: 23.17 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: 5 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode) * Number of discrete states: 1 (gear.mode) * Number of clocked states: 0 () * 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.002295/0.365, allocations: 1.578 MB / 375.1 MB, free: 22.49 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001577/0.3666, allocations: 0.707 MB / 375.8 MB, free: 22.35 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.3666, allocations: 0 / 375.8 MB, free: 22.35 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007889/0.3674, allocations: 489.9 kB / 376.3 MB, free: 22.14 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000449/0.3679, allocations: 41.48 kB / 376.3 MB, free: 22.12 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004318/0.3722, allocations: 2.461 MB / 378.8 MB, free: 20.91 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002818/0.3725, allocations: 0.7943 MB / 379.5 MB, free: 20.21 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002743/0.3728, allocations: 64.02 kB / 379.6 MB, free: 20.2 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001739/0.373, allocations: 96.83 kB / 379.7 MB, free: 20.13 MB / 302.1 MB Notification: Performance of SimCode: time 1.533e-06/0.373, allocations: 0 / 379.7 MB, free: 20.13 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02741/0.4004, allocations: 9.827 MB / 389.5 MB, free: 17.02 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001889/0.4006, allocations: 214.3 kB / 389.7 MB, free: 16.79 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.122/2.522, allocations: 0 / 389.7 MB, free: 16.79 MB / 302.1 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