Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.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.ControlledDCDrives.CurrentControlledDCPM,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_ControlledDCDrives_CurrentControlledDCPM",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_ControlledDCDrives_CurrentControlledDCPM",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001085/0.001085, allocations: 102.9 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001527/0.001527, allocations: 192.5 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.468/1.468, allocations: 227.4 MB / 246 MB, free: 10.26 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002347/0.0002347, allocations: 8 kB / 306.8 MB, free: 1.25 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1139/0.1142, allocations: 51.49 MB / 358.3 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM): time 0.01355/0.1278, allocations: 12.46 MB / 370.8 MB, free: 1.262 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2523/0.3801, allocations: 4.876 MB / 375.6 MB, free: 9.473 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002825/0.383, allocations: 56.94 kB / 375.7 MB, free: 9.473 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00246/0.3854, allocations: 0.7194 MB / 376.4 MB, free: 9.457 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001654/0.3871, allocations: 436 kB / 376.8 MB, free: 9.289 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009515/0.3881, allocations: 314.2 kB / 377.1 MB, free: 9.277 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002333/0.3904, allocations: 1.908 MB / 379.1 MB, free: 8.809 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001074/0.3915, allocations: 0.7478 MB / 379.8 MB, free: 8.652 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001054/0.3926, allocations: 0.583 MB / 380.4 MB, free: 8.496 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008505/0.3934, allocations: 0.6754 MB / 381.1 MB, free: 8.312 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001748/0.3936, allocations: 91.19 kB / 381.1 MB, free: 8.312 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004191/0.394, allocations: 134 kB / 381.3 MB, free: 8.309 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00025/0.3943, allocations: 276.3 kB / 381.5 MB, free: 8.238 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000339/0.3946, allocations: 356 kB / 381.9 MB, free: 8.148 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002513/0.3972, allocations: 2.13 MB / 384 MB, free: 8.004 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.682e-06/0.3972, allocations: 1.125 kB / 384 MB, free: 8.004 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.917e-06/0.3972, allocations: 3.422 kB / 384 MB, free: 8.004 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.921e-05/0.3973, allocations: 4 kB / 384 MB, free: 8 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: 375 * Number of variables: 375 Notification: Performance of Generate backend data structure: time 0.002953/0.4002, allocations: 1.736 MB / 385.8 MB, free: 7.059 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.942e-05/0.4003, allocations: 9.953 kB / 385.8 MB, free: 7.059 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002503/0.4005, allocations: 211.2 kB / 386 MB, free: 7.012 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006767/0.4012, allocations: 248.4 kB / 386.2 MB, free: 6.91 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001562/0.4028, allocations: 0.9754 MB / 387.2 MB, free: 6.422 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001093/0.4029, allocations: 111.5 kB / 387.3 MB, free: 6.418 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002685/0.4032, allocations: 157.2 kB / 387.5 MB, free: 6.41 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002944/0.4061, allocations: 1.4 MB / 388.9 MB, free: 6.008 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.586e-05/0.4062, allocations: 13.98 kB / 388.9 MB, free: 5.996 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001252/0.4063, allocations: 67.89 kB / 388.9 MB, free: 5.992 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.992e-05/0.4064, allocations: 39.17 kB / 389 MB, free: 5.992 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001981/0.4084, allocations: 0.9497 MB / 389.9 MB, free: 5.656 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008132/0.4165, allocations: 6.071 MB / 396 MB, free: 0.6484 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001065/0.4176, allocations: 0.6557 MB / 396.7 MB, free: 200 kB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004384/0.4181, allocations: 242.2 kB / 396.9 MB, free: 84 kB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.303e-05/0.4181, allocations: 12.94 kB / 396.9 MB, free: 80 kB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.663e-05/0.4181, allocations: 44.94 kB / 397 MB, free: 28 kB / 302.1 MB Notification: Performance of pre-optimization done (n=51): time 2.415e-06/0.4182, allocations: 1.219 kB / 397 MB, free: 28 kB / 302.1 MB Notification: Performance of matching and sorting (n=54): time 0.003945/0.4221, allocations: 1.759 MB / 398.7 MB, free: 14.91 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.049e-05/0.4222, allocations: 83.02 kB / 398.8 MB, free: 14.82 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002076/0.4243, allocations: 1.102 MB / 399.9 MB, free: 14.2 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.554e-05/0.4243, allocations: 40.58 kB / 399.9 MB, free: 14.15 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006789/0.425, allocations: 0.792 MB / 400.7 MB, free: 13.45 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002124/0.4253, allocations: 210.6 kB / 400.9 MB, free: 13.27 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.597e-05/0.4253, allocations: 16.16 kB / 400.9 MB, free: 13.26 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001693/0.4255, allocations: 345.6 kB / 401.3 MB, free: 12.92 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005049/0.426, allocations: 241.9 kB / 401.5 MB, free: 12.81 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008276/0.4268, allocations: 0.6284 MB / 402.2 MB, free: 12.17 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006322/0.4275, allocations: 349.8 kB / 402.5 MB, free: 11.99 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.923e-06/0.4275, allocations: 3.312 kB / 402.5 MB, free: 11.99 MB / 318.1 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.001824/0.4293, allocations: 1.006 MB / 403.5 MB, free: 11.48 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000416/0.4297, allocations: 479.8 kB / 404 MB, free: 10.86 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.468e-05/0.4298, allocations: 10.78 kB / 404 MB, free: 10.86 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001879/0.43, allocations: 50.33 kB / 404 MB, free: 10.83 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007733/0.4308, allocations: 234.2 kB / 404.3 MB, free: 10.78 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001302/0.4321, allocations: 1.288 MB / 405.5 MB, free: 9.441 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000989/0.4331, allocations: 52.89 kB / 405.6 MB, free: 9.418 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.271e-05/0.4332, allocations: 46.78 kB / 405.6 MB, free: 9.41 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.797e-06/0.4332, allocations: 1.875 kB / 405.6 MB, free: 9.41 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001503/0.4347, allocations: 0.8082 MB / 406.5 MB, free: 9.004 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.328e-05/0.4347, allocations: 14.03 kB / 406.5 MB, free: 9.004 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001119/0.4348, allocations: 47.19 kB / 406.5 MB, free: 8.984 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006552/0.4355, allocations: 214 kB / 406.7 MB, free: 8.938 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001129/0.4367, allocations: 1.297 MB / 408 MB, free: 7.594 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009063/0.4376, allocations: 41.81 kB / 408.1 MB, free: 7.57 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.358e-05/0.4376, allocations: 46.78 kB / 408.1 MB, free: 7.562 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 2 (currentController.integrator.local_reset,armatureInverter.idealDcDc.powerController.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (122): * Single equations (assignments): 121 * 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.0009174/0.4386, allocations: 406.4 kB / 408.5 MB, free: 7.234 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001973/0.4388, allocations: 117.6 kB / 408.6 MB, free: 7.172 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001173/0.44, allocations: 0.5816 MB / 409.2 MB, free: 6.773 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.963e-06/0.44, allocations: 4 kB / 409.2 MB, free: 6.77 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.843e-06/0.44, allocations: 4 kB / 409.2 MB, free: 6.766 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.507e-06/0.44, allocations: 9.844 kB / 409.2 MB, free: 6.758 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003865/0.4439, allocations: 1.864 MB / 411.1 MB, free: 4.832 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.705e-06/0.4439, allocations: 0 / 411.1 MB, free: 4.832 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006625/0.4446, allocations: 111.8 kB / 411.2 MB, free: 4.723 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000123/0.4447, allocations: 20.84 kB / 411.2 MB, free: 4.699 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.577e-05/0.4448, allocations: 12.22 kB / 411.2 MB, free: 4.688 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001414/0.4462, allocations: 1.286 MB / 412.5 MB, free: 3.27 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.761e-06/0.4462, allocations: 4.156 kB / 412.5 MB, free: 3.266 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002059/0.4483, allocations: 0.9304 MB / 413.4 MB, free: 2.293 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005809/0.4489, allocations: 243.6 kB / 413.7 MB, free: 2.035 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001834/0.4491, allocations: 15.95 kB / 413.7 MB, free: 2.02 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007069/0.4498, allocations: 47.95 kB / 413.7 MB, free: 1.973 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.898e-05/0.4499, allocations: 40.42 kB / 413.8 MB, free: 1.934 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.332e-05/0.4499, allocations: 16 kB / 413.8 MB, free: 1.918 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001619/0.4516, allocations: 0.7358 MB / 414.5 MB, free: 1.176 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4516, allocations: 2.297 kB / 414.5 MB, free: 1.176 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.002391/0.454, allocations: 467.9 kB / 415 MB, free: 0.7188 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 10 (loadInertia.w,dcpm.la.i,armatureInverter.vDCFilter.y,armatureInverter.iMotFilter.y,armatureInverter.idealDcDc.deadTime.y,armatureInverter.idealDcDc.powerController.y,armatureInverter.vMotFilter.y,armatureInverter.iDCFilter.y,currentController.integrator.y,loadTorque.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 (53): * Single equations (assignments): 52 * 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.002473/0.4565, allocations: 1.51 MB / 416.5 MB, free: 15.15 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002961/0.4594, allocations: 1.253 MB / 417.8 MB, free: 13.88 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.931e-06/0.4595, allocations: 2 kB / 417.8 MB, free: 13.88 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007727/0.4602, allocations: 365.4 kB / 418.1 MB, free: 13.51 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001937/0.4622, allocations: 257.1 kB / 418.4 MB, free: 13.26 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02197/0.4842, allocations: 7.457 MB / 425.8 MB, free: 5.332 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001484/0.4857, allocations: 1.165 MB / 427 MB, free: 4.137 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.001012/0.4868, allocations: 159.4 kB / 427.1 MB, free: 3.98 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008786/0.4877, allocations: 0.5383 MB / 427.7 MB, free: 3.441 MB / 334.1 MB Notification: Performance of SimCode: time 1.473e-06/0.4877, allocations: 4 kB / 427.7 MB, free: 3.438 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0481/0.5358, allocations: 22.97 MB / 450.7 MB, free: 12.8 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001936/0.536, allocations: 241.2 kB / 450.9 MB, free: 12.56 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.451/2.987, allocations: 0 / 450.9 MB, free: 12.56 MB / 366.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_ControlledDCDrives_CurrentControlledDCPM_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_ControlledDCDrives_CurrentControlledDCPM.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM_res.mat does not exist to compare? outputFormat=mat