Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.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.Electrical.Machines.Examples.DCMachines.DCPM_Start,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start",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.00162/0.00162, allocations: 187 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.069/2.069, allocations: 205.4 MB / 222.5 MB, free: 13.84 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.001165/0.001165, allocations: 102.8 kB / 270.9 MB, free: 13.37 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000403/0.0004035, allocations: 12 kB / 327.1 MB, free: 14.98 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09999/0.1004, allocations: 47.57 MB / 374.6 MB, free: 15.34 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.01142/0.1119, allocations: 5.686 MB / 380.3 MB, free: 9.617 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.005592/0.1176, allocations: 2.267 MB / 382.6 MB, free: 7.34 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009369/0.1186, allocations: 19.94 kB / 382.6 MB, free: 7.32 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001861/0.1205, allocations: 422 kB / 383 MB, free: 6.906 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00176/0.1223, allocations: 398.8 kB / 383.4 MB, free: 6.516 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006792/0.123, allocations: 123.9 kB / 383.5 MB, free: 6.395 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.002283/0.1253, allocations: 0.8546 MB / 384.4 MB, free: 5.539 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007937/0.1261, allocations: 356.6 kB / 384.7 MB, free: 5.18 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006112/0.1267, allocations: 346.6 kB / 385.1 MB, free: 4.84 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006079/0.1273, allocations: 386.2 kB / 385.5 MB, free: 4.461 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001162/0.1275, allocations: 48 kB / 385.5 MB, free: 4.414 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000376/0.1279, allocations: 95.91 kB / 385.6 MB, free: 4.32 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000177/0.1281, allocations: 147.4 kB / 385.7 MB, free: 4.176 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002631/0.1283, allocations: 217.2 kB / 386 MB, free: 3.957 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001633/0.13, allocations: 1.075 MB / 387 MB, free: 2.879 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.13, allocations: 0 / 387 MB, free: 2.879 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.214e-06/0.13, allocations: 0 / 387 MB, free: 2.879 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.11e-05/0.13, allocations: 4 kB / 387 MB, free: 2.875 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 200 * Number of variables: 200 Notification: Performance of Generate backend data structure: time 0.002543/0.1326, allocations: 1.083 MB / 388.1 MB, free: 1.742 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.762e-05/0.1327, allocations: 8.031 kB / 388.1 MB, free: 1.734 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002262/0.1329, allocations: 126.9 kB / 388.2 MB, free: 1.602 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005303/0.1334, allocations: 134.7 kB / 388.4 MB, free: 1.469 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001395/0.1348, allocations: 0.6134 MB / 389 MB, free: 0.8086 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.733e-05/0.1349, allocations: 65.98 kB / 389.1 MB, free: 0.7461 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001744/0.1351, allocations: 75.94 kB / 389.1 MB, free: 0.6719 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2611/0.3962, allocations: 0.7679 MB / 389.9 MB, free: 20.14 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.789e-05/0.3963, allocations: 4.969 kB / 389.9 MB, free: 20.14 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001208/0.3965, allocations: 33.78 kB / 389.9 MB, free: 20.14 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.32e-05/0.3965, allocations: 19.12 kB / 390 MB, free: 20.14 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002003/0.3985, allocations: 0.5253 MB / 390.5 MB, free: 20.14 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006205/0.4048, allocations: 3.361 MB / 393.8 MB, free: 18.11 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007586/0.4056, allocations: 243.2 kB / 394.1 MB, free: 18.01 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.807e-05/0.4056, allocations: 4.219 kB / 394.1 MB, free: 18.01 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.017e-05/0.4057, allocations: 35.84 kB / 394.1 MB, free: 17.97 MB / 282.7 MB Notification: Performance of pre-optimization done (n=25): time 3.907e-06/0.4057, allocations: 1.25 kB / 394.1 MB, free: 17.97 MB / 282.7 MB Notification: Performance of matching and sorting (n=28): time 0.003114/0.4088, allocations: 1.075 MB / 395.2 MB, free: 17.27 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.304e-05/0.4089, allocations: 81.41 kB / 395.3 MB, free: 17.17 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001298/0.4102, allocations: 0.6775 MB / 396 MB, free: 16.86 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.607e-05/0.4103, allocations: 31.02 kB / 396 MB, free: 16.82 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003393/0.4106, allocations: 0.5111 MB / 396.5 MB, free: 16.39 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001011/0.4107, allocations: 107.5 kB / 396.6 MB, free: 16.31 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.047e-05/0.4108, allocations: 14.81 kB / 396.6 MB, free: 16.3 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 8.697e-05/0.4109, allocations: 334 kB / 396.9 MB, free: 15.97 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004604/0.4113, allocations: 126.5 kB / 397.1 MB, free: 15.93 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005947/0.4119, allocations: 429 kB / 397.5 MB, free: 15.5 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005847/0.4125, allocations: 195.7 kB / 397.7 MB, free: 15.41 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.156e-06/0.4126, allocations: 2.75 kB / 397.7 MB, free: 15.41 MB / 282.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001559/0.4141, allocations: 0.576 MB / 398.2 MB, free: 15.16 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.714e-05/0.4142, allocations: 9.031 kB / 398.3 MB, free: 15.16 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.972e-05/0.4142, allocations: 9.562 kB / 398.3 MB, free: 15.16 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002113/0.4144, allocations: 30.75 kB / 398.3 MB, free: 15.15 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008427/0.4153, allocations: 151.5 kB / 398.4 MB, free: 15.13 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001015/0.4163, allocations: 1.289 MB / 399.7 MB, free: 13.81 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007368/0.4171, allocations: 49.3 kB / 399.8 MB, free: 13.79 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.751e-05/0.4171, allocations: 28.56 kB / 399.8 MB, free: 13.79 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * 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 (73): * Single equations (assignments): 72 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004536/0.4176, allocations: 234.1 kB / 400 MB, free: 13.6 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001214/0.4177, allocations: 73.88 kB / 400.1 MB, free: 13.56 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009988/0.4188, allocations: 339.2 kB / 400.4 MB, free: 13.4 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.051e-06/0.4188, allocations: 2.719 kB / 400.4 MB, free: 13.4 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.8e-06/0.4188, allocations: 8.656 kB / 400.5 MB, free: 13.39 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.983e-06/0.4188, allocations: 2.031 kB / 400.5 MB, free: 13.39 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002405/0.4212, allocations: 1.064 MB / 401.5 MB, free: 12.75 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.472e-06/0.4213, allocations: 1.25 kB / 401.5 MB, free: 12.75 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005164/0.4218, allocations: 69.92 kB / 401.6 MB, free: 12.74 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001378/0.4219, allocations: 27.8 kB / 401.6 MB, free: 12.72 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.02e-05/0.422, allocations: 7.734 kB / 401.6 MB, free: 12.72 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009221/0.4229, allocations: 1.28 MB / 402.9 MB, free: 11.41 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.03e-06/0.4229, allocations: 2.922 kB / 402.9 MB, free: 11.41 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001501/0.4244, allocations: 0.6558 MB / 403.6 MB, free: 10.93 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003202/0.4248, allocations: 168.3 kB / 403.7 MB, free: 10.78 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001231/0.4249, allocations: 8.906 kB / 403.7 MB, free: 10.77 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005392/0.4255, allocations: 22.89 kB / 403.8 MB, free: 10.77 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001017/0.4256, allocations: 29.97 kB / 403.8 MB, free: 10.76 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.73e-05/0.4256, allocations: 11.34 kB / 403.8 MB, free: 10.75 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0009378/0.4266, allocations: 462.9 kB / 404.3 MB, free: 10.55 MB / 282.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.4266, allocations: 0 / 404.3 MB, free: 10.55 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001045/0.4276, allocations: 155.2 kB / 404.4 MB, free: 10.54 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcpm.inertiaRotor.w,dcpm.la.i,loadInertia.phi) * 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 (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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00189/0.4295, allocations: 1.701 MB / 406.1 MB, free: 9.055 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001377/0.431, allocations: 464.1 kB / 406.6 MB, free: 8.84 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 5.841e-06/0.431, allocations: 2 kB / 406.6 MB, free: 8.84 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000615/0.4316, allocations: 252.2 kB / 406.8 MB, free: 8.68 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00138/0.433, allocations: 163.9 kB / 407 MB, free: 8.621 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01241/0.4454, allocations: 10.72 MB / 417.7 MB, free: 15.59 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008255/0.4463, allocations: 0.9625 MB / 418.6 MB, free: 14.87 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006309/0.447, allocations: 301.6 kB / 418.9 MB, free: 14.64 MB / 298.7 MB Notification: Performance of SimCode: time 1.272e-06/0.447, allocations: 0.8125 kB / 418.9 MB, free: 14.64 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.825/3.272, allocations: 16.41 MB / 435.4 MB, free: 1.453 MB / 298.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.mat does not exist to compare? outputFormat=mat