Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.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.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_ControlledDCDrives_CurrentControlledDCPM",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.0009458/0.0009458, allocations: 97.92 kB / 16.3 MB, free: 5.57 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.001012/0.001013, allocations: 184.6 kB / 17.2 MB, free: 5.504 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.43/1.43, allocations: 223.2 MB / 241.1 MB, free: 392 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000285/0.0002851, allocations: 4 kB / 300.8 MB, free: 6.363 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1343/0.1346, allocations: 50.42 MB / 351.2 MB, free: 3.93 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM): time 0.01435/0.149, allocations: 11.31 MB / 362.5 MB, free: 8.57 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01175/0.1608, allocations: 4.928 MB / 367.5 MB, free: 3.633 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003576/0.1644, allocations: 51.81 kB / 367.5 MB, free: 3.582 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004336/0.1688, allocations: 0.8278 MB / 368.4 MB, free: 2.75 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005744/0.1746, allocations: 0.849 MB / 369.2 MB, free: 1.898 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00263/0.1772, allocations: 0.5032 MB / 369.7 MB, free: 1.395 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.271/0.4482, allocations: 1.445 MB / 371.2 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001862/0.4501, allocations: 0.7627 MB / 371.9 MB, free: 9.891 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001058/0.4512, allocations: 0.5801 MB / 372.5 MB, free: 9.891 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009194/0.4521, allocations: 0.6695 MB / 373.2 MB, free: 9.891 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001779/0.4523, allocations: 92.28 kB / 373.3 MB, free: 9.891 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004176/0.4527, allocations: 139.5 kB / 373.4 MB, free: 9.887 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002859/0.453, allocations: 274.4 kB / 373.7 MB, free: 9.887 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003784/0.4534, allocations: 356.3 kB / 374 MB, free: 9.855 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002553/0.456, allocations: 2.168 MB / 376.2 MB, free: 9.715 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.755e-06/0.456, allocations: 0 / 376.2 MB, free: 9.715 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.456, allocations: 0 / 376.2 MB, free: 9.715 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.936e-05/0.4561, allocations: 0 / 376.2 MB, free: 9.715 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: 379 * Number of variables: 379 Notification: Performance of Generate backend data structure: time 0.003479/0.4596, allocations: 1.741 MB / 377.9 MB, free: 8.777 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.699e-05/0.4596, allocations: 12.94 kB / 377.9 MB, free: 8.773 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003625/0.46, allocations: 212.8 kB / 378.1 MB, free: 8.727 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007459/0.4607, allocations: 246.1 kB / 378.4 MB, free: 8.629 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001806/0.4626, allocations: 0.9999 MB / 379.4 MB, free: 8.293 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.731e-05/0.4627, allocations: 117.2 kB / 379.5 MB, free: 8.281 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002321/0.4629, allocations: 156.5 kB / 379.6 MB, free: 8.277 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002933/0.4658, allocations: 1.418 MB / 381.1 MB, free: 8.086 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.21e-05/0.4659, allocations: 7.094 kB / 381.1 MB, free: 8.082 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001216/0.466, allocations: 60.66 kB / 381.1 MB, free: 8.082 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.68e-05/0.4661, allocations: 36.59 kB / 381.2 MB, free: 8.082 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001942/0.468, allocations: 0.9691 MB / 382.1 MB, free: 8.059 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008366/0.4764, allocations: 6.151 MB / 388.3 MB, free: 5.066 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001095/0.4775, allocations: 0.6492 MB / 388.9 MB, free: 4.809 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.781e-05/0.4776, allocations: 7.547 kB / 388.9 MB, free: 4.809 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.89e-05/0.4776, allocations: 44.23 kB / 389 MB, free: 4.762 MB / 302.1 MB Notification: Performance of pre-optimization done (n=51): time 2.395e-06/0.4776, allocations: 3.188 kB / 389 MB, free: 4.762 MB / 302.1 MB Notification: Performance of matching and sorting (n=54): time 0.003392/0.481, allocations: 1.753 MB / 390.7 MB, free: 3.984 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.414e-05/0.4811, allocations: 86 kB / 390.8 MB, free: 3.887 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001724/0.4828, allocations: 1.101 MB / 391.9 MB, free: 3.57 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.896e-05/0.4829, allocations: 34.61 kB / 392 MB, free: 3.539 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000505/0.4834, allocations: 0.8084 MB / 392.8 MB, free: 3.062 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001544/0.4836, allocations: 200.9 kB / 393 MB, free: 2.922 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.438e-05/0.4836, allocations: 18 kB / 393 MB, free: 2.922 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001144/0.4837, allocations: 344.2 kB / 393.3 MB, free: 2.605 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004121/0.4841, allocations: 241.8 kB / 393.6 MB, free: 2.574 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006481/0.4848, allocations: 0.6281 MB / 394.2 MB, free: 2.035 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005982/0.4854, allocations: 347.6 kB / 394.5 MB, free: 2.004 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.644e-06/0.4854, allocations: 3.781 kB / 394.5 MB, free: 2.004 MB / 302.1 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.001665/0.4871, allocations: 1.007 MB / 395.5 MB, free: 1.801 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.001876/0.489, allocations: 5.141 MB / 400.7 MB, free: 12.4 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.731e-05/0.489, allocations: 13.66 kB / 400.7 MB, free: 12.4 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001899/0.4892, allocations: 40.56 kB / 400.7 MB, free: 12.39 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007722/0.49, allocations: 228.6 kB / 400.9 MB, free: 12.36 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001025/0.491, allocations: 1.303 MB / 402.3 MB, free: 11.07 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009311/0.492, allocations: 57.2 kB / 402.3 MB, free: 11.05 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.087e-05/0.492, allocations: 47.94 kB / 402.4 MB, free: 11.05 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.536e-06/0.4921, allocations: 2.75 kB / 402.4 MB, free: 11.05 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001314/0.4934, allocations: 0.8096 MB / 403.2 MB, free: 10.97 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.924e-05/0.4934, allocations: 12.88 kB / 403.2 MB, free: 10.97 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001066/0.4935, allocations: 45 kB / 403.2 MB, free: 10.95 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006708/0.4942, allocations: 220.1 kB / 403.4 MB, free: 10.93 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008673/0.4951, allocations: 1.297 MB / 404.7 MB, free: 9.645 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007611/0.4959, allocations: 43.16 kB / 404.8 MB, free: 9.641 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.213e-05/0.4959, allocations: 43.47 kB / 404.8 MB, free: 9.641 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.0009243/0.4969, allocations: 415.5 kB / 405.2 MB, free: 9.438 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001736/0.4971, allocations: 118.2 kB / 405.3 MB, free: 9.375 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001036/0.4981, allocations: 0.5837 MB / 405.9 MB, free: 9.215 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.031e-06/0.4981, allocations: 5.594 kB / 405.9 MB, free: 9.215 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.996e-06/0.4981, allocations: 0 / 405.9 MB, free: 9.215 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.688e-06/0.4981, allocations: 7.938 kB / 405.9 MB, free: 9.207 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003017/0.5012, allocations: 1.87 MB / 407.8 MB, free: 7.906 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.338e-06/0.5012, allocations: 0 / 407.8 MB, free: 7.906 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004719/0.5017, allocations: 114.7 kB / 407.9 MB, free: 7.879 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.802e-05/0.5018, allocations: 24.72 kB / 407.9 MB, free: 7.863 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.631e-05/0.5018, allocations: 21.69 kB / 408 MB, free: 7.848 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000937/0.5028, allocations: 1.277 MB / 409.2 MB, free: 6.512 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.877e-06/0.5028, allocations: 7.203 kB / 409.3 MB, free: 6.508 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001511/0.5043, allocations: 1.024 MB / 410.3 MB, free: 5.82 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000461/0.5048, allocations: 244.2 kB / 410.5 MB, free: 5.594 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001302/0.5049, allocations: 16.03 kB / 410.5 MB, free: 5.586 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005169/0.5054, allocations: 42.39 kB / 410.6 MB, free: 5.566 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.495e-05/0.5055, allocations: 39.33 kB / 410.6 MB, free: 5.547 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.908e-05/0.5055, allocations: 12 kB / 410.6 MB, free: 5.547 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001094/0.5066, allocations: 0.7348 MB / 411.4 MB, free: 5.121 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5067, allocations: 7.938 kB / 411.4 MB, free: 5.113 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001717/0.5084, allocations: 467 kB / 411.8 MB, free: 4.707 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.002062/0.5104, allocations: 2.086 MB / 413.9 MB, free: 2.543 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002191/0.5126, allocations: 1.25 MB / 415.2 MB, free: 1.277 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.958e-06/0.5127, allocations: 0 / 415.2 MB, free: 1.277 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005202/0.5132, allocations: 362.5 kB / 415.5 MB, free: 0.9102 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001262/0.5145, allocations: 255.4 kB / 415.8 MB, free: 0.6641 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01744/0.5319, allocations: 16.19 MB / 432 MB, free: 15.91 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008381/0.5328, allocations: 1.2 MB / 433.2 MB, free: 14.68 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0008375/0.5337, allocations: 157.1 kB / 433.3 MB, free: 14.52 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006487/0.5343, allocations: 0.5563 MB / 433.9 MB, free: 13.97 MB / 350.1 MB Notification: Performance of SimCode: time 8.02e-07/0.5343, allocations: 0 / 433.9 MB, free: 13.97 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04659/0.5809, allocations: 23.02 MB / 456.9 MB, free: 7.324 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001786/0.5811, allocations: 236 kB / 457.1 MB, free: 7.086 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.317/2.898, allocations: 0 / 457.1 MB, free: 7.086 MB / 366.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_ControlledDCDrives_CurrentControlledDCPM_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_ControlledDCDrives_CurrentControlledDCPM.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM_res.mat does not exist to compare? outputFormat=mat