Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.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.SpeedControlledDCPM,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_ControlledDCDrives_SpeedControlledDCPM",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_ControlledDCDrives_SpeedControlledDCPM",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009078/0.000908, allocations: 94.62 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.00118/0.00118, allocations: 194.4 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.524/1.524, allocations: 227.4 MB / 246 MB, free: 10.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002342/0.0002343, allocations: 8 kB / 306.8 MB, free: 1.215 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1144/0.1146, allocations: 51.5 MB / 358.3 MB, free: 13.72 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM): time 0.01499/0.1297, allocations: 12.94 MB / 371.2 MB, free: 0.7383 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2095/0.3392, allocations: 5.088 MB / 376.3 MB, free: 9.484 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002759/0.342, allocations: 62.72 kB / 376.4 MB, free: 9.484 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002728/0.3447, allocations: 0.7451 MB / 377.1 MB, free: 9.312 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002048/0.3468, allocations: 458.8 kB / 377.6 MB, free: 9.133 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00121/0.348, allocations: 371 kB / 378 MB, free: 9.125 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003614/0.3516, allocations: 2.106 MB / 380.1 MB, free: 8.629 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001407/0.353, allocations: 0.8182 MB / 380.9 MB, free: 8.469 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00147/0.3545, allocations: 0.6327 MB / 381.5 MB, free: 8.289 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009657/0.3555, allocations: 0.7333 MB / 382.2 MB, free: 8.082 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001979/0.3557, allocations: 97.66 kB / 382.3 MB, free: 8.082 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000492/0.3562, allocations: 138.1 kB / 382.5 MB, free: 8.078 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003016/0.3565, allocations: 301.8 kB / 382.8 MB, free: 8 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005239/0.357, allocations: 382.9 kB / 383.1 MB, free: 7.902 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003211/0.3603, allocations: 2.305 MB / 385.4 MB, free: 7.75 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.628e-06/0.3603, allocations: 4 kB / 385.4 MB, free: 7.746 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.464e-06/0.3603, allocations: 3.938 kB / 385.5 MB, free: 7.742 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.344e-05/0.3604, allocations: 0 / 385.5 MB, free: 7.742 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: 413 * Number of variables: 413 Notification: Performance of Generate backend data structure: time 0.003988/0.3644, allocations: 1.921 MB / 387.4 MB, free: 6.516 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.383e-05/0.3645, allocations: 9.031 kB / 387.4 MB, free: 6.516 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003379/0.3648, allocations: 232.3 kB / 387.6 MB, free: 6.43 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008556/0.3657, allocations: 268.2 kB / 387.9 MB, free: 6.305 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001796/0.3675, allocations: 1.074 MB / 388.9 MB, free: 5.738 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001069/0.3676, allocations: 125.3 kB / 389.1 MB, free: 5.734 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002183/0.3678, allocations: 173.6 kB / 389.2 MB, free: 5.727 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003085/0.3709, allocations: 1.577 MB / 390.8 MB, free: 4.785 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.485e-05/0.371, allocations: 6.094 kB / 390.8 MB, free: 4.781 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001169/0.3711, allocations: 67.56 kB / 390.9 MB, free: 4.73 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.257e-05/0.3711, allocations: 39.84 kB / 390.9 MB, free: 4.73 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002265/0.3734, allocations: 1.102 MB / 392 MB, free: 4.199 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009514/0.3829, allocations: 6.615 MB / 398.6 MB, free: 14.8 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001828/0.3848, allocations: 1.003 MB / 399.6 MB, free: 14.14 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005886/0.3854, allocations: 327.4 kB / 400 MB, free: 13.99 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.514e-05/0.3855, allocations: 7.438 kB / 400 MB, free: 13.99 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.609e-05/0.3855, allocations: 42.47 kB / 400 MB, free: 13.94 MB / 318.1 MB Notification: Performance of pre-optimization done (n=61): time 2.565e-06/0.3855, allocations: 0 / 400 MB, free: 13.94 MB / 318.1 MB Notification: Performance of matching and sorting (n=64): time 0.004251/0.3898, allocations: 2.119 MB / 402.1 MB, free: 12.64 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.365e-05/0.3898, allocations: 93.3 kB / 402.2 MB, free: 12.55 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001724/0.3916, allocations: 1.241 MB / 403.5 MB, free: 11.85 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.828e-05/0.3916, allocations: 36.39 kB / 403.5 MB, free: 11.81 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006178/0.3923, allocations: 0.8848 MB / 404.4 MB, free: 11.03 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001874/0.3925, allocations: 231.9 kB / 404.6 MB, free: 10.83 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.049e-05/0.3925, allocations: 26.25 kB / 404.6 MB, free: 10.81 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001385/0.3926, allocations: 350.5 kB / 405 MB, free: 10.47 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005824/0.3932, allocations: 311.6 kB / 405.3 MB, free: 10.33 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008682/0.3941, allocations: 0.7177 MB / 406 MB, free: 9.633 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007172/0.3948, allocations: 425 kB / 406.4 MB, free: 9.426 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.993e-06/0.3949, allocations: 5.375 kB / 406.4 MB, free: 9.426 MB / 318.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.001995/0.3969, allocations: 1.179 MB / 407.6 MB, free: 8.809 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000331/0.3972, allocations: 496.5 kB / 408.1 MB, free: 8.133 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.953e-05/0.3972, allocations: 19.89 kB / 408.1 MB, free: 8.113 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001734/0.3974, allocations: 44.84 kB / 408.1 MB, free: 8.066 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008913/0.3983, allocations: 275.5 kB / 408.4 MB, free: 7.797 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001112/0.3994, allocations: 1.299 MB / 409.7 MB, free: 6.367 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009997/0.4004, allocations: 67.97 kB / 409.8 MB, free: 6.301 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.848e-05/0.4005, allocations: 52.09 kB / 409.8 MB, free: 6.25 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.173e-06/0.4005, allocations: 4 kB / 409.8 MB, free: 6.246 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001602/0.4021, allocations: 0.9457 MB / 410.8 MB, free: 5.297 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.879e-05/0.4022, allocations: 19.98 kB / 410.8 MB, free: 5.277 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001011/0.4023, allocations: 36.84 kB / 410.8 MB, free: 5.238 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007496/0.403, allocations: 256 kB / 411.1 MB, free: 4.988 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008891/0.4039, allocations: 1.302 MB / 412.4 MB, free: 3.555 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008403/0.4048, allocations: 48.14 kB / 412.4 MB, free: 3.508 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.339e-05/0.4049, allocations: 55.98 kB / 412.5 MB, free: 3.453 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 61 * Number of states: 0 () * Number of discrete variables: 3 (speedController.integrator.local_reset,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 (139): * Single equations (assignments): 138 * 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.0009555/0.4058, allocations: 432.6 kB / 412.9 MB, free: 3.02 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002061/0.406, allocations: 134.3 kB / 413 MB, free: 2.887 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001467/0.4075, allocations: 0.7285 MB / 413.8 MB, free: 2.145 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.175e-06/0.4075, allocations: 10.41 kB / 413.8 MB, free: 2.137 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.396e-06/0.4075, allocations: 4 kB / 413.8 MB, free: 2.133 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.518e-06/0.4076, allocations: 3.984 kB / 413.8 MB, free: 2.129 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003944/0.4115, allocations: 2.154 MB / 415.9 MB, free: 15.91 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.047e-06/0.4115, allocations: 8 kB / 416 MB, free: 15.9 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005997/0.4121, allocations: 144 kB / 416.1 MB, free: 15.76 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001131/0.4123, allocations: 28.8 kB / 416.1 MB, free: 15.73 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.129e-05/0.4123, allocations: 20 kB / 416.1 MB, free: 15.71 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000943/0.4133, allocations: 1.284 MB / 417.4 MB, free: 14.29 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.345e-06/0.4133, allocations: 0 / 417.4 MB, free: 14.29 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001988/0.4153, allocations: 1.159 MB / 418.6 MB, free: 13.09 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006102/0.4159, allocations: 271.3 kB / 418.9 MB, free: 12.8 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002841/0.4162, allocations: 16 kB / 418.9 MB, free: 12.79 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007081/0.4169, allocations: 59.95 kB / 418.9 MB, free: 12.73 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.45e-05/0.417, allocations: 40.45 kB / 419 MB, free: 12.69 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.231e-05/0.4171, allocations: 23.98 kB / 419 MB, free: 12.66 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001486/0.4186, allocations: 0.8264 MB / 419.8 MB, free: 11.84 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4186, allocations: 4 kB / 419.8 MB, free: 11.83 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.002321/0.4209, allocations: 0.5001 MB / 420.3 MB, free: 11.33 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 13 (loadInertia.w,dcpm.inertiaRotor.phi,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,speedController.integrator.y,preFilter.y,slewRateLimiter.y) * 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 (63): * Single equations (assignments): 62 * 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.002515/0.4234, allocations: 1.74 MB / 422.1 MB, free: 9.539 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002752/0.4262, allocations: 1.483 MB / 423.5 MB, free: 8.031 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/0.4262, allocations: 0 / 423.5 MB, free: 8.031 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007318/0.4269, allocations: 439.3 kB / 424 MB, free: 7.594 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001705/0.4287, allocations: 317 kB / 424.3 MB, free: 7.293 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01781/0.4465, allocations: 8.658 MB / 432.9 MB, free: 14.11 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001273/0.4478, allocations: 1.229 MB / 434.2 MB, free: 12.85 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0008917/0.4487, allocations: 182.5 kB / 434.3 MB, free: 12.66 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009035/0.4496, allocations: 0.6243 MB / 435 MB, free: 12.04 MB / 350.1 MB Notification: Performance of SimCode: time 2.595e-06/0.4497, allocations: 0 / 435 MB, free: 12.04 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04959/0.4993, allocations: 26.15 MB / 461.1 MB, free: 2.234 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001773/0.4995, allocations: 246.9 kB / 461.4 MB, free: 1.988 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.607/3.107, allocations: 0 / 461.4 MB, free: 1.988 MB / 366.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_ControlledDCDrives_SpeedControlledDCPM_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_ControlledDCDrives_SpeedControlledDCPM.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM_res.mat does not exist to compare? outputFormat=mat