Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,fileNamePrefix="Modelica_trunk_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/ModelicaServices trunk/package.mo): time 0.001218/0.001218, allocations: 99.98 kB / 16.99 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001557/0.001557, allocations: 197.7 kB / 17.9 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.392/1.392, allocations: 227.3 MB / 245.9 MB, free: 12.03 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002447/0.0002448, allocations: 8 kB / 306.7 MB, free: 1.477 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1072/0.1075, allocations: 51.5 MB / 358.2 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.005993/0.1135, allocations: 5.738 MB / 363.9 MB, free: 8.211 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003612/0.1172, allocations: 2.258 MB / 366.2 MB, free: 5.949 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005292/0.1177, allocations: 19.94 kB / 366.2 MB, free: 5.93 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001117/0.1189, allocations: 426 kB / 366.6 MB, free: 5.512 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008787/0.1198, allocations: 402.8 kB / 367 MB, free: 5.117 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003531/0.1201, allocations: 119.9 kB / 367.1 MB, free: 5 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001162/0.1213, allocations: 0.8582 MB / 368 MB, free: 4.141 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004887/0.1218, allocations: 364.6 kB / 368.4 MB, free: 3.77 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003349/0.1221, allocations: 350.6 kB / 368.7 MB, free: 3.426 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003857/0.1225, allocations: 386.2 kB / 369.1 MB, free: 3.047 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.417e-05/0.1226, allocations: 48 kB / 369.1 MB, free: 3 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002175/0.1228, allocations: 95.91 kB / 369.2 MB, free: 2.906 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001049/0.1229, allocations: 139.4 kB / 369.4 MB, free: 2.77 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001577/0.1231, allocations: 221.2 kB / 369.6 MB, free: 2.547 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000943/0.1241, allocations: 1.079 MB / 370.7 MB, free: 1.465 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.755e-06/0.1241, allocations: 0 / 370.7 MB, free: 1.465 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.755e-06/0.1241, allocations: 7.984 kB / 370.7 MB, free: 1.457 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.33e-05/0.1241, allocations: 0 / 370.7 MB, free: 1.457 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: 200 * Number of variables: 200 Notification: Performance of Generate backend data structure: time 0.001655/0.1258, allocations: 1.067 MB / 371.7 MB, free: 348 kB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.149e-05/0.1258, allocations: 12.03 kB / 371.7 MB, free: 336 kB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001335/0.126, allocations: 122.9 kB / 371.9 MB, free: 204 kB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003189/0.1263, allocations: 138.6 kB / 372 MB, free: 64 kB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2467/0.373, allocations: 0.6059 MB / 372.6 MB, free: 18.84 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.679e-05/0.3731, allocations: 64.84 kB / 372.7 MB, free: 18.84 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000144/0.3733, allocations: 80.39 kB / 372.7 MB, free: 18.84 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00169/0.375, allocations: 0.7694 MB / 373.5 MB, free: 18.71 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.397e-05/0.375, allocations: 11.66 kB / 373.5 MB, free: 18.71 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.825e-05/0.3751, allocations: 33.03 kB / 373.6 MB, free: 18.71 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.474e-05/0.3751, allocations: 19.78 kB / 373.6 MB, free: 18.71 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001405/0.3766, allocations: 0.5237 MB / 374.1 MB, free: 18.7 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004786/0.3813, allocations: 3.363 MB / 377.5 MB, free: 16.77 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005118/0.3819, allocations: 233.5 kB / 377.7 MB, free: 16.68 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.936e-05/0.3819, allocations: 2.688 kB / 377.7 MB, free: 16.68 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.354e-05/0.382, allocations: 39.84 kB / 377.7 MB, free: 16.63 MB / 302.1 MB Notification: Performance of pre-optimization done (n=25): time 2.976e-06/0.382, allocations: 0 / 377.7 MB, free: 16.63 MB / 302.1 MB Notification: Performance of matching and sorting (n=28): time 0.002132/0.3841, allocations: 1.084 MB / 378.8 MB, free: 15.91 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.277e-05/0.3842, allocations: 81 kB / 378.9 MB, free: 15.82 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009172/0.3851, allocations: 0.6736 MB / 379.6 MB, free: 15.52 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.297e-05/0.3851, allocations: 30.98 kB / 379.6 MB, free: 15.48 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003319/0.3855, allocations: 0.49 MB / 380.1 MB, free: 15.09 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.599e-05/0.3855, allocations: 105.8 kB / 380.2 MB, free: 15.01 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.776e-05/0.3856, allocations: 9.688 kB / 380.2 MB, free: 15 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001408/0.3857, allocations: 382.5 kB / 380.6 MB, free: 14.66 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002876/0.386, allocations: 130.6 kB / 380.7 MB, free: 14.62 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004166/0.3864, allocations: 425 kB / 381.1 MB, free: 14.19 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003647/0.3868, allocations: 190.4 kB / 381.3 MB, free: 14.11 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.062e-06/0.3868, allocations: 3.094 kB / 381.3 MB, free: 14.11 MB / 302.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001122/0.3879, allocations: 0.6261 MB / 381.9 MB, free: 13.82 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.506e-05/0.388, allocations: 8.938 kB / 381.9 MB, free: 13.82 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.7e-05/0.388, allocations: 10.88 kB / 382 MB, free: 13.82 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001914/0.3882, allocations: 34.5 kB / 382 MB, free: 13.81 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005029/0.3887, allocations: 143.5 kB / 382.1 MB, free: 13.8 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007714/0.3895, allocations: 1.293 MB / 383.4 MB, free: 12.48 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004513/0.39, allocations: 42.56 kB / 383.5 MB, free: 12.46 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.484e-05/0.39, allocations: 30.88 kB / 383.5 MB, free: 12.46 MB / 302.1 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.0003189/0.3903, allocations: 236.2 kB / 383.7 MB, free: 12.26 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001026/0.3904, allocations: 73.05 kB / 383.8 MB, free: 12.22 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006865/0.3911, allocations: 343 kB / 384.1 MB, free: 12.07 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.058e-06/0.3911, allocations: 2.906 kB / 384.1 MB, free: 12.07 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.446e-06/0.3911, allocations: 0.7969 kB / 384.1 MB, free: 12.07 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.382e-06/0.3912, allocations: 6.734 kB / 384.1 MB, free: 12.06 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001828/0.393, allocations: 1.073 MB / 385.2 MB, free: 11.42 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.502e-06/0.393, allocations: 4.203 kB / 385.2 MB, free: 11.42 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002867/0.3933, allocations: 60.58 kB / 385.3 MB, free: 11.41 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.835e-05/0.3934, allocations: 27.77 kB / 385.3 MB, free: 11.4 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.439e-05/0.3934, allocations: 12.39 kB / 385.3 MB, free: 11.39 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006762/0.3941, allocations: 1.285 MB / 386.6 MB, free: 10.08 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.517e-06/0.3941, allocations: 2.062 kB / 386.6 MB, free: 10.08 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009372/0.3951, allocations: 0.6477 MB / 387.2 MB, free: 9.605 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002122/0.3953, allocations: 169.2 kB / 387.4 MB, free: 9.453 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.562e-05/0.3954, allocations: 7.859 kB / 387.4 MB, free: 9.449 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002835/0.3957, allocations: 22.28 kB / 387.4 MB, free: 9.445 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.514e-05/0.3958, allocations: 21.8 kB / 387.5 MB, free: 9.441 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.998e-05/0.3958, allocations: 12.2 kB / 387.5 MB, free: 9.438 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0006835/0.3965, allocations: 467.1 kB / 387.9 MB, free: 9.227 MB / 302.1 MB Notification: Performance of sort global known variables: time 2e-07/0.3965, allocations: 0 / 387.9 MB, free: 9.227 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007867/0.3973, allocations: 161.2 kB / 388.1 MB, free: 9.211 MB / 302.1 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.001342/0.3986, allocations: 1.704 MB / 389.8 MB, free: 7.727 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009854/0.3996, allocations: 466.1 kB / 390.2 MB, free: 7.508 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.3997, allocations: 1.25 kB / 390.2 MB, free: 7.508 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003739/0.4, allocations: 249.5 kB / 390.5 MB, free: 7.352 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008848/0.4009, allocations: 167.7 kB / 390.7 MB, free: 7.297 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009901/0.4108, allocations: 10.69 MB / 401.3 MB, free: 14.28 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007324/0.4116, allocations: 0.9541 MB / 402.3 MB, free: 13.57 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000544/0.4122, allocations: 93.67 kB / 402.4 MB, free: 13.54 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003911/0.4126, allocations: 300 kB / 402.7 MB, free: 13.31 MB / 318.1 MB Notification: Performance of SimCode: time 1.162e-06/0.4126, allocations: 0 / 402.7 MB, free: 13.31 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03474/0.4473, allocations: 13.58 MB / 416.3 MB, free: 3.211 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002026/0.4476, allocations: 218.6 kB / 416.5 MB, free: 2.961 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.014/2.462, allocations: 2.953 kB / 416.5 MB, free: 2.961 MB / 318.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.mat does not exist to compare? outputFormat=mat