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.001071/0.001071, allocations: 101.8 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001235/0.001235, allocations: 206.1 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.426/1.426, allocations: 227.3 MB / 245.9 MB, free: 10.31 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000322/0.0003223, allocations: 4 kB / 306.7 MB, free: 1.273 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1101/0.1104, allocations: 51.5 MB / 358.2 MB, free: 13.78 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM): time 0.01229/0.1227, allocations: 11.47 MB / 369.7 MB, free: 2.266 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2291/0.3519, allocations: 5.047 MB / 374.7 MB, free: 9.902 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003324/0.3552, allocations: 54.28 kB / 374.8 MB, free: 9.902 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003798/0.3591, allocations: 0.826 MB / 375.6 MB, free: 9.898 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004362/0.3635, allocations: 0.8646 MB / 376.5 MB, free: 9.891 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002496/0.366, allocations: 0.5272 MB / 377 MB, free: 9.887 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005161/0.3711, allocations: 1.442 MB / 378.4 MB, free: 9.879 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00137/0.3725, allocations: 0.7477 MB / 379.2 MB, free: 9.723 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00132/0.3739, allocations: 0.5734 MB / 379.8 MB, free: 9.676 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001067/0.3749, allocations: 0.6633 MB / 380.4 MB, free: 9.504 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001759/0.3751, allocations: 90.16 kB / 380.5 MB, free: 9.504 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000487/0.3756, allocations: 127.4 kB / 380.6 MB, free: 9.504 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002657/0.3759, allocations: 274.1 kB / 380.9 MB, free: 9.445 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004531/0.3764, allocations: 355.6 kB / 381.3 MB, free: 9.355 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003076/0.3794, allocations: 2.108 MB / 383.4 MB, free: 9.223 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.3795, allocations: 0 / 383.4 MB, free: 9.223 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.397e-06/0.3795, allocations: 5.125 kB / 383.4 MB, free: 9.219 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.561e-05/0.3796, allocations: 0 / 383.4 MB, free: 9.219 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.003926/0.3835, allocations: 1.729 MB / 385.1 MB, free: 8.277 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.695e-05/0.3836, allocations: 11.8 kB / 385.1 MB, free: 8.277 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003073/0.3839, allocations: 214.2 kB / 385.3 MB, free: 8.199 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000793/0.3847, allocations: 243.8 kB / 385.6 MB, free: 8.086 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001897/0.3866, allocations: 0.996 MB / 386.6 MB, free: 7.566 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001606/0.3868, allocations: 109.1 kB / 386.7 MB, free: 7.562 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003163/0.3871, allocations: 154.1 kB / 386.8 MB, free: 7.559 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003084/0.3902, allocations: 1.397 MB / 388.2 MB, free: 7.148 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.845e-05/0.3903, allocations: 6.688 kB / 388.2 MB, free: 7.145 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001313/0.3904, allocations: 61.62 kB / 388.3 MB, free: 7.145 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.044e-05/0.3904, allocations: 39.84 kB / 388.3 MB, free: 7.141 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002126/0.3926, allocations: 0.9518 MB / 389.3 MB, free: 6.793 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008436/0.401, allocations: 6.065 MB / 395.3 MB, free: 1.789 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001118/0.4022, allocations: 0.6573 MB / 396 MB, free: 1.336 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.225e-05/0.4022, allocations: 5.781 kB / 396 MB, free: 1.336 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.745e-05/0.4023, allocations: 42.27 kB / 396 MB, free: 1.289 MB / 302.1 MB Notification: Performance of pre-optimization done (n=51): time 2.134e-06/0.4023, allocations: 1.281 kB / 396 MB, free: 1.289 MB / 302.1 MB Notification: Performance of matching and sorting (n=54): time 0.003563/0.4059, allocations: 1.736 MB / 397.8 MB, free: 176 kB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.601e-05/0.4059, allocations: 87.03 kB / 397.9 MB, free: 76 kB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001902/0.4078, allocations: 1.089 MB / 398.9 MB, free: 15.45 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.302e-05/0.4079, allocations: 36.3 kB / 399 MB, free: 15.41 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006436/0.4085, allocations: 0.8029 MB / 399.8 MB, free: 14.7 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000202/0.4088, allocations: 203.1 kB / 400 MB, free: 14.53 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.948e-05/0.4088, allocations: 20.81 kB / 400 MB, free: 14.52 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000139/0.4089, allocations: 345.7 kB / 400.3 MB, free: 14.18 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000508/0.4095, allocations: 237.2 kB / 400.6 MB, free: 14.07 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008572/0.4103, allocations: 0.627 MB / 401.2 MB, free: 13.43 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006777/0.411, allocations: 343.1 kB / 401.5 MB, free: 13.25 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.313e-06/0.411, allocations: 8.031 kB / 401.5 MB, free: 13.25 MB / 318.1 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.001963/0.413, allocations: 0.998 MB / 402.5 MB, free: 12.75 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.002312/0.4153, allocations: 5.135 MB / 407.7 MB, free: 7.246 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.967e-05/0.4154, allocations: 18.14 kB / 407.7 MB, free: 7.242 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002379/0.4156, allocations: 41.97 kB / 407.7 MB, free: 7.227 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008455/0.4165, allocations: 236.2 kB / 408 MB, free: 7.168 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001098/0.4176, allocations: 1.303 MB / 409.3 MB, free: 5.82 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001123/0.4187, allocations: 54.66 kB / 409.3 MB, free: 5.797 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.008e-05/0.4188, allocations: 40.22 kB / 409.4 MB, free: 5.793 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.13e-05/0.4188, allocations: 5.719 kB / 409.4 MB, free: 5.793 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001294/0.4201, allocations: 0.8123 MB / 410.2 MB, free: 5.383 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.45e-05/0.4201, allocations: 11.78 kB / 410.2 MB, free: 5.383 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.424e-05/0.4202, allocations: 37.86 kB / 410.2 MB, free: 5.371 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006445/0.4209, allocations: 225.5 kB / 410.4 MB, free: 5.316 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008926/0.4218, allocations: 1.297 MB / 411.7 MB, free: 3.973 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008627/0.4227, allocations: 41.27 kB / 411.8 MB, free: 3.953 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.797e-05/0.4227, allocations: 49.47 kB / 411.8 MB, free: 3.941 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.0008837/0.4236, allocations: 408.8 kB / 412.2 MB, free: 3.613 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001846/0.4238, allocations: 112.2 kB / 412.3 MB, free: 3.555 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001069/0.4249, allocations: 0.5834 MB / 412.9 MB, free: 3.219 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.031e-06/0.4249, allocations: 5.406 kB / 412.9 MB, free: 3.219 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/0.4249, allocations: 0 / 412.9 MB, free: 3.219 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.085e-06/0.4249, allocations: 4.031 kB / 412.9 MB, free: 3.215 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00307/0.428, allocations: 1.86 MB / 414.8 MB, free: 1.617 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.774e-06/0.428, allocations: 4 kB / 414.8 MB, free: 1.613 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004997/0.4285, allocations: 110.1 kB / 414.9 MB, free: 1.508 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001056/0.4287, allocations: 24.84 kB / 414.9 MB, free: 1.48 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.622e-05/0.4287, allocations: 16 kB / 414.9 MB, free: 1.465 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009604/0.4297, allocations: 1.282 MB / 416.2 MB, free: 52 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.871e-06/0.4297, allocations: 8 kB / 416.2 MB, free: 44 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001609/0.4313, allocations: 1.021 MB / 417.3 MB, free: 14.95 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004507/0.4318, allocations: 235.6 kB / 417.5 MB, free: 14.7 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001357/0.4319, allocations: 19.98 kB / 417.5 MB, free: 14.68 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005064/0.4324, allocations: 35.98 kB / 417.5 MB, free: 14.64 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.186e-05/0.4325, allocations: 40.42 kB / 417.6 MB, free: 14.6 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.243e-05/0.4325, allocations: 19.98 kB / 417.6 MB, free: 14.58 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001146/0.4337, allocations: 0.7241 MB / 418.3 MB, free: 13.85 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4337, allocations: 0 / 418.3 MB, free: 13.85 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001859/0.4356, allocations: 468 kB / 418.8 MB, free: 13.39 MB / 334.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.002243/0.4378, allocations: 2.073 MB / 420.9 MB, free: 11.24 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002367/0.4402, allocations: 1.251 MB / 422.1 MB, free: 9.969 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.39e-06/0.4402, allocations: 3.312 kB / 422.1 MB, free: 9.969 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000527/0.4408, allocations: 365.2 kB / 422.5 MB, free: 9.602 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001325/0.4421, allocations: 255.1 kB / 422.7 MB, free: 9.352 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01882/0.4609, allocations: 16.1 MB / 438.8 MB, free: 8.699 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008466/0.4618, allocations: 1.196 MB / 440 MB, free: 7.473 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0008573/0.4627, allocations: 161 kB / 440.2 MB, free: 7.316 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006859/0.4634, allocations: 0.5383 MB / 440.7 MB, free: 6.777 MB / 350.1 MB Notification: Performance of SimCode: time 1.442e-06/0.4634, allocations: 0 / 440.7 MB, free: 6.777 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05181/0.5152, allocations: 22.82 MB / 463.5 MB, free: 288 kB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002278/0.5155, allocations: 231.8 kB / 463.8 MB, free: 48 kB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.381/2.896, allocations: 0 / 463.8 MB, free: 48 kB / 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