Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.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 3.2.3+maint.om/package.mo", uses=false) 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 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.GenerationOfFMUs,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs",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.0009503/0.0009501, allocations: 94.14 kB / 16.95 MB, free: 6.113 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.001037/0.001037, allocations: 175.3 kB / 17.84 MB, free: 5.73 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.589/1.589, allocations: 205.4 MB / 224 MB, free: 13.15 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004307/0.0004309, allocations: 12 kB / 280.9 MB, free: 3.641 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08638/0.08683, allocations: 47.58 MB / 328.5 MB, free: 3.988 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.005279/0.09215, allocations: 4.655 MB / 333.1 MB, free: 15.31 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003516/0.09571, allocations: 1.956 MB / 335.1 MB, free: 13.34 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008733/0.09662, allocations: 31.81 kB / 335.1 MB, free: 13.31 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004337/0.09707, allocations: 146.8 kB / 335.2 MB, free: 13.16 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000462/0.09754, allocations: 142.8 kB / 335.4 MB, free: 13.02 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00101/0.09856, allocations: 247.4 kB / 335.6 MB, free: 12.78 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009823/0.09955, allocations: 0.8919 MB / 336.5 MB, free: 11.89 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006543/0.1002, allocations: 425.5 kB / 336.9 MB, free: 11.45 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000344/0.1006, allocations: 235 kB / 337.2 MB, free: 11.22 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003126/0.1009, allocations: 254.6 kB / 337.4 MB, free: 10.97 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.325e-05/0.101, allocations: 32 kB / 337.4 MB, free: 10.94 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002287/0.1012, allocations: 87.91 kB / 337.5 MB, free: 10.85 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00014/0.1014, allocations: 115.5 kB / 337.6 MB, free: 10.74 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001684/0.1015, allocations: 173.3 kB / 337.8 MB, free: 10.56 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008586/0.1024, allocations: 0.8923 MB / 338.7 MB, free: 9.668 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.813e-06/0.1024, allocations: 0 / 338.7 MB, free: 9.668 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.364e-06/0.1024, allocations: 0 / 338.7 MB, free: 9.668 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.272e-05/0.1024, allocations: 4 kB / 338.7 MB, free: 9.664 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 214 * Number of variables: 214 Notification: Performance of Generate backend data structure: time 0.001405/0.1039, allocations: 0.8812 MB / 339.6 MB, free: 8.73 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.154e-05/0.1039, allocations: 8.031 kB / 339.6 MB, free: 8.723 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001488/0.1041, allocations: 135.3 kB / 339.7 MB, free: 8.582 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001124/0.1042, allocations: 86.97 kB / 339.8 MB, free: 8.496 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000627/0.1048, allocations: 0.4936 MB / 340.3 MB, free: 7.957 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.134e-05/0.1049, allocations: 66 kB / 340.4 MB, free: 7.895 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001008/0.105, allocations: 84 kB / 340.4 MB, free: 7.812 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001408/0.1064, allocations: 0.7966 MB / 341.2 MB, free: 6.977 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.671e-05/0.1064, allocations: 7.906 kB / 341.2 MB, free: 6.969 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.31e-05/0.1065, allocations: 39.94 kB / 341.3 MB, free: 6.93 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.127e-05/0.1065, allocations: 20 kB / 341.3 MB, free: 6.91 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009118/0.1075, allocations: 499.6 kB / 341.8 MB, free: 6.426 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003245/0.1107, allocations: 2.911 MB / 344.7 MB, free: 3.387 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005149/0.1112, allocations: 219.3 kB / 344.9 MB, free: 3.164 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002333/0.1115, allocations: 104.8 kB / 345 MB, free: 3.059 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002499/0.1118, allocations: 251.3 kB / 345.3 MB, free: 2.758 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.39e-05/0.1118, allocations: 34.5 kB / 345.3 MB, free: 2.715 MB / 286.1 MB Notification: Performance of pre-optimization done (n=30): time 1.543e-06/0.1118, allocations: 0 / 345.3 MB, free: 2.715 MB / 286.1 MB Notification: Performance of matching and sorting (n=35): time 0.002204/0.114, allocations: 1.275 MB / 346.6 MB, free: 1.344 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.186e-05/0.1141, allocations: 59.41 kB / 346.6 MB, free: 1.273 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002961/0.1144, allocations: 300.6 kB / 346.9 MB, free: 0.9727 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.335e-05/0.1144, allocations: 29.7 kB / 347 MB, free: 0.9375 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002229/0.1146, allocations: 398.5 kB / 347.3 MB, free: 0.543 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.974e-05/0.1147, allocations: 134.1 kB / 347.5 MB, free: 420 kB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.576e-05/0.1147, allocations: 12 kB / 347.5 MB, free: 408 kB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001344/0.1149, allocations: 346.8 kB / 347.8 MB, free: 52 kB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002003/0.1151, allocations: 109.1 kB / 347.9 MB, free: 15.95 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002935/0.1154, allocations: 258.5 kB / 348.2 MB, free: 15.64 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002334/0.1156, allocations: 147.7 kB / 348.3 MB, free: 15.49 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.597e-06/0.1157, allocations: 4 kB / 348.3 MB, free: 15.49 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0007332/0.1164, allocations: 457.1 kB / 348.8 MB, free: 15.03 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.939e-05/0.1164, allocations: 8 kB / 348.8 MB, free: 15.02 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.746e-06/0.1164, allocations: 4.594 kB / 348.8 MB, free: 15.02 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00018/0.1166, allocations: 44.78 kB / 348.8 MB, free: 14.97 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003386/0.117, allocations: 103.9 kB / 348.9 MB, free: 14.87 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004853/0.1175, allocations: 0.5602 MB / 349.5 MB, free: 14.29 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001577/0.1176, allocations: 20 kB / 349.5 MB, free: 14.27 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.368e-05/0.1177, allocations: 23.95 kB / 349.5 MB, free: 14.24 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (60): * Single equations (assignments): 59 * 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 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0002753/0.118, allocations: 221.7 kB / 349.8 MB, free: 14.02 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.883e-05/0.1181, allocations: 39.53 kB / 349.8 MB, free: 13.98 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000557/0.1186, allocations: 322 kB / 350.1 MB, free: 13.65 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.34e-06/0.1186, allocations: 4 kB / 350.1 MB, free: 13.65 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.171e-06/0.1187, allocations: 4 kB / 350.1 MB, free: 13.64 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.989e-06/0.1187, allocations: 11.94 kB / 350.1 MB, free: 13.63 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001343/0.12, allocations: 1.018 MB / 351.1 MB, free: 12.54 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-06/0.12, allocations: 4 kB / 351.2 MB, free: 12.54 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003401/0.1204, allocations: 83.89 kB / 351.2 MB, free: 12.45 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001173/0.1205, allocations: 28.84 kB / 351.3 MB, free: 12.42 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.786e-05/0.1206, allocations: 15.92 kB / 351.3 MB, free: 12.41 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005294/0.1211, allocations: 0.5525 MB / 351.8 MB, free: 11.83 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.5e-06/0.1212, allocations: 4.031 kB / 351.8 MB, free: 11.82 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008249/0.122, allocations: 0.544 MB / 352.4 MB, free: 11.24 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001556/0.1222, allocations: 108.6 kB / 352.5 MB, free: 11.12 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.715e-05/0.1222, allocations: 15.98 kB / 352.5 MB, free: 11.1 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001493/0.1224, allocations: 8 kB / 352.5 MB, free: 11.09 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.737e-05/0.1224, allocations: 27.92 kB / 352.5 MB, free: 11.07 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.023e-05/0.1225, allocations: 12 kB / 352.5 MB, free: 11.05 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002006/0.1227, allocations: 207.1 kB / 352.7 MB, free: 10.85 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.844e-06/0.1227, allocations: 96 / 352.7 MB, free: 10.85 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005074/0.1232, allocations: 123.9 kB / 352.9 MB, free: 10.73 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 10 (directInertia.inertia.w,directInertia.torqueToAngle.phi,inertia2a.w,torqueToAngle2a.phi,inertia2b.w,torqueToAngle2b.phi,inertia3a.phi,inertia3a.w,inertia3b.phi,inertia3b.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (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 {1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.001126/0.1243, allocations: 1.101 MB / 354 MB, free: 9.586 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006362/0.125, allocations: 303.9 kB / 354.3 MB, free: 9.289 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.125, allocations: 1.188 kB / 354.3 MB, free: 9.289 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002422/0.1252, allocations: 140.1 kB / 354.4 MB, free: 9.152 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004827/0.1257, allocations: 65.36 kB / 354.5 MB, free: 9.09 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004969/0.1307, allocations: 3.415 MB / 357.9 MB, free: 5.543 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005243/0.1313, allocations: 0.9248 MB / 358.8 MB, free: 4.59 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001628/0.1314, allocations: 51.33 kB / 358.9 MB, free: 4.539 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002717/0.1317, allocations: 243.3 kB / 359.1 MB, free: 4.301 MB / 302.1 MB Notification: Performance of SimCode: time 1.132e-06/0.1317, allocations: 0 / 359.1 MB, free: 4.301 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02202/0.1537, allocations: 8.06 MB / 367.2 MB, free: 12.24 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001822/0.154, allocations: 234.7 kB / 367.4 MB, free: 11.99 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.158/2.311, allocations: 0 / 367.4 MB, free: 11.99 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.mat does not exist to compare? outputFormat=mat