Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.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.LossyGearDemo3,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",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.001146/0.001146, allocations: 96.34 kB / 16.3 MB, free: 5.586 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.001256/0.001256, allocations: 181.7 kB / 17.19 MB, free: 5.523 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.344/1.344, allocations: 223.2 MB / 241.1 MB, free: 288 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002999/0.0003004, allocations: 4 kB / 300.8 MB, free: 6.355 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1071/0.1074, allocations: 50.4 MB / 351.2 MB, free: 3.941 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.00277/0.1102, allocations: 1.885 MB / 353.1 MB, free: 2.043 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001625/0.1119, allocations: 0.8826 MB / 354 MB, free: 1.152 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002193/0.1121, allocations: 4 kB / 354 MB, free: 1.148 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00015/0.1123, allocations: 27.77 kB / 354 MB, free: 1.121 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005841/0.1129, allocations: 143.5 kB / 354.2 MB, free: 0.9805 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003498/0.1132, allocations: 127.8 kB / 354.3 MB, free: 0.8555 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004622/0.1137, allocations: 271.4 kB / 354.5 MB, free: 0.5898 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001899/0.1139, allocations: 59.44 kB / 354.6 MB, free: 0.5312 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000318/0.1142, allocations: 159.5 kB / 354.8 MB, free: 384 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003534/0.1146, allocations: 187.4 kB / 354.9 MB, free: 196 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.648e-05/0.1147, allocations: 19.94 kB / 355 MB, free: 176 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000231/0.1149, allocations: 79.94 kB / 355 MB, free: 96 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001282/0.1151, allocations: 83.72 kB / 355.1 MB, free: 12 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000115/0.1152, allocations: 73.62 kB / 355.2 MB, free: 15.93 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004166/0.1156, allocations: 315.5 kB / 355.5 MB, free: 15.62 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.785e-06/0.1156, allocations: 0 / 355.5 MB, free: 15.62 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.1156, allocations: 0 / 355.5 MB, free: 15.62 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.386e-05/0.1156, allocations: 0 / 355.5 MB, free: 15.62 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001229/0.1169, allocations: 0.577 MB / 356.1 MB, free: 15 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.585e-05/0.1169, allocations: 15.97 kB / 356.1 MB, free: 14.98 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001251/0.1171, allocations: 70.48 kB / 356.2 MB, free: 14.91 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003119/0.1174, allocations: 47.61 kB / 356.2 MB, free: 14.86 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004373/0.1178, allocations: 298.5 kB / 356.5 MB, free: 14.53 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000126/0.118, allocations: 83.97 kB / 356.6 MB, free: 14.43 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.911e-05/0.118, allocations: 35.89 kB / 356.6 MB, free: 14.4 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007343/0.1188, allocations: 377.2 kB / 357 MB, free: 14.02 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.483e-05/0.1188, allocations: 0 / 357 MB, free: 14.02 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.707e-05/0.1188, allocations: 11.95 kB / 357 MB, free: 14 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.037e-06/0.1189, allocations: 12 kB / 357 MB, free: 13.99 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009315/0.1198, allocations: 425.9 kB / 357.4 MB, free: 13.57 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002122/0.1219, allocations: 1.249 MB / 358.7 MB, free: 12.25 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006799/0.1226, allocations: 366.2 kB / 359 MB, free: 11.89 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.163e-05/0.1227, allocations: 4 kB / 359 MB, free: 11.89 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.209e-05/0.1227, allocations: 38.55 kB / 359.1 MB, free: 11.84 MB / 302.1 MB Notification: Performance of pre-optimization done (n=43): time 1.873e-06/0.1227, allocations: 0 / 359.1 MB, free: 11.84 MB / 302.1 MB Notification: Performance of matching and sorting (n=45): time 0.00479/0.1275, allocations: 1.934 MB / 361 MB, free: 9.793 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.655e-05/0.1276, allocations: 88.8 kB / 361.1 MB, free: 9.688 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003071/0.1279, allocations: 246.2 kB / 361.3 MB, free: 9.434 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.915e-05/0.128, allocations: 29.7 kB / 361.4 MB, free: 9.398 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001013/0.1281, allocations: 140.8 kB / 361.5 MB, free: 9.258 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001243/0.1282, allocations: 157.8 kB / 361.7 MB, free: 9.102 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.356e-05/0.1283, allocations: 8 kB / 361.7 MB, free: 9.094 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001421/0.1284, allocations: 338.8 kB / 362 MB, free: 8.754 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003549/0.1288, allocations: 168.8 kB / 362.2 MB, free: 8.59 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004072/0.1292, allocations: 233.9 kB / 362.4 MB, free: 8.344 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003378/0.1295, allocations: 156.8 kB / 362.5 MB, free: 8.191 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.1295, allocations: 0 / 362.5 MB, free: 8.191 MB / 302.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001086/0.1306, allocations: 0.5591 MB / 363.1 MB, free: 7.621 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.233e-05/0.1307, allocations: 10.5 kB / 363.1 MB, free: 7.613 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.025e-06/0.1307, allocations: 0 / 363.1 MB, free: 7.613 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007169/0.1314, allocations: 248.8 kB / 363.3 MB, free: 7.367 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000255/0.1317, allocations: 51.91 kB / 363.4 MB, free: 7.316 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003957/0.1356, allocations: 2.711 MB / 366.1 MB, free: 4.477 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002877/0.1359, allocations: 28.05 kB / 366.1 MB, free: 4.449 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.302e-05/0.136, allocations: 19.98 kB / 366.2 MB, free: 4.43 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (27): * Single equations (assignments): 26 * 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 24} Notification: Performance of prepare postOptimizeDAE: time 0.0002124/0.1362, allocations: 154.3 kB / 366.3 MB, free: 4.27 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.698e-05/0.1363, allocations: 27.72 kB / 366.3 MB, free: 4.242 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.178e-05/0.1364, allocations: 42.98 kB / 366.4 MB, free: 4.199 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.719e-06/0.1364, allocations: 4 kB / 366.4 MB, free: 4.195 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.216e-06/0.1364, allocations: 4 kB / 366.4 MB, free: 4.191 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.913e-06/0.1364, allocations: 3.984 kB / 366.4 MB, free: 4.188 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001846/0.1383, allocations: 1.112 MB / 367.5 MB, free: 3.016 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.1383, allocations: 0 / 367.5 MB, free: 3.016 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002229/0.1385, allocations: 51.97 kB / 367.6 MB, free: 2.965 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006456/0.1392, allocations: 228.7 kB / 367.8 MB, free: 2.738 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.282e-05/0.1392, allocations: 11.98 kB / 367.8 MB, free: 2.727 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.193/0.3323, allocations: 2.652 MB / 370.4 MB, free: 24.2 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.43e-06/0.3323, allocations: 0 / 370.4 MB, free: 24.2 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001956/0.3343, allocations: 0.8247 MB / 371.3 MB, free: 24.07 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002117/0.3346, allocations: 140.5 kB / 371.4 MB, free: 23.97 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.89e-05/0.3346, allocations: 15.02 kB / 371.4 MB, free: 23.97 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002647/0.3349, allocations: 26.2 kB / 371.4 MB, free: 23.97 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002206/0.3351, allocations: 69.05 kB / 371.5 MB, free: 23.97 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.413e-05/0.3352, allocations: 15.31 kB / 371.5 MB, free: 23.97 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002318/0.3354, allocations: 178.4 kB / 371.7 MB, free: 23.9 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3354, allocations: 3.281 kB / 371.7 MB, free: 23.9 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007003/0.3361, allocations: 134.7 kB / 371.8 MB, free: 23.9 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (21): * Single equations (assignments): 20 * 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.002063/0.3382, allocations: 1.438 MB / 373.3 MB, free: 23.23 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001391/0.3396, allocations: 0.6242 MB / 373.9 MB, free: 23.09 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.3396, allocations: 2.781 kB / 373.9 MB, free: 23.09 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006788/0.3403, allocations: 435.5 kB / 374.3 MB, free: 22.96 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003126/0.3406, allocations: 27.75 kB / 374.3 MB, free: 22.96 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003857/0.3445, allocations: 2.738 MB / 377.1 MB, free: 21.6 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003505/0.3449, allocations: 0.7892 MB / 377.9 MB, free: 20.89 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002331/0.3451, allocations: 57.89 kB / 377.9 MB, free: 20.88 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000149/0.3453, allocations: 83.8 kB / 378 MB, free: 20.82 MB / 302.1 MB Notification: Performance of SimCode: time 1.353e-06/0.3453, allocations: 0 / 378 MB, free: 20.82 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02746/0.3728, allocations: 8.845 MB / 386.9 MB, free: 18.37 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002235/0.3731, allocations: 210.3 kB / 387.1 MB, free: 18.14 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.024/2.397, allocations: 0 / 387.1 MB, free: 18.14 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat does not exist to compare? outputFormat=mat